How to add a route on Linux?
Jingchen Zhou
jingchenzhou at yahoo.com
Wed Nov 2 19:14:53 UTC 2005
Hi All,
How can I add a route on a RHEL3 Linux machine:
for example, I like to route to host CDIOC1
(134.79.185.200) via
RTR-SLCCP2 (172.19.55.6)?
I tried the following, but it doesn't work:
On command line:
route add -host 134.79.185.200 gw 172.19.55.6 dev eth0
To activate at reboot:
Create a file /etc/sysconfig/static-routes that
contains one line in the form
eth0 host 134.79.185.200 gw 172.19.55.6 eth0
Thanks,
JC
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the redhat-sysadmin-list
mailing list