Help - Search - Members - Calendar
Full Version: Why Can't I Add This Route?
Linuxhelp > Support > Technical Support
Why can't I add this route? I know it's on another subnet and all, but I do have a route to that subnet, and I can reach the host in question.

tarzan root # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface        *      UH    0      0        0 tun1
0-1pool152-19.n UGH   0      0        0 eth0   UG    0      0        0 tun1      *        U     0      0        0 eth0     UG    0      0        0 eth0
loopback        localhost       UG    0      0        0 lo
default         UG    0      0        0 tun1
tarzan root # route delete default
tarzan root # route add default gw
SIOCADDRT: Network is unreachable
tarzan root # ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=86.2 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 86.214/86.214/86.214/0.000 ms
I'm trying to see if I have this straight ... your PC is:

IP, subnet and you want to set your default gateway as

It won't work unless you make your subnet mask for the IP_address

If you use the subnet mask, then the PC can only talk to IP's to without a router .... if you make the subnet mask, the PC can talk to to without a router.

This would require that no router is between and ... if they are on the same physical nework segment with no router in between then after you change your subnet mask to on you will be able to do what you want...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.