I have tried to figure this out myself with alot of reading, but no luck.
What I have is a laptop on a lan connected via adsl on eth0 (pcmcia card) and I also take it to work and connect via ppp on ppp0
The problem I am having is being able to ping anything when connected with ppp0 at work. I have internet connection. When I start the laptop, I shutdown eth0 with: ifconfig eth0 down
Then I can connect fine with ppp. Here is the result's of route -n while connected with ppp:
$>route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
161.184.255.205 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 161.184.255.205 0.0.0.0 UG 0 0 0 ppp0
and the results of ifconfig:
$>ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:143 errors:0 dropped:0 overruns:0 frame:0
TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12536 (12.2 Kb) TX bytes:12536 (12.2 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:161.184.200.91 P-t-P:161.184.255.205 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2992 (2.9 Kb) TX bytes:2022 (1.9 Kb)
and ping:
$>ping -c 5
www.linuxquestions.org
PING
www.linuxquestions.org (64.179.4.149) 56(84) bytes of data.
From edtntnt10.agt.net (161.184.255.206) icmp_seq=1 Dest Unreachable, Bad Code: 9
From edtntnt10.agt.net (161.184.255.206) icmp_seq=2 Dest Unreachable, Bad Code: 9
From edtntnt10.agt.net (161.184.255.206) icmp_seq=3 Dest Unreachable, Bad Code: 9
From edtntnt10.agt.net (161.184.255.206) icmp_seq=4 Dest Unreachable, Bad Code: 9
From edtntnt10.agt.net (161.184.255.206) icmp_seq=5 Dest Unreachable, Bad Code: 9
---
www.linuxquestions.org ping statistics ---
5 packets transmitted, 0 received, +5 errors, 100% packet loss, time 4003ms
Should I be adding my default gateway as my router ip, and eth0, and should anything be added to the tables for the ppp0 connection?
Is this normal to have to shutdown the eth0 before being able to dial out with ppp?
Thank's in advance for any help with this.
chopp