Add explicit route


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Add explicit route

Add explicit route to 10.128.255.41/32 , gateway: 10.128.201.254
if not working, please try gateway through management port: 10.128.55.254


Just want to double confirm if this would be the correct command
Code:
#route add -net 10.128.255.41/32 10.128.201.254

And if didnt work

Code:
#route add -net 10.128.255.41/32 10.128.55.254

2nd Question ,
If that first command not working , do i need to remove or leave as it is and proceed to run this command

Code:
#route add -net 10.128.255.41/32 10.128.55.254

# 2  
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.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Add route to solaris10
vettec3
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...... Solaris
6
Solaris
route add
venhart
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...... IP Networking
0
IP Networking
Route Add
sudhir_shet
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...... Solaris
3
Solaris
Do I need to add a route??
agoodrich
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...... IP Networking
6
IP Networking
route add
cubicle^dweller
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 ,...... AIX
6
AIX
Ubuntu

Ubuntu is a free, open-source Linux distribution based on Debian Linux; and Ubuntu is named after the African philosophy of ubuntu, which Canonical translates as "humanity to others" or "I am what I am because of who we all are". Ubuntu is developed by Canonical and the community under a "meritocratic" governance model. Canonical provides security updates and support for each Ubuntu release, starting from the release date and until the release reaches its designated end-of-life (EOL) date. Canonical generates revenue through the sale of premium services associated with Ubuntu. Ubuntu is generally released to the public in three editions: Desktop, Server, and Core (for IoT devices and robots). Ubuntu is a popular operating system for cloud computing and supports OpenStack. Ubuntu is released every six months with long-term support (LTS) releases every two years.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.