[CentOS] Network routing

Tue Sep 25 18:43:59 UTC 2007
Craig White <craig at tobyhouse.com>

On Tue, 2007-09-25 at 15:37 -0300, Hapia IN wrote:
> 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)?
only 1 'default' gateway

put gateway address in /etc/sysconfig/network and make sure that there
are no gateway addresses in
any /etc/sysconfig/network-scripts/ifcfg-ethX

# cat /etc/sysconfig/network
GATEWAYDEV=eth0 #this is probably a good idea too

if you need more advanced routing, we need more details to be of help

Craig White <craig at tobyhouse.com>