You cant add a route to a network where the gateway is part of the same subnet.
Using your example:
You are giving it a route to the 2.15.246.0 network via the gateway 2.15.246.1.
But if it already knows how to get the 2.15.246.1 then it already knows how to get to the whole net (if your subnet is 255.255.255.0) so it wont allow the route.
Also I believe, your gateway needs to be on a network that is already specifically listed in the routing table, NOT just available from the default route (otherwise it assumes the default router can handle it, because thats its job)
It seems that the router 1.1.126.50 has a different subnetmask for the 2.15.246.x network as its routing .1 correctly but not .253 - Im pretty sure you cant override this route using the local routing table.
Also you cannot always use "ping" to test routes. "ping" uses "icmp" NOT "ip" and therefore is not constrained to the same routing protocols (icmp can be redirected amoungst other things).
Hi all,
This may be the basic question of Routing but I am a sort of new to networking so I am asking.
Do I need to put route for my router's LAN port ip to WAN (serial) port ip Or the router itself can communicate between its ports without routes.
lan (172.26.40.5) ... (3 Replies)
Hello Guys..
I am facing this weird problem of static route not added after reboot!!
Following is my route-<interface> file..
# cat /etc/sysconfig/network-scripts/route-eth0
ADDRESS0=172.31.0.1
NETMASK0=255.255.255.255
GATEWAY0=192.168.208.1
ADDRESS1=172.31.15.2... (3 Replies)
Anyone know how to edit a static route in AIX? I find myself deleting and then recreating the route with the new information. Would be nice to know how to edit the route. (3 Replies)
Hi,
Using Centos, under /etc/rc5.d, I wrote a quick script to add my static route when the server gets rebooted. The script doesn't get executed. I did set the permission to 777. After I reboot the server, if I execute, it works manually.
I do this all the time on Solaris and never had... (5 Replies)
Please , I have a problem
I have add a statis route on Solaris 10, but after this, the network interface of Server was Offline.
The system is in cluster mode (3.2)
route add -net 10.10.1.128 -netmask 255.255.255.128 10.10.1.51
-------------------
lo0:... (1 Reply)
Hi guys,
sorry for asking noob question.
When do we really need to add a static route on the server?
I encounter this situation whereby a client trigger a network packet to the destination but the destination does not know how to return the traffic back to the client (source).
The issue was... (4 Replies)
#netstat -nr (shows the following with more static routes)
192.168.18.202 10.129.155.1 UGH 0 29 en0 - -
and i just want to remove the above one
i tried
#smitty rmroute
destination type= net
dest add = 192.168.18.202
default gateway= 10.129.155.1
net... (1 Reply)
I want to make static route how would I proceed?
I'm using "route add DestinationIP gatewayIP hop to 1
I would like to make this permanent, so when it reboots I don't want to loose it, would I do this in netconf file? If so where?
I did a search got this site, it didn't help much. ... (2 Replies)
Hi,
I have a machine that sits on 10.2 network.
I need to ssh from this to another box that is on both 10.125 & 10.140 VLANs
what should I need to do?
Thanks! (3 Replies)