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

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