| 11 | = pppd = |
| 12 | * linkup時に /lib/netifd/ppp-up が実行される |
| 13 | * /etc/ppp/ip-up と同じような使い方が可能? |
| 14 | * Debian ppp-2.4.5/pppd/ipcp.c |
| 15 | {{{#!cc |
| 16 | /* |
| 17 | * Execute the ip-up script, like this: |
| 18 | * /etc/ppp/ip-up interface tty speed local-IP remote-IP |
| 19 | */ |
| 20 | }}} |
| 21 | * 具体例 |
| 22 | {{{ |
| 23 | pppoe-wan eth1 0 114.159.68.126 118.23.8.36 wan |
| 24 | }}} |
| 25 | |
| 26 | * ONUの再起動(下記)などでpppdが終了してしまった場合、「/etc/init.d/network start」により全てのインタフェースがリセットされ再接続される |
| 27 | {{{ |
| 28 | Jun 12 15:57:35 starseed kern.info kernel: [ 93.040000] eth1: link down |
| 29 | Jun 12 15:57:39 starseed daemon.info pppd[1232]: No response to 5 echo-requests |
| 30 | Jun 12 15:57:39 starseed daemon.notice pppd[1232]: Serial link appears to be disconnected. |
| 31 | Jun 12 15:57:39 starseed daemon.info pppd[1232]: Connect time 1.1 minutes. |
| 32 | Jun 12 15:57:39 starseed daemon.info pppd[1232]: Sent 27281 bytes, received 19359 bytes. |
| 33 | Jun 12 15:57:40 starseed daemon.notice netifd: Interface 'wan' has lost the connection |
| 34 | Jun 12 15:57:40 starseed daemon.notice pppd[1232]: Modem hangup |
| 35 | Jun 12 15:57:40 starseed daemon.notice pppd[1232]: Connection terminated. |
| 36 | |
| 37 | (snip) |
| 38 | |
| 39 | Jun 12 15:58:30 starseed daemon.info pppd[4014]: CHAP authentication failed: permission denied |
| 40 | Jun 12 15:58:30 starseed daemon.err pppd[4014]: CHAP authentication failed |
| 41 | Jun 12 15:58:30 starseed daemon.notice pppd[4014]: Connection terminated. |
| 42 | Jun 12 15:58:30 starseed daemon.info pppd[4014]: Exit. |
| 43 | Jun 12 15:58:30 starseed daemon.notice netifd: Interface 'wan' is now down |
| 44 | Jun 12 15:58:30 starseed kern.info kernel: [ 148.030000] eth1: link down |
| 45 | }}} |