Random noise on routing
Red Hat static routes
Add static routes to eth1:
edit /etc/sysconfig/network-scripts/route-eth1 and add groups of three
ADDRESS?,
NETMASK? and
GATEWAY? lines
ADDRESS0=10.20.30.0
NETMASK0=255.255.255.0
GATEWAY0=10.10.10.1
ADDRESS1=10.20.40.0
NETMASK1=255.255.255.0
GATEWAY1=10.10.10.2
Ubuntu static routes
Add static routes to eth0:
edit /etc/network/interfaces and add pairs of
up route add and
down route del commands
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
name Internal Ethernet interface
address 10.10.10.3
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
gateway 10.10.10.1
up route add -net 10.20.30.0/24 gw 10.10.10.1
down route del -net 10.20.30.0/24 gw 10.10.10.1
up route add -net 10.20.30.0/24 gw 10.10.10.2
down route del -net 10.20.40.0/24 gw 10.10.10.2
Share routes with with DHCP
Routing is mentioned on: Linux