LINUX route add

glitchlist Blog Leave a Comment

Little command to set a static route under LX:

# CentOS

# Temporary route
route add -net netmask gw dev eth1

# Permanent route

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

service restart network

.glitchlist crew

Leave a Reply

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