LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Route with 4 NICS

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Route with 4 NICS
From: "Mauricio Portilho Cavalcanti" <mauricio@xxxxxxxxxxxxxxxxxx>
Date: Sat, 11 Oct 2003 14:45:05 -0300
Hi, sorry my english.

i have 4 NIC's in my server.

eth0 - to local network with IP 10.0.0.1
eth1 - to router 1
eth2 - to local network with IP 192.168.0.1
eth3 - to router 2

I have a program running in IP 10.0.0.2 that must work in both local
networks.

I deleted GATEWAYDEV and GATEWAY in /etc/sysconfig/network and i'm trying to
put routes in /etc/rc.local.

The 192 net gateway must to be set to eth3 and the 10 net gateway must to be
set to eth1.

So, if  i'm in 192 net and i try to access internet i will be redirected to
eth3 and if  i'm in 10 net, to eth1.

How can i force this? How can i configure my default gateway in server?

Thanks any help,
Mauricio.

<Prev in Thread] Current Thread [Next in Thread>