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
GNU

The development of the GNU operating system began in 1983 by Richard Stallman. At the time, Richard worked at the MIT Artificial Intelligence Laboratory and publicly announced the GNU Project on September 27, 1983 on the net.unix-wizards and net.usoft USENET newsgroups. GNU software development formally started on January 5, 1984. The goal of GNU was to bring a totally free software operating system into the world. Richard has a vision that computer users should be free to study the source code of the computer software, share software with others, modify the software, and publish modified versions.
The GNU open source idea was published as the GNU Manifesto in March 1985. GNU was designed from the start to be unix-compatible and so GNU development used C and Lisp as the GNU system programming languages. Most of GNU was been written by volunteers with the exception of numerous adopted third-party components. Richard Stallman set up the Free Software Foundation (FSF) in October 1985 Then in the late 1980s and 1990s the FSF hired software developers to write GNU software. As GNU gained in popularity various businesses began contributing to GNU development or selling GNU software and support, including Cygnus Solutions which eventually became a part of Red Hat.
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.