tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pppoe(4) PPPOE_SERVER test



Hello,

I tried the following test here, but which unfortunately doesn't seem
to work.  On both sides of the bridge0 (tap0 or tap1), client PADI can
be seen, but I can see no server response whatsoever, with a netbsd-5
system and kernel built using the PPPOE_SERVER option:

# Bridge the new test 192.168.2.0 network to the local 192.168.1.13 address
route add -net 192.168.2.0 -netmask 255.255.255.0 192.168.1.13

# Create two tap(4) devices
ifconfig tap0 create
ifconfig tap1 create
ifconfig tap0 up
ifconfig tap1 up

# Make sure that our two tap(4) devices have a different ethernet
# address, then bridge them:
ifconfig bridge0 create
brconfig bridge0 add tap0
brconfig bridge0 add tap1
ifconfig bridge0 up

# Setup the server-side pppoe0 interface
ifconfig pppoe0 create
ifconfig pppoe0 link0
pppoectl -e tap0 pppoe0
pppoectl pppoe0 hisauthproto=pap hisauthname='foo%bar.baz@localhost' 
hisauthsecret='quux' myauthproto=none
ifconfig pppoe0 192.168.2.1 192.168.2.13

# Now setup client-side pppoe1 interface
ifconfig pppoe1 create
pppoectl -e tap1 pppoe1
pppoectl pppoe1 myauthproto=pap myauthname='foo%bar.baz@localhost' 
myauthsecret='quux' hisauthproto=none
ifconfig pppoe1 0.0.0.0 0.0.0.1 netmask 0xffffffff

# Finally activate the server side, then the client side,
# after setting up tcpdump instances on both tap(4) sides.
ifconfig pppoe0 up
ifconfig pppoe1 up

Anyone know if I'm missing something, or if that's due to a known
issue?  I'm trying the PPPOE_SERVER support for the first time, after
having read http://www.netbsd.org/docs/network/pppoe/#pppoe-server and
the pppoe(4) manual page.

Thanks,
-- 
Matt


Home | Main Index | Thread Index | Old Index