-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am trying to use multiple interfaces under Linux on the same network and
am a little unsure on how to go about doing it properly.  One of the
interfaces is shaped and when a remote machine does an ftp transfer from
the second interface, it should be shaped.  Ok so here's what I do.

ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
ifconfig eth1 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
shapecfg attach shaper0 eth1
shapecfg speed shaper0 19200
ifconfig shaper0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
route add -net 192.168.1.0 netmask 255.255.255.0 shaper0
route add default gw 192.168.1.1 eth0

Ok so with that setup, by default outgoing connections happen on
192.168.1.2 and .1.3 is secondary.  From a remote machine I ftp to
192.168.1.2 and ftp get a file and it's fast but I ftp to .1.3 and it's
the same speed as .1.2.  It seems as though all outbound data is going
through eth0 instead of eth1 for some unknown reason.  Can two interfaces
exist independantly on the same network?  If so, can someone tell me what
I'm doing wrong.

To prove my theory of the data going through eth0, I tried the following:
ipchains -A output -s 192.168.1.3 -i eth0
After which point, 192.168.1.3 stopped responding altogether.

- -- 
Shane Wegner: [EMAIL PROTECTED]
Tel: (604) 930-0530
Fax: (604) 930-0529
Sysadmin, Continuum Systems: http://www.cm.nu
Personal website: http://www.cm.nu/~shane
Celine Dion Fan site: http://www.celine.nu/
PGP key: http://www.cm.nu/~shane/pgp.txt
ICQ UIN: 15706546

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNmXAPcrVq/2G1RScEQLyfQCfb3ETzYUTnJlDIrmCzar9IaU5nV8AoI8Z
n0Zxtqfrggxo5QLfpXY1a3yO
=x/eM
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to