View previous topic :: View next topic |
Author |
Message |
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Thu Jan 09, 2003 2:54 pm Post subject: Using 2 nics for lan instead of switch/hub ? |
|
|
Hello world,
Currently my home lan is my desktop connected via crossover cable to my laptop, but in 2 weeks I'll add a 2nd desktop system. Since I have a spare nic I was thinking of putting it on my 1st desktop (as eth1) and connect it to my 2nd desktop via crossover to cut the cost of a 100mbps switch (I don't like hubs...). With this connection would my laptop (connected on desktop1' s eth0) see desktop2 (connected on desktop1' s eth1) ?
I know this sounds dumb, but I've never tried it before & I'm curious about it. I'm basically thinking of running all 3 systems as an openmosix cluster ocassionally and that's why I want fast ethernet, but I'd like to avoid buying a switch.
.:: zen ::. |
|
Back to top |
|
|
Rroet Apprentice
Joined: 27 May 2002 Posts: 176 Location: The Hague, The Netherlands
|
Posted: Thu Jan 09, 2003 3:20 pm Post subject: |
|
|
Sure, shouldn't be a problem. I would recommend using different subnets for the networkcards seen that it will make your routing a whole lot easier.
Code: | echo 1 > /proc/sys/net/ipv4/ip_forward |
is a reall must. or else you're packets will not be forwarded. And don't forget to set the right gateways. Laptop to ipaddress of eth0 and the Desktop to the ipaddress of eth1
_________________ Workstation: Shuttle SN85G4v2, AMD64 3200+, 512MB, 250GB sata, Radeon 9800 Pro.
Server 1: here
Server 2: here |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Thu Jan 09, 2003 5:16 pm Post subject: |
|
|
Thanx for answering. I'll try it when finish up building my desktop2 from old pieces of hardware... |
|
Back to top |
|
|
|