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

ppp difficulty



I recently had an ADSL connection installed, which gives me a dedicated
internet connection through a proxy.  An unanticipated side-effect of
this is that I'm now having problems when I use ppp to dial into work...
apparently due to the routing tables not being correct.

Here's what I have set up prior to invoking pon:

----------
eth0      Link encap:Ethernet  HWaddr 00:10:4B:27:E5:5B
          inet addr:10.0.0.21  Bcast:10.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:179677 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94941 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0
          Interrupt:16 Base address:0xfcc0
 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         10.0.0.21       0.0.0.0         UG    1      0        0 eth0
----------

As you can see, I have a default gateway configured, which is a
requirement for the ADSL connection.  After using pon to establish the
ppp connection, I have the following:

----------
eth0      Link encap:Ethernet  HWaddr 00:10:4B:27:E5:5B
          inet addr:10.0.0.21  Bcast:10.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:179692 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94952 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0
          Interrupt:16 Base address:0xfcc0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:168.166.225.30  P-t-P:168.166.225.14  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1534  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0
 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
168.166.225.14  *               255.255.255.255 UH    0      0        0 ppp0
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         10.0.0.21       0.0.0.0         UG    1      0        0 eth0
----------

At this point I'm not able to successfully ping any of the systems at
work, presumably because the packets are being routed to the gateway.
I've tried "route add -net 168.166.0.0 netmask 255.255.255.255 ppp0",
but then route shows that a host route was added rather than a network
route.  If I play with the netmask (like making it 255.255.255.0) I can
get a network route added, but either way I'm still not able to ping
anything through that interface.

I'd appreciate it if someone would point out what sort of routing entry
I need to setup in order to make this work.  I'm running an up-to-date
slink system with kernel version 2.2.1.

Thanx!


Reply to: