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

This site uses Akismet to reduce spam. Learn how your comment data is processed.