LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-27-2010, 10:42 PM   #1
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Rep: Reputation: 39
Router best having two NICs, is that true?


Hi all.

I am considering moving to a software (ebox/pfSense/Zeroshell etc) based router.

It fits well to have 1 NIC connecting to your modem & the other to your switch & network. It seems to make sense it is more secure, but is it?

If I assign the 1 NIC in my router 2 IPs, a subnet for the modem and a subnet for the LAN, how is the different?

I can't think exactly what it is. I am no network guru and probably missing something down at a lower networking level, but for a home router, does 1 or 2 NICs make any difference?

Thanks.
 
Old 05-28-2010, 01:17 AM   #2
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
The easiest thing to approach is to think of what will happen if one nic is serving two networks..
Traffic destined for one network (read: subnet) will be sniffable on the other. vice versa, your internet connection will be clogged with broadcast packages from your local network, being visible to the internet provider. Being paranoid, you don't want that to happen. Physical separation is the best approach to provide a plain, easy, understandable infrastructure.

But back to your question.. can you elaborate on why you want to go with this approach, or is this merely a study case for you?
 
1 members found this post helpful.
Old 05-28-2010, 02:32 AM   #3
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Original Poster
Rep: Reputation: 39
Hmmmm I see, I see.

I thought it would be something like that.
How likely someone on the "outside" trying to come in from the modem will be able to gain access to LAN packages?

Well looking at small hardware, like my Marvell Sheeva plug. Could be a great router, but only have 1 NIC.
I could by an Apple USB to Ethernet Adapter, but that's $40 I am trying to save
 
Old 05-28-2010, 02:54 AM   #4
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
I see..

Well there isn't a reason technically why it shouldn't work with one nic (you might need to fiddle with ICMP redirection prevention, though).

There's one thing though.. how does the router achieve it's outside IP ? if that is through DHCP, and you want your workstations to use DHCP as well, there's a real issue there.. on one physical network (serving one or many subnets) you cannot have multiple DHCP servers. Well technically you can, but you won't be able to tell which DHCP server is going to win the workstation, and your internet provider won't be fond on serving multiple outside IPs to your workstation....

Then again, your local DHCP server will be local and thus quicker (less round-trip), so it COULD be that the workstations will always pick IPs from the local DHCP server... but you'd have to make sure that the router gets its own IP from the provider...

If the configuration is static and the internet provider does not respond to DHCP requests, you'd be safe.
 
Old 05-28-2010, 03:03 AM   #5
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Original Poster
Rep: Reputation: 39
Thanks.

Yeah never had any issues there. My modem gets my static, external IP. Then it is static set an IP on my LAN. Then my Sheeva Plug runs as DHCP server for my LAN using dnsmasq.

I think I am safe with rgards to DHCP.

I think $40 is worth a little extra safety blanket (and probably much easy configuration.)

Thanks.
 
Old 05-28-2010, 07:31 AM   #6
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Really having two IP networks running on one physical network really can cause problems. Two NICs is the easier route. BTW how do you like the SHeeva Plug I've been thinking of some things I could do with one of those.
 
Old 05-28-2010, 08:23 PM   #7
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: Debian, Ubuntu
Posts: 400

Original Poster
Rep: Reputation: 39
Thumbs up

Thanks.

I think I will go ahead with purchasing the Apple USB-to-Ethernet adapter. Seems well supported and performs well.

The Plug is nice. Very cool little device. I am finding it hard to find uses for it. So far it is just my DNS/DHCP server and Nagios network monitor. Maybe it will be my VPN server too. Low power, so good to use instead of a full on desktop/server if you can to save on electrical bill.

I think I might get another or a guruplug

http://www.globalscaletechnologies.c...ugdetails.aspx

Or this:
http://www.fit-pc.com/web/fit-pc2/fi...pecifications/

Last edited by DaveQB; 05-28-2010 at 08:25 PM. Reason: Added fit-pc
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring router with 3 NICS cifroes Linux - Networking 1 03-18-2007 12:53 PM
Router with 2 NICs on same IRQ ? Lanny Linux - Networking 3 06-05-2006 04:20 PM
SSL using two NICS behind router. craig.mcc Linux - Networking 1 02-04-2005 11:06 AM
Dell true mobile 1150 not connecting to Router adambeazley Linux - Wireless Networking 1 04-27-2004 01:11 PM
2 NICs, 2 external IP's (1 behind a router) yskwong Linux - Networking 5 05-25-2001 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration