[CentOS] Network routing

Ken Price kprice at nowyouknow.net
Tue Sep 25 19:13:00 UTC 2007

First, some light reading:

Secondly, take a look at how RedHat/CentOS uses network startup scripts:

Thirdly, READ THIS ENTIRE DOCUMENT.  Seriously.  Not kidding.

... paying close attention to this section:

You cannot configure a RedHat/CentOS box with more than one *default*  
route in it's basic networking configuration.  You can, however,  
create two custom routing tables, create different default routes on  
THOSE tables, then use "ip rule" and IPTABLES mangling to tell packets  
where to go.  See the above documents for reference.


> Hi, guys!
> We need to setup our both network device on centos-4.5 as follow:
> eth0: IP: GW
> eth1: IP: GW
> We don't know how to create our setup files for both network (eth0,
> eth1 and their routes)?

More information about the CentOS mailing list