Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using 2 nics for lan instead of switch/hub ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Thu Jan 09, 2003 2:54 pm    Post subject: Using 2 nics for lan instead of switch/hub ? Reply with quote

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
View user's profile Send private message
Rroet
Apprentice
Apprentice


Joined: 27 May 2002
Posts: 176
Location: The Hague, The Netherlands

PostPosted: Thu Jan 09, 2003 3:20 pm    Post subject: Reply with quote

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


:D
_________________
Workstation: Shuttle SN85G4v2, AMD64 3200+, 512MB, 250GB sata, Radeon 9800 Pro.
Server 1: here
Server 2: here
Back to top
View user's profile Send private message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Thu Jan 09, 2003 5:16 pm    Post subject: Reply with quote

Thanx for answering. I'll try it when finish up building my desktop2 from old pieces of hardware...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum