Command to add a router : (lost after reboot)
ip route add 135.0.0.0/8 via 135.25.224.1 dev eth3
To use a configuration file to store the router information :
# cat /etc/sysconfig/network-scripts/route-eth3
135.0.0.0/8 via 135.25.224.1 dev eth3
With this file configured, we can setup the router information by running :
# ifup eth3
Command to delete a router :
ip route del 135.0.0.0/8
Default gateway information are stored in /etc/sysconfig/network
GATEWAY=x.x.x.x
No comments:
Post a Comment