Re: Network routing

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



First, some light reading:
http://lartc.org/howto/

Secondly, take a look at how RedHat/CentOS uses network startup scripts:
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/Reference_Guide/pt-network-services-reference.html

Thirdly, READ THIS ENTIRE DOCUMENT.  Seriously.  Not kidding.
/usr/share/doc/initscripts-7.93.29.EL/sysconfig.txt

... paying close attention to this section:
/etc/sysconfig/network-scripts/route-<interface-name>


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.


Regards,
Ken


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)?




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux