Dear Linux network people,

Should it be possible to set a default gateway that is 2 hops away?
I have a router on my local subnet that can route to another
network in which there is a desired default gateway that will route
to the rest of the world.  I get a "SIOCADDRT: Network is unreachable"
error when I try to set the default gateway though...

[root@rhone /root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.216.173.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.216.173.2   0.0.0.0         UG    0      0        0 eth0
[root@rhone /root]# route del default   
[root@rhone /root]# route add -host 10.1.3.1 gw 192.216.173.2 
[root@rhone /root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.3.1        192.216.173.2   255.255.255.255 UGH   0      0        0 eth0
192.216.173.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
[root@rhone /root]# ping 10.1.3.1
PING 10.1.3.1 (10.1.3.1): 56 data bytes
64 bytes from 10.1.3.1: icmp_seq=0 ttl=255 time=5.8 ms
64 bytes from 10.1.3.1: icmp_seq=1 ttl=255 time=5.4 ms

--- 10.1.3.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 5.4/5.6/5.8 ms
[root@rhone /root]# route add default gw 10.1.3.1
SIOCADDRT: Network is unreachable

I'm using kernel 2.2.2, glibc 2.1, and a redhat 5.2 distribution.

Thanks,

-Truxton

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to