Permanent Routes Centos Questions
Posted
by
user65053
on Server Fault
See other posts from Server Fault
or by user65053
Published on 2010-12-31T03:24:30Z
Indexed on
2010/12/31
3:56 UTC
Read the original article
Hit count: 406
So with a little help I figured out how to setup these routes and I can set them in rc.local
route add -net 208.82.236.0 netmask 255.255.255.0 dev ppp0 metric 1
route add -net 208.82.236.0 netmask 255.255.255.0 dev eth0 metric 10
my question is being that the first route is ppp0 as soon as I disconnect the modem the route is dropped how do I maintain the route or make it permanent so that next time the modem connects it will follow the route.
Currently after ppp0 disconnects the route is dropped
netstat -r Kernel IP routing table
Destination Gateway
Genmask Flags MSS Window irtt Iface laxapx03.o1.com *
255.255.255.255 UH 0 0 0 ppp0
208.82.236.0 * 255.255.255.0 U 0 0 0 eth0
10.0.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.0.1.1 0.0.0.0 UG 0 0 0 eth0
© Server Fault or respective owner