Solved

Creating static routes in RHL9

Posted on 2003-10-24
6
282 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

​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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now