User Tools

Site Tools


static_route

Add pesistence static route

In this case the interface is called eth0. Same procedure with bonded interfaces. Eg. bond0

/etc/sysconfig/network-scripts/route-eth0:
GATEWAY0=192.168.1.254
NETMASK0=255.255.255.0
ADDRESS0=192.168.55.0
GATEWAY1=10.164.234.112
NETMASK1= 255.255.255.240
ADDRESS1=10.164.234.132

Alternative use this notation in route-eth0:

192.168.55.0/24 via 192.168.1.254

In order to add route restart network service:

service network restart
static_route.txt · Last modified: 2012/03/08 13:20 by root