Subject: Re: PPPOE Problem
To: None <netbsd-help@netbsd.org>
From: =?ISO-8859-1?Q?St=E9phane?= Witzmann <stephane.witzmann@gmail.com>
List: netbsd-help
Date: 11/12/2005 01:03:10
Chuck Zmudzinski wrote:

> I am having trouble connecting to my DSL provider using NetBSD's PPPOE
> (version 2.0.2).
> 
> I set up the link following the instructions in the man pages for
> setting up DSL via pppOE, without setting the default route for the
> reasons that will be clear below.
> 
> Output of 'pppoectl -d pppoe0 shows I am authenticated:
> 
> pppoe0: state = session
>         Session ID: 0x336
>         PADI retries: 0
>         PADR retries: 0
> 
> Output of ifconfig pppoe0 shows I have ip addresses assigned:
> 
> pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
>         inet 70.21.110.65 -> 10.1.17.1 netmask 0xffffffff
>         inet6 fe80::212:17ff:fe51:80b%pppoe0 ->  prefixlen 64 scopeid 0xa
> 
> Output of ping -c 3 10.1.17.1 shows I can ping the peer's end of the link:
> 
> PING 10.1.17.1 (10.1.17.1): 56 data bytes
> 64 bytes from 10.1.17.1: icmp_seq=0 ttl=254 time=25.055 ms
> 64 bytes from 10.1.17.1: icmp_seq=1 ttl=254 time=25.707 ms
> 64 bytes from 10.1.17.1: icmp_seq=2 ttl=254 time=25.516 ms
> 
> ----10.1.17.1 PING Statistics----
> 3 packets transmitted, 3 packets received, 0.0% packet loss
> round-trip min/avg/max/stddev = 25.055/25.426/25.707/0.335 ms
> 
> So far, everything looks fine, but . . .
> 
> Output of ping -c 3 70.21.110.65 shows I cannot ping the local end of
> the link:
> 
> PING 70.21.110.65 (70.21.110.65): 56 data bytes
> 
> ----70.21.110.65 PING Statistics----
> 3 packets transmitted, 0 packets received, 100.0% packet loss
> PING 70.21.110.65 (70.21.110.65): 56 data bytes
> ping: sendto: No route to host
> ping: sendto: No route to host
> ping: sendto: No route to host
> 
> ----70.21.110.65 PING Statistics----
> 3 packets transmitted, 0 packets received, 100.0% packet loss
> 
> Why can I ping the peer ip address but not the local ip address?
> 
> Also, when I set the default route to be 10.1.17.1 (the peer), I am not
> able to ping either the the peer or the local address, and ping gives no
> output at all, not even the 'ping: sendto: No route to host' message.
> 
> So I cannot connect to the internet at all using pppoe on NetBSD.
> 
> I can connect if my dsl modem/router makes the pppoe connection for me,
> and it also works using a windows box and the raspppoe client for windows.
> 
> I have tried many variations, such as turning off IPNAT, IPF, IP
> forwarding, the other network interface and rebooting. No matter what it
> always behaves the same. I also tried adjusting the
> net.inet.tcp.mss_ifmtu setting with no luck.
> 
> What is wrong?
> 
> Thanks in advance

This is the /etc/ifconfig.pppoe0 of my NAT box. Maybe that can help.

create
! ifconfig rtk1 up
! pppoectl -e rtk1 pppoe0
! pppoectl pppoe0 myauthproto=pap myauthname='foo' myauthsecret='bar'
hisauthproto=none
0.0.0.0 0.0.0.1 up
! route add default -iface 0.0.0.1 > /dev/null

Stéphane Witzmann