06-26-2009
When to use static route on server?
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 resolved after adding a static route at the destination server.
Ain't it suppose to be the gateway job to redirect traffic to other subnet gateways?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. IP Networking
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)
Discussion started by: chaandana
3 Replies
2. HP-UX
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)
Discussion started by: catwomen
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Request you to please tell me the command or the process to add the static route in redhat linux.
Thanks in Advance.
Regards
Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies
4. Red Hat
I have a machine with an interface that has two different addresses on CentOS 5
eth0: 10.20.21.77
eth0:1 141.218.1.221
If I issue this command I get the result I'm looking for.
/sbin/route add -net 141.218.1.0 netmask 255.255.255.0 gw 10.20.21.77
ip route show dev eth0
141.218.1.0/24... (1 Reply)
Discussion started by: beaker457
1 Replies
5. AIX
#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)
Discussion started by: pchangba1
1 Replies
6. AIX
Just want to know if someone has a clue about what could be happening here:
I have an AIX box with four NICs in Ether channel connected to a Cisco Switch.
When I try to ping the default gateway, sometimes it works, but sometimes it doesn't work unless it has a defined static route.
Thanks... (1 Reply)
Discussion started by: witt
1 Replies
7. Solaris
Hi all
i have a simple question here
I'm kind of newbie on solaris development
currently i'm trying to add static route to solaris environment
and i got error, each time i add this static route to it
btw this is my command :
root@xxxxxx # ping 1.2.3.1
1.2.3.1 is alive
echo ... (15 Replies)
Discussion started by: l33tbot_if
15 Replies
8. AIX
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)
Discussion started by: bbbngowc
3 Replies
9. Red Hat
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)
Discussion started by: parth_buch
3 Replies
10. IP Networking
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)
Discussion started by: dextergenious
3 Replies
ROUTE(8) System Manager's Manual ROUTE(8)
NAME
route - manually manipulate the routing tables
SYNOPSIS
/sbin/route [ -f ] [ -n ] [ command args ]
DESCRIPTION
Route is a program used to manually manipulate the network routing tables. It normally is not needed, as the system routing table manage-
ment daemon, routed(8), should tend to this task.
Route accepts two commands: add, to add a route, and delete, to delete a route.
All commands have the following syntax:
/sbin/route command [ net | host ] destination gateway [ metric ]
where destination is the destination host or network, gateway is the next-hop gateway to which packets should be addressed, and metric is a
count indicating the number of hops to the destination. The metric is required for add commands; it must be zero if the destination is on
a directly-attached network, and nonzero if the route utilizes one or more gateways. If adding a route with metric 0, the gateway given is
the address of this host on the common network, indicating the interface to be used for transmission. Routes to a particular host are dis-
tinguished from those to a network by interpreting the Internet address associated with destination. The optional keywords net and host
force the destination to be interpreted as a network or a host, respectively. Otherwise, if the destination has a ``local address part''
of INADDR_ANY, or if the destination is the symbolic name of a network, then the route is assumed to be to a network; otherwise, it is pre-
sumed to be a route to a host. If the route is to a destination connected via a gateway, the metric should be greater than 0. All sym-
bolic names specified for a destination or gateway are looked up first as a host name using gethostbyname(3N). If this lookup fails, get-
netbyname(3N) is then used to interpret the name as that of a network.
Route uses a raw socket and the SIOCADDRT and SIOCDELRT ioctl's to do its work. As such, only the super-user may modify the routing
tables.
If the -f option is specified, route will ``flush'' the routing tables of all gateway entries. If this is used in conjunction with one of
the commands described above, the tables are flushed prior to the command's application.
The -n option prevents attempts to print host and network names symbolically when reporting actions.
DIAGNOSTICS
``add [ host | network ] %s: gateway %s flags %x''
The specified route is being added to the tables. The values printed are from the routing table entry supplied in the ioctl call. If the
gateway address used was not the primary address of the gateway (the first one returned by gethostbyname), the gateway address is printed
numerically as well as symbolically.
``delete [ host | network ] %s: gateway %s flags %x''
As above, but when deleting an entry.
``%s %s done''
When the -f flag is specified, each routing table entry deleted is indicated with a message of this form.
``Network is unreachable''
An attempt to add a route failed because the gateway listed was not on a directly-connected network. The next-hop gateway must be given.
``not in table''
A delete operation was attempted for an entry which wasn't present in the tables.
``routing table overflow''
An add operation was attempted, but the system was low on resources and was unable to allocate memory to create the new entry.
SEE ALSO
intro(4N), routed(8), XNSrouted(8)
4.2 Berkeley Distribution November 16, 1996 ROUTE(8)