Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you edit the routing table?

Status
Not open for further replies.

MiniYC

IS-IT--Management
May 1, 2003
8
0
0
US
How do you edit the routing table?
 
Use the route command. You can get help on this command with #man route.

 
You simply need to use the route add and route delete commands, ie:

route add 192.172.10.20 192.168.10.50


Be aware any changes you make to it with these commands will be "un-done" once you reboot the system.
 
To see the routing table:
Code:
netstat -r
or
Code:
netstat -rn
To make permanent changes accross reboot, symply create a script file
Code:
/etc/rc2.d/S99route
with your
Code:
route add ...
command.


Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top