Solved

Creating static routes in RHL9

Posted on 2003-10-24
6
293 Views
Last Modified: 2010-04-22
Newbie question...

Just got our routing tables set right in our lab. Need these routes to be static. Can you tell me how to set these routes to be permanent so that they won't go away during reboot?

Our routing tables for our two RHL9 servers look like this...

GOLDCOIN

207.192.10.0 * 255.255.255.0 U 0 0 0 eth1
207.192.75.0 * 255.255.255.0 U 0 0 0 eth1
192.168.10.0 trojan.thompson 255.255.255.0 UG 0 0 0 eth1
192.168.75.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0 0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default goldcoin.thompson 0.0.0.0 UG 0.0.0 eth1

TROJAN

207.192.10.0 * 255.255.255.0 U 0 0 0 eth1
207.192.75.0 * 255.255.255.0 U 0 0 0 eth1
192.168.10.0 * 255.255.255.0 U 0 0 0 eth0
192.168.75.0 goldcoin.thompson 255.255.255.0 UG 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default Trojan.thompson 0.0.0.0 UG 0 0 0 eth1

Thanks in advance...
0
Comment
Question by:ConnieCA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 12

Accepted Solution

by:
paullamhkg earned 63 total points
ID: 9625335
Have a look here http://lartc.org/howto/index.html may help :)
0
 
LVL 6

Assisted Solution

by:mbarbos
mbarbos earned 62 total points
ID: 9627632
0
 

Expert Comment

by:lazykoder
ID: 10160967
you can store all the commands that you used to setup this whole routing table in a bash script, like:

---code----
#!/bin/bash

route add ....
route add ....

----code----

and then call this script from your /etc/rc.d/rc.local script. This is an easier way to do it if u r not comfortable with modifying the system config files.
0
 

Expert Comment

by:osamaz
ID: 10558675
you can just put the commands in /etc/rc.local and the routes will be there just add lines like these
/sbin/route add ......
at the end of rc.local
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question