Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Why Can't I Add This Route?, says network is unreachable, when it is.
post Dec 4 2003, 05:40 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 4-December 03
Member No.: 1,907

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
Go to the top of the page
+Quote Post
post Dec 5 2003, 11:37 AM
Post #2

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

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...

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th July 2018 - 02:09 AM