Hi,
I am having what seems to be a routing problem, but I do not know
the subject well enough to solve it, so I turn to you.
My box is running PCLinuxOS 2011 (or whatever the name is for a frequently
fully updated system today). My regular network is eth0 to an ADSL router
on the Internet, and it is my default gateway:
eth0 Link encap:Ethernet HWaddr 00:0C:F1:70:17:22
inet addr:10.1.20.5 Bcast:10.1.20.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fe70:1722/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:154597 errors:0 dropped:0 overruns:0 frame:0
TX packets:161067 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:101413112 (96.7 MiB) TX bytes:48638553 (46.3 MiB)
I also connect to a dialup ppp0 host (my office) which uses a MS RAS server
with callback. I recompiled pppd to support CBCP=y (MS callback protocol)
and use Kppp to connect to work.
When I connect using a Win-XP laptop, I am able to ping the ppp server,
and via its default route to the ppp link I can also ping and access IP addresses
(of different nets) beyond the ppp server.
However, when I connect using PCLinuxOS, even though I have an IP
address allocated by the ppp server, and ifconfig shows a working
link, I can not access anything on ppp0. Here is what ifconfig shows:
[root@localhost shimon]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:F1:70:17:22
inet addr:10.1.20.5 Bcast:10.1.20.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fe70:1722/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:156878 errors:0 dropped:0 overruns:0 frame:0
TX packets:154258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:136610550 (130.2 MiB) TX bytes:29407912 (28.0 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:25569 errors:0 dropped:0 overruns:0 frame:0
TX packets:25569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2851792 (2.7 MiB) TX bytes:2851792 (2.7 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.20.5.4 P-t-P:172.20.0.253 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:12 errors:1 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:119 (119.0 b) TX bytes:125 (125.0 b)
I want to access host 10.0.0.7, so I added a route and tried to ping the host:
[root@localhost shimon]# route add -host 10.0.0.7 ppp0
[root@localhost shimon]# ping -c 3 10.0.0.7
PING 10.0.0.7 (10.0.0.7) 56(84) bytes of data.
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
--- 10.0.0.7 ping statistics ---
0 packets transmitted, 0 received, +3 errors
I then tried to ping the ppp0 P-t-P address itself, and that also fails:
[root@localhost shimon]# ping -c 5 172.20.0.253
PING 172.20.0.253 (172.20.0.253) 56(84) bytes of data.
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
From 172.20.5.4 icmp_seq=1 Destination Host Unreachable
--- 172.20.0.253 ping statistics ---
0 packets transmitted, 0 received, +5 errors
The errors are all coming from my own home address on ppp0,
172.20.5.4. On the XP box I have no problem accessing these
addresses, so I am led to assume that something is wrong in my routing,
or that something on the PCLOS system is somehow firewalling me.
Any help would be most appreciated, I really dislike needing to
pull out an XP box every time I need to do something for work.
Thanks!
Shimon