From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnny@liquidzone.net Date: Sun, 25 May 2003 20:56:43 +0000 Subject: [LARTC] multiple nics, same isp, each nic independently Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi, having some trouble with my routing, im kindof new to linux networking so my problem is probably easy to solve but i cant do it... I have a quad nic connected to a switch, wich is connected to my isp, i get 3 ip:s by dhcp. I want each of the nics to use there own gateway.. even if it=92s the same on all nic:s... this is because I have bound different services to the different nics so I can get accurate transfer stats for every nic, separate ftp traffic from www and mail. Eth0 =3D mail (public ip) Eth1 =3D www (public ip) Eth2 =3D ftp (public ip) Eth3 =3D internal network (private ip) Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 222.144.190.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0 222.144.190.0 0.0.0.0 255.255.255.128 U 0 0 0 eth2 222.144.190.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1 192.168.150.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 222.144.190.1 0.0.0.0 UG 0 0 0 eth0 if I connect to ftp, eth2 incomming traffic goes in on eth2, ftp data (files and such) goes out eth0. If I surf to my webserver eth1 incomming requests goes on eth1 but the actuall webpage is sent on eth0. This is not what I want, I want both ftp-data and ftp-command to go in and out on eth2, www and the actual pages to go in and out on eth1. and mail to go in and out on eth0. so I want all the nics to use there own gateway. But I don=92t know how to do it... the solution to this is probably trivial but i have tryed all i could find info on... read the howto on lartc but the closest thing i can find is 4.2. Routing for multiple uplinks/providers but that doesnt really apply to my "problem" since i want to use the same provider, but each nic independently... would appriciate any help! _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/