Subject: trying to install PPPoE
To: None <port-i386@netbsd.org>
From: Amit Kulkarni <amitkulz@hotmail.com>
List: port-i386
Date: 10/07/2001 02:47:14
Hello,

I am trying to install RoaringPenguin.com's rp-pppoe and running into a slight
problem.

Problem : how to make sure that the broadcast interface on my computer is
configured and up before running 'adsl-start'
 which tries to connect to the internet via pppd?

If I boot from floppy and goto install menu and fiddle around with the
'Configure with network' by saying 'Auto-configure DHCP' ( I don't have it ) and
I run ifconfig -aub .

I get 'fxp0' is UP,RUNNING,BROADCAST etc...

But if I boot from hard drive and immediately do a ifconfig -aub don't get
anything.

I am attaching dmesg output and the output from the 'pppoe-debug.txt' created by
running the 'adsl-start' script in debug mode. I am sure that I am missing
something as if I don't put a mount in /etc/fstab I have to manually mount it
every time,
I think that I have to make sure that at boot time the 'fxp0' interface is
enabled...

Thanks

NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001
    he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Coppermine) (686-class), 863.90 MHz
total memory = 511 MB
avail memory = 468 MB
using 6571 buffers containing 26284 KB of memory
BIOS32 rev. 0 found at 0xfda74
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel product 0x1130 (rev. 0x02)
ppb0 at pci0 dev 1 function 0: Intel product 0x1131 (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies product 0x5046 (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
fxp0 at pci2 dev 8 function 0: Intel i82562 Ethernet, rev 1
fxp0: interrupting at irq 3
fxp0: Ethernet address 00:03:47:22:13:b3, 10/100 Mb/s
ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00aa00, model 0x0033, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp0 at pci2 dev 11 function 0: Lite-On 82C115 Ethernet, pass 2.5
tlp0: interrupting at irq 11
tlp0: Ethernet address 00:c0:f0:6f:fc:33
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX
puc0 at pci2 dev 13 function 0: US Robotics (3Com) 3CP5609 PCI 16550 Modem (com)
com3 at puc0 port 0: interrupting at irq 11
com3: ns16550a, working fifo
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801BA LPC Interface Bridge (rev. 0x02)
pciide0 at pci0 dev 31 function 1: Intel 82801BA IDE Controller (ICH2) (rev.
0x02)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC WD400BB-75AUA1>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5
wd1 at pciide0 channel 0 drive 1: <WDC WD400AB-32BVA0>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 1: <Pioneer DVD-ROM ATAPIModel DVD-115  012, , E1.27>
type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 31 function 2: Intel 82801BA USB Controller (rev. 0x02)
uhci0: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82801BA SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31
function 3 not configured
Intel 82801BA AC-97 Audio Controller (audio multimedia, revision 0x02) at pci0
dev 31 function 5 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask e765 netmask ef6d ttymask ffef
wd1: no disk label
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wd1: no disk label
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
wd1: no disk label




pppoe-debug.txt
---------------------------------------------
* The following section contains information about your system
Sat Oct  6 19:20:32 CDT 2001
Output of uname -a
NetBSD  1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001
he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
---------------------------------------------
* The following section contains information about your network
* interfaces.  The one you chose for PPPoE should contain the words:
* 'UP' and 'RUNNING'.  If it does not, you probably have an Ethernet
* driver problem.
Output of ifconfig -a
fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
 address: 00:03:47:22:13:b3
 media: Ethernet autoselect (none)
tlp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
 address: 00:c0:f0:6f:fc:33
 media: Ethernet 10baseT
 status: no carrier
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
 inet 127.0.0.1 netmask 0xff000000
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 inet6 ::1 prefixlen 128
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
strip0: flags=0<> mtu 1100
strip1: flags=0<> mtu 1100
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
gre0: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
gre1: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
ipip0: flags=8010<POINTOPOINT,MULTICAST>
ipip1: flags=8010<POINTOPOINT,MULTICAST>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
---------------------------------------------
* The following section lists your routing table.
* If you have an entry which starts with '0.0.0.0', you probably
* have defined a default route and gateway, and pppd will
* not create a default route using your ISP.  Try getting
* rid of this route.
Output of netstat -n -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
127                127.0.0.1          UGRS        0        0  33228  lo0
127.0.0.1          127.0.0.1          UH          1        0  33228  lo0

XNS:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

ISO:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

X.25:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

AppleTalk:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

Internet6:
Destination                   Gateway                   Flags     Refs     Use
Mtu  Interface
::/104                        ::1                       UGRS        0        0
33228  lo0 =>
::/96                         ::1                       UGRS        0        0
33228  lo0
::1                           ::1                       UH         12        0
33228  lo0
::127.0.0.0/104               ::1                       UGRS        0        0
33228  lo0
::224.0.0.0/100               ::1                       UGRS        0        0
33228  lo0
::255.0.0.0/104               ::1                       UGRS        0        0
33228  lo0
::ffff:0.0.0.0/96             ::1                       UGRS        0        0
33228  lo0
2002::/24                     ::1                       UGRS        0        0
33228  lo0
2002:7f00::/24                ::1                       UGRS        0        0
33228  lo0
2002:e000::/20                ::1                       UGRS        0        0
33228  lo0
2002:ff00::/24                ::1                       UGRS        0        0
33228  lo0
fe80::/10                     ::1                       UGRS        0        0
33228  lo0
fe80::%lo0/64                 fe80::1%lo0               U           0        0
33228  lo0
fec0::/10                     ::1                       UGRS        0        0
33228  lo0
ff01::/32                     ::1                       U           0        0
33228  lo0
ff02::%lo0/32                 fe80::1%lo0               UC          0        0
33228  lo0
---------------------------------------------
Contents of /etc/resolv.conf
* The following section lists DNS setup.
* If you can browse by IP address, but not name, suspect
* a DNS problem.
nameserver 206.141.239.142
nameserver 206.141.239.126
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options
---------------------------------------------
* The following section identifies your Ethernet interface
* and user name.  Some ISP's need 'username'; others
* need 'username@isp.com'.  Try both
ETH=/dev/fxp0; USER=amitkulz@ameritech.net
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
 /usr/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I
/dev/fxp0 -T 80 -U  -m nO   '  noipdefault noauth default-asyncmap defaultroute
hide-password nodetach  mtu 1492 mru 1492 noaccomp noccp nobsdcomp nodeflate
nopcomp novj novjccomp user amitkulz@ameritech.net lcp-echo-interval 20
lcp-echo-failure 3   debug
---------------------------------------------
Using interface ppp0
Connect: ppp0 <--> /dev/ttyp0
-m: 0 is too low (min 536)
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0x7d0f599c>]
Modem hangup
Connection terminated.
Script /usr/sbin/pppoe -p /var/run/pppoe.conf-adsl.pid.pppoe -I /dev/fxp0 -T
80 -U  -m nO    -D /tmp/pppoe-debug-1530/pppoe-debug.txt-0 finished (pid 1576),
status = 0x100
---------------------------------------------
* The following section is an extract from your log.
* Look for error messages from pppd, such as
* a lack of kernel support for PPP, authentication failure
* etc.
Extract from /var/log/messages
Oct  6 19:06:42  pppd[1360]: pppd 2.4.0 started by root, uid 0
Oct  6 19:06:42  pppd[1360]: Using interface ppp0
Oct  6 19:06:42  pppd[1360]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:06:43  pppd[1360]: Modem hangup
Oct  6 19:06:43  pppd[1360]: Connection terminated.
Oct  6 19:06:43  pppd[1360]: Exit.
Oct  6 19:06:48  pppd[1367]: pppd 2.4.0 started by root, uid 0
Oct  6 19:06:48  pppd[1367]: Using interface ppp0
Oct  6 19:06:48  pppd[1367]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:06:49  pppd[1367]: Modem hangup
Oct  6 19:06:49  pppd[1367]: Connection terminated.
Oct  6 19:06:49  pppd[1367]: Exit.
Oct  6 19:06:54  pppd[1372]: pppd 2.4.0 started by root, uid 0
Oct  6 19:06:54  pppd[1372]: Using interface ppp0
Oct  6 19:06:54  pppd[1372]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:06:56  pppd[1372]: Modem hangup
Oct  6 19:06:56  pppd[1372]: Connection terminated.
Oct  6 19:06:56  pppd[1372]: Exit.
Oct  6 19:08:31  pppd[1400]: pppd 2.4.0 started by root, uid 0
Oct  6 19:08:31  pppd[1400]: Using interface ppp0
Oct  6 19:08:31  pppd[1400]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:08:32  pppd[1400]: Modem hangup
Oct  6 19:08:32  pppd[1400]: Connection terminated.
Oct  6 19:08:32  pppd[1400]: Exit.
Oct  6 19:08:37  pppd[1406]: pppd 2.4.0 started by root, uid 0
Oct  6 19:08:37  pppd[1406]: Using interface ppp0
Oct  6 19:08:37  pppd[1406]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:08:38  pppd[1406]: Modem hangup
Oct  6 19:08:38  pppd[1406]: Connection terminated.
Oct  6 19:08:38  pppd[1406]: Exit.
Oct  6 19:08:43  pppd[1412]: pppd 2.4.0 started by root, uid 0
Oct  6 19:08:43  pppd[1412]: Using interface ppp0
Oct  6 19:08:43  pppd[1412]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:08:44  pppd[1412]: Modem hangup
Oct  6 19:08:44  pppd[1412]: Connection terminated.
Oct  6 19:08:44  pppd[1412]: Exit.
Oct  6 19:18:50  pppd[1511]: pppd 2.4.0 started by root, uid 0
Oct  6 19:18:50  pppd[1511]: Using interface ppp0
Oct  6 19:18:50  pppd[1511]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:18:51  pppd[1511]: Modem hangup
Oct  6 19:18:51  pppd[1511]: Connection terminated.
Oct  6 19:18:51  pppd[1511]: Exit.
Oct  6 19:20:32  pppd[1575]: pppd 2.4.0 started by root, uid 0
Oct  6 19:20:32  pppd[1575]: Using interface ppp0
Oct  6 19:20:32  pppd[1575]: Connect: ppp0 <--> /dev/ttyp0
Oct  6 19:20:33  pppd[1575]: Modem hangup
Oct  6 19:20:33  pppd[1575]: Connection terminated.
Oct  6 19:20:33  pppd[1575]: Exit.
Sat Oct  6 19:20:33 CDT 2001
---------------------------------------------
* The following section is a dump of the packets
* sent and received by rp-pppoe.  If you don't see
* any output, it's an Ethernet driver problem.  If you only
* see three PADI packets and nothing else, check your cables
* and modem.  Make sure the modem lights flash when you try
* to connect.  Check that your Ethernet card is in
* half-duplex, 10Mb/s mode.  If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump