All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] multiple nics, same isp, each nic independently
@ 2003-05-25 20:56 johnny
  2003-05-25 23:55 ` Martin A. Brown
  2003-05-26  7:13 ` johnny
  0 siblings, 2 replies; 3+ messages in thread
From: johnny @ 2003-05-25 20:56 UTC (permalink / raw)
  To: lartc

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!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-26  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-25 20:56 [LARTC] multiple nics, same isp, each nic independently johnny
2003-05-25 23:55 ` Martin A. Brown
2003-05-26  7:13 ` johnny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.