[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: 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)?
----
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
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=your_hostname.your_domain.your_tld
GATEWAY=192.168.1.254
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>