Hello,
> -----Original Message-----
> From: Julian Anastasov [mailto:ja@xxxxxx]
> Sent: Friday, March 01, 2002 5:44 AM
> Hm, this is bad, at least, if I understand correctly the
> output but you can prove it by showing output from "ip route":
>
> > 0.0.0.0 192.168.1.102 255.255.255.0 UG 0 0
> 0 eth0
> > 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth0
> > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 0 lo
> > 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0
> 0 eth0
>
> It seems you have route to 0.0.0.0/24 via 192.168.1.102.
> It should be 0.0.0.0/0. Is this true or may be I don't understand this
> output.
The route is wrong in multiple respects. I am sorry - my face is red.
I shouldn't have the second default route (gw 0.0.0.0), and the first one
should be routing through 192.168.2.102.
After fixing the routing table (new table below), I can now ping the outside
network successfully.
Thank you very much for your explanations and your help, Julian.
Best Regards,
James
---------correct routing table-------------------------------------
[root@rs5 root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.102 0.0.0.0 UG 0 0 0 eth0
|