[LARTC] multiple nics, same isp, each nic independently

Linux Advanced Routing and Traffic Control

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

 



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?s 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 = mail (public ip)
Eth1 = www (public ip)
Eth2 = ftp (public ip)
Eth3 = 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?t 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!


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux