Sponsored Content
Full Discussion: Add explicit route
Special Forums IP Networking Add explicit route Post 303035078 by Neo on Tuesday 14th of May 2019 01:18:53 AM
Old 05-14-2019
Normally, when a system builds a routing table based on routes up or routes down, they use a dynamic routing protocol.

Static routes are static. Dynamic routes are dynamic.

For example, rip:

ripd - a RIP routing engine for use with Quagga routing software.

or ospf

See, for example:

OSPF (Open Shortest Path First) - Linux | Network Command Reference

So, if I were you, and I needed dynamic routes, I would quickly set up dynamic routing. Static routes are the wrong tool for dynamic routes, as I understand your question.
 

10 More Discussions You Might Find Interesting

1. AIX

route add

Hello , We have 3 rs/6000 server's running aix on our local network, so each time I try to ping one of these servers we get a "network is down" error , I've been instructed to use to route add command which is ... #route add server.ip router.ip after this the ping command works fine ,... (6 Replies)
Discussion started by: cubicle^dweller
6 Replies

2. IP Networking

add route to a subnet - Solaris 2.6

WE are running Unix - Solaris 2.6, we create a subnet. In the windows enviroment we are able to add a static route by using route add -p 172.16.10.0 mask 255.255.255.0 172.16.17.224, but when we add the route in Solaris as route add -net 172.16.10.0 255.255.255.0 172.16.17.224, we receive an... (5 Replies)
Discussion started by: cassy
5 Replies

3. IP Networking

Do I need to add a route??

I have two networks connected by cisco routers. My first subnet is 192.168.0.0 and my second is 192.168.1.0. My SCO unix machine is on the 192.168.1.0 subnet with an IP of 192.168.1.231. It can see the entire .1.0 subnet but nothing on the other network. My cicso router(gateway) to the other... (6 Replies)
Discussion started by: agoodrich
6 Replies

4. HP-UX

Add Route on HP-UX v10.x, help.

Hi, My H-UX box has the GW pointing to 10.10.10.1 and I need add it a new route pointing to 192.168.80.x with the GW 10.10.10.13 I tried with: #route add 192.168.80.2 255.255.255.255 10.10.10.13 but I get: add net 192.168.80.0: gateway 255.255.255.0: Network is unreachable I tried with... (4 Replies)
Discussion started by: efrenba
4 Replies

5. IP Networking

Route add probleme

I have a system that i want to reach via a vpn created vi a fierwall.The fierwall in an other system. The ip i am trying to get to is 172.16.4.48 I need to get to it via the hme1 interface. The vpn gateway has this ip 172.30.50.1 I need to clean up the routing table and make this work; or is it... (5 Replies)
Discussion started by: waterboy
5 Replies

6. Solaris

Route Add

Hi, I am trying to add route command in Solaris 10 machine in the following fashion: route add -host 10.8.112.10 180.144.1.250 -interface lo0:1 this command fails with an error "lo0:1: bad value" I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Discussion started by: sudhir_shet
3 Replies

7. IP Networking

route add

I have built a new linux server, via a iLo connection. and I am trying to connect via my desktop to the server I have just built to the management port eth0 via putty. Please could some one advise how to connect to this server from my desktop. Do i need to create add a route access on the... (0 Replies)
Discussion started by: venhart
0 Replies

8. Solaris

route add : network is unreachable

Hey Guys: I am trying to add a route for assign a network interface to the traffic to/from a specific net, but allways to get the same system message : network is unreacheable root@ColectorDMSCNT # route add net 200.44.46.0/24 161.196.84.196 1 add net 200.44.46.0/24: gateway... (2 Replies)
Discussion started by: aggadtech08
2 Replies

9. Solaris

Add route to solaris10

Hi need to add 2 routes, one on each server. I know the route add comand but I have always been given the parameters to put in. I need a route in each of the 2 following servers to be able to ping and ssh between them. But how do i know which netmask to put in the route add command ? In... (6 Replies)
Discussion started by: vettec3
6 Replies

10. Solaris

Add route to solaris 10

I need to add a new route on solaris10 machine. I want that all traffic on the 23 port (telnet) use 192.168.200.1 gateway. How I do ? Thank you in advance. (1 Reply)
Discussion started by: arfry
1 Replies
routes(4)						     Kernel Interfaces Manual							 routes(4)

NAME
routes - Specifies Internet routing information to the routing tables SYNOPSIS
/etc/routes DESCRIPTION
Static routes can be defined in the /etc/routes file. The /etc/routes file identifies static routes that are automatically added to the network routing tables with the /usr/sbin/route add command. The /sbin/init.d/route script contains the /usr/sbin/route add command that is executed for each entry in the /etc/routes file when the network is restarted on the system or the system is rebooted. The general format of an entry in the /etc/routes file is: Dest Name1 Name2 The following is a brief description of each element in an /etc/routes file entry: A keyword that indicates whether the route is to a net- work or to a host. The two possible keywords are -net and -host. The name or address of the destination network or host. Name1 can be either a symbolic name (as used in the /etc/hosts or /etc/networks file) or an Internet address specified in dotted-decimal format. The name or address of the gateway host to which messages should be forwarded. Name2 can be either a symbolic name (as used in the /etc/hosts file) or an Internet address specified in dotted-decimal format. The routes file is a Context-Dependent Symbolic Link (CDSL) and must be maintained as such. See the System Administration manual for more information. EXAMPLES
To specify a route to a network through a gateway host with an entry in the /etc/routes file, enter: -net net2 host4 This example specifies a route to a network, net2, through the gateway host4. To specify a route to a host through a gateway host with an entry in the /etc/routes file, enter: -host host2 host4 This example specifies a route to a host, host2, through the gateway host4. To specify a route to a default gateway host with an entry in the /etc/routes file, enter: default 130.9.0.5 This example specifies a route to a default gateway with an Internet address of 130.9.0.5. FILES
Contains the /usr/sbin/routed add command. RELATED INFORMATION
Commands: route(8) Daemons: gated(8), routed(8) Files: gated.conf(4) Network Administration delim off routes(4)
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy