ADD a route
sudo route add -net 192.168.2.0 gw 192.168.1.1 netmask 255.255.255.0 dev eth1
DELETE a route
sudo route del -net 192.168.2.0 gw 192.168.1.1 netmask 255.255.255.0 dev eth1
Ref. add route
Add permanant route on Centos
vim /etc/sysconfig/network-scripts/route-eth0
ADDRESS0=172.16.10.0
NETMASK0=255.255.252.0
GATEWAY0=172.16.0.1
ADDRESS1=172.16.20.0
NETMASK1=255.255.255.0
GATEWAY1=172.16.0.1
No comments:
Post a Comment