綾小路龍之介の素人思考

[linux] PPPoEの接続が切れると復帰しない。poffとponで解決

再起動などで切れると復帰しない問題の解決策2番目。おそらくこちらが正統派だと思う。

再起動直後に外部のサーバ宛にpingが打てない。にもかかわらずifconfig ppp0では正しくIPアドレスが取得できている。

# ping google.com
ping: unknown host google.com
# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:***.***.***.237  P-t-P:***.***.***.***  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1454  Metric:1
          RX packets:548 errors:0 dropped:0 overruns:0 frame:0
          TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:402213 (392.7 KiB)  TX bytes:118841 (116.0 KiB)

これを解決するにはdsl-providerを一回落として(poff)再度あげる(pon)。

# poff dsl-provider; pon dsl-provider
Plugin rp-pppoe.so loaded.

これをした後の/var/log/messagesはこんな感じ

# tail -f /var/log/messages
Jan 13 05:13:24 ****** pppd[2089]: Terminating on signal 15
Jan 13 05:13:24 ****** pppd[2089]: Connect time 4.7 minutes.
Jan 13 05:13:24 ****** pppd[2089]: Sent 47575 bytes, received 42784 bytes.
Jan 13 05:13:24 ****** pppd[4095]: Plugin rp-pppoe.so loaded.
Jan 13 05:13:24 ****** pppd[4097]: pppd 2.4.4 started by root, uid 0
Jan 13 05:13:24 ****** pppd[2089]: Connection terminated.
Jan 13 05:13:24 ****** pppd[4097]: PPP session is 39971
Jan 13 05:13:24 ****** pppd[4097]: Using interface ppp0
Jan 13 05:13:24 ****** pppd[4097]: Connect: ppp0 <--> eth0
Jan 13 05:13:24 ****** pppd[2089]: Exit.
Jan 13 05:13:27 ****** pppd[4097]: CHAP authentication succeeded
Jan 13 05:13:27 ****** pppd[4097]: CHAP authentication succeeded
Jan 13 00:28:55 ****** pppd[4097]: peer from calling number **:**:**:**:**:** authorized
Jan 13 00:28:55 ****** pppd[4097]: local  IP address ***.***.***.215
Jan 13 00:28:55 ****** pppd[4097]: remote IP address ***.***.***.***
Jan 13 00:28:55 ****** pppd[4097]: primary   DNS address ***.***.***.***
Jan 13 00:28:55 ****** pppd[4097]: secondary DNS address ***.***.***.***

この操作の後は、外部サーバにpingが通るし、ppp0にも先ほどと異なるIPアドレスが割り振られている。

# ping google.com
PING google.com (66.249.89.99) 56(84) bytes of data.
64 bytes from nrt04s01-in-f99.1e100.net (66.249.89.99): icmp_seq=1 ttl=55 time=8.46 ms
64 bytes from nrt04s01-in-f99.1e100.net (66.249.89.99): icmp_seq=2 ttl=55 time=7.71 ms
64 bytes from nrt04s01-in-f99.1e100.net (66.249.89.99): icmp_seq=3 ttl=55 time=7.22 ms
64 bytes from nrt04s01-in-f99.1e100.net (66.249.89.99): icmp_seq=4 ttl=55 time=9.33 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3010ms
rtt min/avg/max/mdev = 7.229/8.186/9.337/0.804 ms
# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:***.***.***.215  P-t-P:***.***.***.***  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1454  Metric:1
          RX packets:548 errors:0 dropped:0 overruns:0 frame:0
          TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:402213 (392.7 KiB)  TX bytes:118841 (116.0 KiB)

リファレンス

  1. 第5章 ネットワークの設定
  2. ADSLPPPoE - Community Ubuntu Documentation
  3. D: Software/PPP - Debian GNU/Linux スレッドテンプレ
  4. Debian User Forums • View topic - pppoe on boot
  5. line maintained by pppoeconf boot - Google 検索
  6. PPPoE connection lost after each reboot - Page 2 - Ubuntu Forums

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2009-09-02T05:26:01+09:00
  2. Modified: 2009-09-02T05:26:01+09:00
  3. Generated: 2017-08-25T23:09:15+09:00