another small problem with networking

David A. Bandel david
Mon May 17 11:42:45 PDT 2004


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

On Mon, 06 Jan 2003 06:26:13 +1000
begin  Keith Antoine <kantoine at bigpond.net.au> spewed forth:

[snip]

> 
> Maybe I got it wrong but we do not have a hub. We have 3 nics one for
> the inet cable hookup
> one for the ME machine one for the XP. So I have one cable that does not
> 
> work and the others do.
> I am guessing that they are crossover cables.
> 

Yes, you need crosover cables (just make sure you have link lights -- no
lights, the cable is bad or of the wrong type -- some DSL modems and cable
modems require straight through cables direct to the PC, such as the
Hawking Technologies AR710 DSL Router I like to install).

Unless you are running the bridge tools on your linux box, each NIC in the
Linux box will need to be on its own subnet.

Linux box:
	eth0:  cable hookup (IP, default route, etc., provided by your ISP)
	eth1:  192.168.0.1, WinXP 192.168.0.2, WinXP gateway 192.168.0.1
	eth2:  192.168.1.1, WinME 192.168.1.2, WinME gateway 192.168.1.1

linux box routing:
	route add default gw xxx.xxx.xxx.xxx (if you're using dhcp, your ISP will
have this set up for you dynamically)
	route add -net 192.168.0.0/24 gw 192.168.0.1
	route add -net 192.168.1.0/24 gw 192.168.1.1

Using iptables, you'll need:
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/23 -j MASQUERADE

The above (plus an echo 1 > /proc/sys/net/ipv4/ip_forward) will get you
running.

If you want to know how to put both Win boxes on the same subnet using the
bridge tools, let me know and I'll provide you a short SxS.

Ciao,

David A. Bandel
- -- 
Focus on the dream, not the competition.
		-- Nemesis Racing Team motto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+GLfJ3uVcotqGMQcRAsR+AKCV8fUcPA55vXQjrbzVgILtdQGPQgCfQRHr
PKNYoJZwDnO8jiPCADUiF44=
=58C1
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list