Alternate Routing Table configuration

Stephen Carville stephen at totalflood.com
Wed Jul 13 12:02:26 UTC 2005


I'm using ES3.0 for several new webservers and because of the way I
route incoming traffic over two different ISP's, I need to use special
routing tables for some interfaces.  For example, on one webserver I
have three addresses on a single interface:

eth1:	192.168.150.140
eth1:1	192.168.150.141
eth1:2	192.168.150.142

My defaults are:

192.168.150.0/24 dev eth1  proto kernel  scope link  src 192.168.150.140
169.254.0.0/16 dev eth1  scope link
default via 192.168.150.2 dev eth1

However I have an alternate routing table for the subinterfaces:

$ ip route list table T1
192.168.124.0/24 via 192.168.150.2 dev eth1
default via 192.168.150.1 dev eth1

$ ip rule list
0:      from all lookup local
32764:  from 192.168.150.142 lookup T1
32765:  from 192.168.150.141 lookup T1
32766:  from all lookup main
32767:  from all lookup default

I've looked thru the init scripts and /etc/sysconfig but, try as I
might, I cannot see that there is a way to define the above table and
rules.

Is there a 'standard' way to do this?

-- 
Stephen Carville <stephen at totalflood.com>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602




More information about the redhat-list mailing list