[CentOS] Network routing
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: 192.168.1.0/24 GW 192.168.1.1
> eth1: IP: 192.168.10.0/24 GW 192.168.10.1
> We don't know how to create our setup files for both network (eth0,
> eth1 and their routes)?
More information about the CentOS