Linux setting static routes


Edit through this file:  (add whatever needs to be added)

setup /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.254

auto eth1
iface eth1 inet static
address 192.8.1.10
netmask 255.255.255.0
gateway 192.8.1.254

dns-nameservers x.x.x.x x.x.x.x

Comments

Popular Posts