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.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Why Can't I Add This Route?, says network is unreachable, when it is.
bigfoot
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.



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

--- 10.0.0.200 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
hughesjr
post Dec 5 2003, 11:37 AM
Post #2


Its GNU/Linuxhelp.net
*******

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 10.3.0.2, subnet 255.255.255.0 and you want to set your default gateway as 10.0.0.200.

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

If you use the 255.255.255.0 subnet mask, then the PC 10.3.0.2 can only talk to IP's 10.3.0.1 to 10.3.0.254 without a router .... if you make the subnet mask 255.0.0.0, the PC can talk to 10.0.0.1 to 10.254.254.254 without a router.

This would require that no router is between 10.3.0.2 and 10.0.0.200 ... if they are on the same physical nework segment with no router in between then after you change your subnet mask to 255.0.0.0 on 10.3.0.2 you will be able to do what you want...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
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: 21st October 2017 - 06:17 PM