Alternate Routing Table configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux