Subject: Re: PPPOE Problem
To: Quentin Garnier <cube@cubidou.net>
From: Chuck Zmudzinski <frchuck@netscape.com>
List: netbsd-help
Date: 11/11/2005 20:33:01
This is a multi-part message in MIME format.
--------------070605070405000501070900
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
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?
>
>
>
Here follows a more detailed description of what is happening with the
routing tables under various conditions:
Here is my startpppoe script, run with no other interfaces in the system
configured, no NAT, no ipf firewall, and no ip forwarding:
#!/bin/sh
/sbin/ifconfig pppoe0 create
/sbin/ifconfig ep0 up
/sbin/pppoectl -e ep0 pppoe0
/sbin/pppoectl pppoe0 myauthproto=chap myauthname=*******
myauthsecret=******** callin query-dns=3
/sbin/ifconfig pppoe0 inet 0.0.0.0 0.0.0.1 netmask 0xffffffff up
Here is what the interface information and routing tables looked like
immediately after running the startpppoe script: I do not know where the
default gateway came from. Does pppoe do that? I didn't set up a
defaultroute in /etc/rc.conf or /etc/mygate, nor did I get one from
dhclient or anywhere else I know of.
ave: {11} ./startpppoe
ave: {12} ifconfig -a
tlp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:12:17:51:08:0b
media: Ethernet autoselect (100baseTX full-duplex)
status: active
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:a0:24:f2:de:8c
media: Ethernet 10baseT
inet6 fe80::2a0:24ff:fef2:de8c%ep0 prefixlen 64 scopeid 0x2
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33196
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
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
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
inet 70.108.39.113 -> 10.1.17.1 netmask 0xffffffff
inet6 fe80::212:17ff:fe51:80b%pppoe0 -> prefixlen 64 scopeid 0xa
ave: {13} route show
Routing tables
Internet:
Destination Gateway Flags
0.0.0.1 default UH
loopback 127.0.0.1 UGR
localhost 127.0.0.1 UH
Internet6:
Destination Gateway Flags
::/104 localhost UGR
::/96 localhost UGR
localhost localhost UH
::127.0.0.0 localhost UGR
::224.0.0.0 localhost UGR
::255.0.0.0 localhost UGR
::ffff:0.0.0.0 localhost UGR
2002:: localhost UGR
2002:7f00:: localhost UGR
2002:e000:: localhost UGR
2002:ff00:: localhost UGR
fe80:: localhost UGR
fe80::%ep0 link#2 U
fe80::2a0:24ff:fef2:de8c%ep0 00:a0:24:f2:de:8c UH
fe80::%lo0 fe80::1%lo0 U
fe80::1%lo0 link#3 UH
fe80::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U
fe80::212:17ff:fe51:80b%pppoe0 link#10 UH
fec0:: localhost UGR
ff01:: localhost U
ff02::%ep0 link#2 U
ff02::%lo0 localhost U
ff02::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U
Like before, I can ping the peer's ip address:
ave: {14} ping 10.1.17.1
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.818 ms
64 bytes from 10.1.17.1: icmp_seq=1 ttl=254 time=24.781 ms
64 bytes from 10.1.17.1: icmp_seq=2 ttl=254 time=24.809 ms
^C
----10.1.17.1 PING Statistics----
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 24.781/25.136/25.818/0.591 ms
But I cannot ping the local ip address:
ave: {15} ping 70.108.39.113
PING 70.108.39.113 (70.108.39.113): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
----70.108.39.113 PING Statistics----
3 packets transmitted, 0 packets received, 100.0% packet loss
Now let's look at the routing tables after adding the peer's ip as the
default route:
ave: {16} route add default 10.1.17.1
add net default: gateway 10.1.17.1
ave: {17} route show
Routing tables
Internet:
Destination Gateway Flags
default 10.1.17.1 UG
^C
ave: {18}
As you can see, now the route command only displays the default route
and I have to ^C to get my terminal back.
Now let's delete this default route and look at the routing table again:
ave: {19} route delete default
delete net default
ave: {20} route show
Routing tables
Internet:
Destination Gateway Flags
10.1.17.1 70.108.39.113 UH
loopback 127.0.0.1 UGR
localhost 127.0.0.1 UH
Internet6:
Destination Gateway Flags
::/104 localhost UGR
::/96 localhost UGR
localhost localhost UH
::127.0.0.0 localhost UGR
::224.0.0.0 localhost UGR
::255.0.0.0 localhost UGR
::ffff:0.0.0.0 localhost UGR
2002:: localhost UGR
2002:7f00:: localhost UGR
2002:e000:: localhost UGR
2002:ff00:: localhost UGR
fe80:: localhost UGR
fe80::%ep0 link#2 U
fe80::2a0:24ff:fef2:de8c%ep0 00:a0:24:f2:de:8c UH
fe80::%lo0 fe80::1%lo0 U
fe80::1%lo0 link#3 UH
fe80::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U
fe80::212:17ff:fe51:80b%pppoe0 link#10 UH
fec0:: localhost UGR
ff01:: localhost U
ff02::%ep0 link#2 U
ff02::%lo0 localhost U
ff02::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U
ave: {21}
Notice now the routing system correctly indicates that the gateway for
the peer address is the local address.
Nevertheless, I still get the same behavior:
ave: {22} ping 10.1.17.1
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.114 ms
64 bytes from 10.1.17.1: icmp_seq=1 ttl=254 time=24.749 ms
64 bytes from 10.1.17.1: icmp_seq=2 ttl=254 time=24.649 ms
^C
----10.1.17.1 PING Statistics----
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 24.649/24.837/25.114/0.245 ms
ave: {23} ping 70.108.39.113
PING 70.108.39.113 (70.108.39.113): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
----70.108.39.113 PING Statistics----
3 packets transmitted, 0 packets received, 100.0% packet loss
ave: {24}
For your information, here is what happens when I try and ping the peer
after adding it again as the default route:
ave: {25} route add default 10.1.17.1
add net default: gateway 10.1.17.1
ave: {26} ping 10.1.17.1
^C
ave: {27}
As before, ping gives no response and I have to ^C to get out of it.
What might be happening? I do not understand.
--------------070605070405000501070900
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Quentin Garnier wrote:
<blockquote cite="mid20051111234548.GJ2216@gallia.cubidou.net"
type="cite">
<pre wrap="">On Fri, Nov 11, 2005 at 06:25:49PM -0500, Chuck Zmudzinski wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
What does your routing table look like?
</pre>
</blockquote>
Here follows a more detailed description of what is happening with the
routing tables under various conditions:<br>
<br>
Here is my startpppoe script, run with no other interfaces in the
system configured, no NAT, no ipf firewall, and no ip forwarding:<br>
<br>
#!/bin/sh<br>
/sbin/ifconfig pppoe0 create<br>
/sbin/ifconfig ep0 up<br>
/sbin/pppoectl -e ep0 pppoe0<br>
/sbin/pppoectl pppoe0 myauthproto=chap myauthname=*******
myauthsecret=******** callin query-dns=3<br>
/sbin/ifconfig pppoe0 inet 0.0.0.0 0.0.0.1 netmask 0xffffffff up<br>
<br>
Here is what the interface information and routing tables looked like
immediately after running the startpppoe script: I do not know where
the default gateway came from. Does pppoe do that? I didn't set up a
defaultroute in /etc/rc.conf or /etc/mygate, nor did I get one from
dhclient or anywhere else I know of.<br>
<br>
ave: {11} ./startpppoe<br>
ave: {12} ifconfig -a<br>
tlp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500<br>
address: 00:12:17:51:08:0b<br>
media: Ethernet autoselect (100baseTX full-duplex)<br>
status: active<br>
ep0:
flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500<br>
address: 00:a0:24:f2:de:8c<br>
media: Ethernet 10baseT<br>
inet6 fe80::2a0:24ff:fef2:de8c%ep0 prefixlen 64 scopeid 0x2<br>
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33196<br>
inet 127.0.0.1 netmask 0xff000000<br>
inet6 ::1 prefixlen 128<br>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3<br>
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500<br>
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500<br>
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296<br>
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296<br>
strip0: flags=0 mtu 1100<br>
strip1: flags=0 mtu 1100<br>
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu
1492<br>
inet 70.108.39.113 -> 10.1.17.1 netmask 0xffffffff<br>
inet6 fe80::212:17ff:fe51:80b%pppoe0 -> prefixlen 64
scopeid 0xa<br>
ave: {13} route show<br>
Routing tables<br>
<br>
Internet:<br>
Destination Gateway Flags<br>
0.0.0.1 default UH<br>
loopback 127.0.0.1 UGR<br>
localhost 127.0.0.1 UH<br>
<br>
Internet6:<br>
Destination Gateway Flags<br>
::/104 localhost UGR<br>
::/96 localhost UGR<br>
localhost localhost UH<br>
::127.0.0.0 localhost UGR<br>
::224.0.0.0 localhost UGR<br>
::255.0.0.0 localhost UGR<br>
::ffff:0.0.0.0 localhost UGR<br>
2002:: localhost UGR<br>
2002:7f00:: localhost UGR<br>
2002:e000:: localhost UGR<br>
2002:ff00:: localhost UGR<br>
fe80:: localhost UGR<br>
fe80::%ep0 link#2 U<br>
fe80::2a0:24ff:fef2:de8c%ep0 00:a0:24:f2:de:8c UH<br>
fe80::%lo0 fe80::1%lo0 U<br>
fe80::1%lo0 link#3 UH<br>
fe80::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U<br>
fe80::212:17ff:fe51:80b%pppoe0 link#10 UH<br>
fec0:: localhost UGR<br>
ff01:: localhost U<br>
ff02::%ep0 link#2 U<br>
ff02::%lo0 localhost U<br>
ff02::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U<br>
<br>
Like before, I can ping the peer's ip address:<br>
<br>
ave: {14} ping 10.1.17.1<br>
PING 10.1.17.1 (10.1.17.1): 56 data bytes<br>
64 bytes from 10.1.17.1: icmp_seq=0 ttl=254 time=25.818 ms<br>
64 bytes from 10.1.17.1: icmp_seq=1 ttl=254 time=24.781 ms<br>
64 bytes from 10.1.17.1: icmp_seq=2 ttl=254 time=24.809 ms<br>
^C<br>
----10.1.17.1 PING Statistics----<br>
3 packets transmitted, 3 packets received, 0.0% packet loss<br>
round-trip min/avg/max/stddev = 24.781/25.136/25.818/0.591 ms<br>
<br>
But I cannot ping the local ip address:<br>
<br>
ave: {15} ping 70.108.39.113<br>
PING 70.108.39.113 (70.108.39.113): 56 data bytes<br>
ping: sendto: No route to host<br>
ping: sendto: No route to host<br>
ping: sendto: No route to host<br>
^C<br>
----70.108.39.113 PING Statistics----<br>
3 packets transmitted, 0 packets received, 100.0% packet loss<br>
<br>
Now let's look at the routing tables after adding the peer's ip as the
default route:<br>
<br>
ave: {16} route add default 10.1.17.1<br>
add net default: gateway 10.1.17.1<br>
ave: {17} route show<br>
Routing tables<br>
<br>
Internet:<br>
Destination Gateway Flags<br>
default 10.1.17.1 UG<br>
^C<br>
ave: {18}<br>
<br>
As you can see, now the route command only displays the default route
and I have to ^C to get my terminal back.<br>
Now let's delete this default route and look at the routing table again:<br>
<br>
ave: {19} route delete default<br>
delete net default<br>
ave: {20} route show<br>
Routing tables<br>
<br>
Internet:<br>
Destination Gateway Flags<br>
10.1.17.1 70.108.39.113 UH<br>
loopback 127.0.0.1 UGR<br>
localhost 127.0.0.1 UH<br>
<br>
Internet6:<br>
Destination Gateway Flags<br>
::/104 localhost UGR<br>
::/96 localhost UGR<br>
localhost localhost UH<br>
::127.0.0.0 localhost UGR<br>
::224.0.0.0 localhost UGR<br>
::255.0.0.0 localhost UGR<br>
::ffff:0.0.0.0 localhost UGR<br>
2002:: localhost UGR<br>
2002:7f00:: localhost UGR<br>
2002:e000:: localhost UGR<br>
2002:ff00:: localhost UGR<br>
fe80:: localhost UGR<br>
fe80::%ep0 link#2 U<br>
fe80::2a0:24ff:fef2:de8c%ep0 00:a0:24:f2:de:8c UH<br>
fe80::%lo0 fe80::1%lo0 U<br>
fe80::1%lo0 link#3 UH<br>
fe80::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U<br>
fe80::212:17ff:fe51:80b%pppoe0 link#10 UH<br>
fec0:: localhost UGR<br>
ff01:: localhost U<br>
ff02::%ep0 link#2 U<br>
ff02::%lo0 localhost U<br>
ff02::%pppoe0 fe80::212:17ff:fe51:80b%pppoe0 U<br>
ave: {21}<br>
<br>
Notice now the routing system correctly indicates that the gateway for
the peer address is the local address.<br>
Nevertheless, I still get the same behavior:<br>
<br>
ave: {22} ping 10.1.17.1<br>
PING 10.1.17.1 (10.1.17.1): 56 data bytes<br>
64 bytes from 10.1.17.1: icmp_seq=0 ttl=254 time=25.114 ms<br>
64 bytes from 10.1.17.1: icmp_seq=1 ttl=254 time=24.749 ms<br>
64 bytes from 10.1.17.1: icmp_seq=2 ttl=254 time=24.649 ms<br>
^C<br>
----10.1.17.1 PING Statistics----<br>
3 packets transmitted, 3 packets received, 0.0% packet loss<br>
round-trip min/avg/max/stddev = 24.649/24.837/25.114/0.245 ms<br>
ave: {23} ping 70.108.39.113<br>
PING 70.108.39.113 (70.108.39.113): 56 data bytes<br>
ping: sendto: No route to host<br>
ping: sendto: No route to host<br>
ping: sendto: No route to host<br>
^C<br>
----70.108.39.113 PING Statistics----<br>
3 packets transmitted, 0 packets received, 100.0% packet loss<br>
ave: {24}<br>
<br>
For your information, here is what happens when I try and ping the peer
after adding it again as the default route:<br>
<br>
ave: {25} route add default 10.1.17.1<br>
add net default: gateway 10.1.17.1<br>
ave: {26} ping 10.1.17.1<br>
^C<br>
ave: {27}<br>
<br>
As before, ping gives no response and I have to ^C to get out of it.<br>
<br>
What might be happening? I do not understand.<br>
</body>
</html>
--------------070605070405000501070900--