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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add route on linux redhat machine

Status
Not open for further replies.

todoelmondo

Technical User
Aug 8, 2003
3
US
I want to go to a different ip/subnet/gateway
for instense what command do I use to go to Ipx.x.x.x and gatewayx.x.x.x and maskx.x.x.x
 
route add -host H gw GW

So
route add -host 194.217.240.73 gw 192.168.2.1

Routes traffic to via my default router.

route del -host 194.217.240.73 gw 192.168.2.1 To remove it

Also see route add -net

Add the command into /etc/sysconfig/staticroutes if you need it to be there again on reboot

Good Luck,
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top