Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Router with only one interface [SOLVED]
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
Toris
n00b
n00b


Joined: 22 Mar 2004
Posts: 58

PostPosted: Wed Jan 04, 2006 1:29 am    Post subject: Router with only one interface [SOLVED] Reply with quote

Hi,

This is probably an unusual question, but would it be possible to build a broadband (2mbit) router on a PC with only one ethernet port? The modem is also ethernet.

Basically I was planning on having the modem send all data to the linux router, then the linux router act as a firewall/router/server to the other PCs on the network.

To me it seems as if it will work, as the ethernet port shouldn't be saturated with only 2mbit running through a 100mbit lan... but if anyone can say any reasons why it wouldn't work/is a bad idea, I'd like to know! :oops:

Cheers!


Last edited by Toris on Fri Jan 06, 2006 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message
sandcrawler
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2003
Posts: 149
Location: SaintLouis, MO

PostPosted: Wed Jan 04, 2006 2:28 am    Post subject: Reply with quote

It'll work,but the reason it's a bad idea is that the internal machines aren't really separated from the outside world. If the modem is dhcping the ip address to the client then anything on that hub/switch that also dhcps might snatch the IP address. Unless you trust everyone on your network they could also sniff and get the ip address and possibly bypass your router.

My suggestion would be to get the cheapest nic you can find, probably less than $15, and toss it in there. You probably know someone that will give ya one if ya ask around.
_________________
--

sandcrawler
Back to top
View user's profile Send private message
Toris
n00b
n00b


Joined: 22 Mar 2004
Posts: 58

PostPosted: Wed Jan 04, 2006 5:30 pm    Post subject: Reply with quote

I probably should have mentioned in the first post that the system is a Mini-ITX board, and so only has 1 PCI slot. Security isn't really an issue internally, since it's just a family network, nothing of any huge importance.

However, since the PCI slot isn't used for anything else at present, I do have a spare PCI network card available, so I can use that for the time being. I guess my two options for the future are either use a USB ethernet adapter for connecting to the ethernet modem, or remove the ethernet modem and use a direct USB connection, any comments as to which you believe would be better? (The ethernet modem does have a pretty decent firewall ruleset, so that may be of use later on).

Thanks for your reply :)
Back to top
View user's profile Send private message
arkepp
n00b
n00b


Joined: 23 Jul 2002
Posts: 74
Location: NYC / USA (or Norway)

PostPosted: Wed Jan 04, 2006 10:09 pm    Post subject: Reply with quote

The USB interface to many of the modems (at least Motorolas) is significantly slower. I have never used USB Ethernet adapters, but my guess would be that the driver would required a lot of CPU time. The latter is probably still better, but the former is free to try.
Back to top
View user's profile Send private message
sandcrawler
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2003
Posts: 149
Location: SaintLouis, MO

PostPosted: Wed Jan 11, 2006 4:41 am    Post subject: Reply with quote

I see how one pci slot can be a problem :)

You could try it USB, but it would be slower like the previous post explained, and probably buggy too.

If possible set the router not to dhcp anything internally and let your box worry about internal DHCP. Set the routers internal address on a different subnet to keep broadcasts and other junk traffic separated somewhat, and go from there.
_________________
--

sandcrawler
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