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

ppp-2.4.0 routing problem in testing: tap0 issue?



Hi.

        When I upgraded to testing, I got ppp-2.4.0along with it.
Once this version of ppp was installed, the routing no longer worked
properly.  In particular, with ppp-2.4.0 I get the following behavior:

---------------------------------
[... not connected to anything ...]

dkatz [~] $ /sbin/ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

tap0      Link encap:Ethernet  HWaddr FE:FD:00:00:00:00  
          inet addr:192.168.0.1  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          Interrupt:5 

dkatz [~] $ /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.2     *               255.255.255.255 UH    1      0        0 tap0
192.168.0.0     *               255.255.255.0   U     0      0        0 tap0
default         *               0.0.0.0         U     1      0        0 tap0

[... do a 'pon' here ...]

dkatz [~] $ /sbin/ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:208.192.101.188  P-t-P:199.172.62.219  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1514  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

tap0      Link encap:Ethernet  HWaddr FE:FD:00:00:00:00  
          inet addr:192.168.0.1  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          Interrupt:5 

dkatz [~] $ /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
199.172.62.219  *               255.255.255.255 UH    0      0        0 ppp0
192.168.0.2     *               255.255.255.255 UH    1      0        0 tap0
192.168.0.0     *               255.255.255.0   U     0      0        0 tap0
default         *               0.0.0.0         U     1      0        0 tap0
---------------------------------

Note that (1) there is an interface 'tap0' which I don't understand at
all since I don't have an ethernet card in my machine and have never
set one up, and (2) that I can make a connection and get a working
ppp0 interface, but that the default route is not set properly.
Considering that it is using tap0 as the default interface, I suspect
that these are related.



For comparison, here is the same sequence using ppp-2.3.11 from potato: 

---------------------------------

[... not connected to anything ...]

lysistrata:/etc# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

lysistrata:/etc# ifconfoig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 


lysistrata:/etc# pon


lysistrata:/etc# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
fxtc1-c.std.com *               255.255.255.255 UH    0      0        0 ppp0
default         fxtc1-c.std.com 0.0.0.0         UG    0      0        0 ppp0

lysistrata:/etc# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:90 errors:0 dropped:0 overruns:0 frame:0
          TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:208.192.101.1  P-t-P:199.172.62.218  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1514  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 
---------------------------------

This version has no 'tap0' interface and correctly sets up the default
gateway when the ppp0 interface is brought up.



I guess the questions are:

1) Should I just delete tap0 from /etc/network/interfaces, or is it
   needed by pppd for some reason (even if I don't have an ethernet
   card).

2) Why is the package upgrade setting up this interface on its own?

3) Would you expect that deleting this interface will allow ppp to set
   up the default route properly?

4) Are there any other issues a ppp newbie needs to be aware of before
   mucking around with the default configuration?

Thanks.

Dan



Reply to: