s ls -ltr /etc/ppp/ lrwxrwxrwx 1 root root 21 Jan 1 2000 pppoe.conf -> /mnt/pppoe/pppoe.conf lrwxrwxrwx 1 root root 22 Jan 1 2000 pap-secrets -> /mnt/pppoe/pap-secrets lrwxrwxrwx 1 root root 23 Jan 1 2000 options -> /mnt/pppoe/pppd.options lrwxrwxrwx 1 root root 23 Jan 1 2000 chap-secrets -> /mnt/pppoe/chap-secrets -rw-r--r-- 1 root root 397 Jun 30 09:03 ppp-on-dialer -rw------- 1 root root 0 Nov 20 07:01 connect-errors [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# cat pppoe.conf #*********************************************************************** # # pppoe.conf # # Configuration file for rp-pppoe. Edit as appropriate and install in # /etc/ppp/pppoe.conf # # NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and # adsl-status shell scripts. It is *not* used in any way by the # "pppoe" executable. # # Copyright (C) 2000 Roaring Penguin Software Inc. # # This file may be distributed under the terms of the GNU General # Public License. # # $Id: pppoe.conf,v 1.1.1.1 2000/11/17 05:28:42 davidm Exp $ #*********************************************************************** # When you configure a variable, DO NOT leave spaces around the "=" sign. # Ethernet card connected to ADSL modem ETH=eth0 # ADSL user name. You may have to supply "@provider.com" Sympatico # users in Canada do need to include "@sympatico.ca" # Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets # contains the right username/password combination. # For Magma, use xxyyzz@magma.ca # USER=bxxxnxnx@sympatico.ca # Bring link up on demand? Default is to leave link up all the time. # If you want the link to come up on demand, set DEMAND to a number indicating # the idle time after which the link is brought down. DEMAND=no #DEMAND=300 # Obtain DNS server addresses from the peer (recent versions of pppd only) USEPEERDNS=yes ### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT # How long adsl-start waits for a new PPP interface to appear before # concluding something went wrong. If you use 0, then adsl-start # exits immediately with a successful status and does not wait for the # link to come up. Time is in seconds. # # WARNING WARNING WARNING: # # If you are using rp-pppoe on a physically-inaccessible host, set # CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying # to connect forever after adsl-start is called. Otherwise, it will # give out after CONNECT_TIMEOUT seconds and will not attempt to # connect again, making it impossible to reach. CONNECT_TIMEOUT=60 # How often in seconds adsl-start polls to check if link is up CONNECT_POLL=6 # Character to echo at each poll. Use PING="" if you don't want # anything echoed PING="." # File where the adsl-connect script writes its process-ID. # Three files are actually used: # $PIDFILE contains PID of adsl-connect script # $PIDFILE.pppoe contains PID of pppoe process # $PIDFILE.pppd contains PID of pppd process PIDFILE=/var/run/adsl.pid # Do you want to use synchronous PPP? "yes" or "no". "yes" is much # easier on CPU usage, but may not work for you. It is safer to use # "no", but you may want to experiment with "yes". "yes" is generally # safe on Linux machines with the n_hdlc line discipline; unsafe on others. SYNCHRONOUS=yes # Do you want to clamp the MSS? Here's how to decide: # - If you have only a SINGLE computer connected to the ADSL modem, choose # "no". # - If you have a computer acting as a gateway for a LAN, choose "1412". # The setting of 1412 is safe for either setup, but uses slightly more # CPU power. # CLAMPMSS=1412 CLAMPMSS=no # LCP echo interval and failure count. LCP_INTERVAL=20 LCP_FAILURE=3 # PPPOE_TIMEOUT should be about 4*LCP_INTERVAL PPPOE_TIMEOUT=80 # Firewalling: One of NONE, STANDALONE or MASQUERADE FIREWALL=NONE # Any extra arguments to pass to pppoe. Normally, use a blank string # like this: PPPOE_EXTRA="" # Rumour has it that "Citizen's Communications" with a 3Com # HomeConnect ADSL Modem DualLink requires these extra options: # PPPOE_EXTRA="-f 3c12:3c13 -S ISP" [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# cat pppd.options # silent defaultroute noipdefault usepeerdns mru 1480 noauth local nocrtscts default-asyncmap silent [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# cat pap-secrets # Secrets for authentication using PAP # client server secret IP addresses [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# cat chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# cat ppp_connect.sh #!/bin/sh DEVICE=ppp0 if [ -r /var/run/$DEVICE.pid ]; then exit 0 fi # ifdown eth0 # ifconfig eth0 up exec /sbin/pppd pty 'pppoe -I eth0 -D /mnt/pppoe/test.log -S mopera.net -U' sleep 10 [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# ifconfig eth0 Link encap:Ethernet HWaddr 00:11:0C:13:05:D9 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:84 errors:0 dropped:0 overruns:0 frame:0 TX packets:85 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5558 (5.4 KiB) TX bytes:3563 (3.4 KiB) Base address:0xa000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# ./ppp_connect.sh [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# ps PID Uid VmSize Stat Command 1 root 684 S init 2 root SW< [kthreadd] 3 root SW< [ksoftirqd/0] 4 root SW< [events/0] 5 root SW< [khelper] 6 root SW< [kblockd/0] 7 root SW< [mxc_spi.0] 8 root SW< [mxc_spi.2] 9 root SW< [ksuspend_usbd] 10 root SW< [khubd] 11 root SW< [kmmcd] 12 root SW [pdflush] 13 root SW [pdflush] 14 root SW< [kswapd0] 15 root SW< [aio/0] 16 root SW< [mtdblockd] 17 root DW [imx_adc_ts] 18 root SW< [mmcqd] 165 root 420 S < udevd --daemon 331 root 500 S syslogd -L 363 root 424 S klogd 768 root 624 S inetd 1194 guest 832 S -ash 1226 root 924 S ash 1515 root 752 R ps [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# cat test.log rp-pppoe-2.3 SENT PPPOE Discovery (8863) PADI sess-id 0 length 22 SourceAddr 00:11:0c:13:05:d9 DestAddr ff:ff:ff:ff:ff:ff 01 01 00 0a 6d 6f 70 65-72 61 2e 6e 65 74 01 03 00 04 e9 05 00 00 RCVD PPPOE Discovery (8863) PADO sess-id 0 length 54 SourceAddr 00:26:92:63:00:0f DestAddr 00:11:0c:13:05:d9 01 01 00 0a 6d 6f 70 65-72 61 2e 6e 65 74 01 02 00 04 53 4d 53 31 01 03-00 04 e9 05 00 00 01 04 00 14 f6 b9 b4 03 fa 61-bb 6b f7 9d 72 0d 5b ef f7 f5 00 00 00 00 SENT PPPOE Discovery (8863) PADR sess-id 0 length 46 SourceAddr 00:11:0c:13:05:d9 DestAddr 00:26:92:63:00:0f 01 01 00 0a 6d 6f 70 65-72 61 2e 6e 65 74 01 03 00 04 e9 05 00 00 01 04-00 14 f6 b9 b4 03 fa 61 bb 6b f7 9d 72 0d 5b ef-f7 f5 00 00 00 00 RCVD PPPOE Discovery (8863) PADS sess-id 15 length 22 SourceAddr 00:26:92:63:00:0f DestAddr 00:11:0c:13:05:d9 01 01 00 0a 6d 6f 70 65-72 61 2e 6e 65 74 01 03 00 04 e9 05 00 00 RCVD PPPOE Session (8864) SESS sess-id 15 length 21 SourceAddr 00:26:92:63:00:0f DestAddr 00:11:0c:13:05:d9 c0 21 01 01 00 13 08 02-07 02 02 06 00 00 00 00 03 05 c2 23 05 SENT PPPOE Session (8864) SESS sess-id 15 length 20 SourceAddr 00:11:0c:13:05:d9 DestAddr 00:26:92:63:00:0f c0 21 01 01 00 12 01 04-05 c8 05 06 a7 ad ca 77 07 02 08 02 SENT PPPOE Session (8864) SESS sess-id 15 length 17 SourceAddr 00:11:0c:13:05:d9 DestAddr 00:26:92:63:00:0f c0 21 04 01 00 0f 02 06-00 00 00 00 03 05 c2 23 05 RCVD PPPOE Session (8864) SESS sess-id 15 length 10 SourceAddr 00:26:92:63:00:0f DestAddr 00:11:0c:13:05:d9 c0 21 04 01 00 08 01 04-05 c8 SENT PPPOE Session (8864) SESS sess-id 15 length 16 SourceAddr 00:11:0c:13:05:d9 DestAddr 00:26:92:63:00:0f c0 21 01 02 00 0e 05 06-a7 ad ca 77 07 02 08 02 RCVD PPPOE Session (8864) SESS sess-id 15 length 15 SourceAddr 00:26:92:63:00:0f DestAddr 00:11:0c:13:05:d9 c0 21 01 02 00 0d 08 02-07 02 03 05 c2 23 05 SENT PPPOE Session (8864) SESS sess-id 15 length 11 SourceAddr 00:11:0c:13:05:d9 DestAddr 00:26:92:63:00:0f c0 21 04 02 00 09 03 05-c2 23 05 RCVD PPPOE Discovery (8863) PADT sess-id 15 length 0 SourceAddr 00:26:92:63:00:0f DestAddr 00:11:0c:13:05:d9 [root@armadillo460-0 (ttymxc1) /mnt/pppoe]# tail -n 20 /var/log/messages <29>Nov 20 07:37:05 pppd[1483]: pppd 2.4.4 started by root, uid 0 <28>Nov 20 07:37:05 pppd[1483]: Couldn't open pty slave /dev/pts/0: No such file or directory <30>Nov 20 07:37:05 pppd[1483]: Using interface ppp0 <29>Nov 20 07:37:05 pppd[1483]: Connect: ppp0 <--> /dev/ttyp0 <31>Nov 20 07:37:09 pppoe[1486]: PADS: Service-Name: 'mopera.net' <31>Nov 20 07:37:09 pppoe[1486]: PPP session is 14 <30>Nov 20 07:37:13 pppoe[1486]: Session terminated -- received PADT from peer <29>Nov 20 07:37:13 pppd[1483]: Modem hangup <29>Nov 20 07:37:13 pppd[1483]: Connection terminated. <30>Nov 20 07:37:13 pppd[1483]: Exit. <29>Nov 20 08:40:30 pppd[1510]: pppd 2.4.4 started by root, uid 0 <28>Nov 20 08:40:30 pppd[1510]: Couldn't open pty slave /dev/pts/0: No such file or directory <30>Nov 20 08:40:30 pppd[1510]: Using interface ppp0 <29>Nov 20 08:40:30 pppd[1510]: Connect: ppp0 <--> /dev/ttyp0 <31>Nov 20 08:40:35 pppoe[1513]: PADS: Service-Name: 'mopera.net' <31>Nov 20 08:40:35 pppoe[1513]: PPP session is 15 <30>Nov 20 08:40:39 pppoe[1513]: Session terminated -- received PADT from peer <29>Nov 20 08:40:39 pppd[1510]: Modem hangup <29>Nov 20 08:40:39 pppd[1510]: Connection terminated. <30>Nov 20 08:40:39 pppd[1510]: Exit. [root@armadillo460-0 (ttymxc1) /mnt/pppoe]#