LINUX route add

glitchlist Blog Leave a Comment

Little command to set a static route under LX:

# CentOS


# Temporary route
route add -net 10.199.10.0 netmask 255.255.255.0 gw 192.168.0.1 dev eth1


# Permanent route

vi /etc/sysconfig/network-scripts/route-[ifname]
       10.199.10.0/24 via 192.168.0.1 dev eth0

service restart network

.glitchlist crew

Leave a Reply

Your email address will not be published. Required fields are marked *