Subject: Re: PPPOE Problem: solved
To: Quentin Garnier <cube@cubidou.net>
From: Chuck Zmudzinski <frchuck@netscape.com>
List: netbsd-help
Date: 11/12/2005 12:09:39
Chuck Zmudzinski wrote:
> Quentin Garnier wrote:
>
>> On Fri, Nov 11, 2005 at 06:25:49PM -0500, 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.
>>>
>>
>>
>> What does your routing table look like?
>
I finally found the problem. I noticed that the 'route show' command
would get stuck after adding the peer as the default route. After
reading the man page for route, I tried 'route -n show' to avoid having
to look up hostnames and the route command succeeded. I realized I had
not given /etc/resolv.conf a valid nameserver yet under this
configuration, and when I did, it worked fine and I am connected via
PPPOE using NetBSD.
Thanks for your time