Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Home Network Catastrophy
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
gentooJunkie
n00b
n00b


Joined: 09 Jun 2003
Posts: 59
Location: Kalamazoo, MI, USA :()

PostPosted: Wed Jul 23, 2003 1:30 pm    Post subject: Home Network Catastrophy Reply with quote

I just bought a laptop and proceeded to setup Linux on it. I want to make it so both it and my other computer are connected to the internet at the same time. I have a small hub and am using ADSL. Both my desptop can be connected to the internet through the hub while alone, but both of them cannot be connected at the same time. If one is connected, and I boot up the other one, it will time out on DHCP and not set up eth0.

Is there anything I can do to get them both working at the same time?
_________________
GO ASASHORYU!

Gen-toooooooooooooooooooooo!!!
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Wed Jul 23, 2003 1:41 pm    Post subject: Reply with quote

You need to either buy a broadband router or setup an old computer up with linux to act as a router for you.

chris
Back to top
View user's profile Send private message
gentooJunkie
n00b
n00b


Joined: 09 Jun 2003
Posts: 59
Location: Kalamazoo, MI, USA :()

PostPosted: Wed Jul 23, 2003 1:46 pm    Post subject: Reply with quote

OK, wouldn't it be possible to use the desptop as the router? Is there a quick and easy way to do that?

I must be sounding like a real newbie.
_________________
GO ASASHORYU!

Gen-toooooooooooooooooooooo!!!
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Wed Jul 23, 2003 1:54 pm    Post subject: Reply with quote

if you do want to set up the desktop as a router:

get two NICs in there (or whatever the ADSL line connects to + NIC). connect adsl to desktop and desktop to hub, then the laptop to the hub (or laptop direct to desktop via a crossover cable). Set up IP masquerading (google for it) on the desktop, look at shorewall for help

one problem with this it that the desktop machine has to be booted into linux for the laptop to have internet access. I also recommend a static ip config if its just the desktop and laptop
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
insanethrees
n00b
n00b


Joined: 19 Jul 2003
Posts: 10
Location: Seattle, USA

PostPosted: Wed Jul 30, 2003 4:40 pm    Post subject: Reply with quote

You don't actually need 2 NICS. My guess is that your ADSL "modem" has a 4-port hub on it or something similar. You can plug both machines into it, and then add a virtual interface (eth0:1) to the machine that you pick to be the router.

Both eth0 and eth0:1 share the same physical NIC card, but they can have different IP's and subnet masks. I've used a setup like that to provide NAT access for several other machines.
Back to top
View user's profile Send private message
linux_weenie
Guru
Guru


Joined: 25 Jun 2003
Posts: 365

PostPosted: Wed Jul 30, 2003 6:12 pm    Post subject: Reply with quote

his modem doesn't necessarily have 4 ports on it. just depends on his modem. i would recommend the two NIC card approach not hard to setup and very cheap $5 bucks on pricewatch.com

TheCoop:
why does the desktop have to be booted to linux? aren't there windows router products?
_________________
There are only 10 types of people in the world. Those who understand binary and those who don't.
Back to top
View user's profile Send private message
Schwin97
n00b
n00b


Joined: 25 Oct 2002
Posts: 65
Location: Frisco, TX

PostPosted: Wed Jul 30, 2003 6:35 pm    Post subject: Reply with quote

Since you will be routing the traffic through your desktop it will need to be on...

Under the impression that the desktop is running linux
Back to top
View user's profile Send private message
gentooJunkie
n00b
n00b


Joined: 09 Jun 2003
Posts: 59
Location: Kalamazoo, MI, USA :()

PostPosted: Sun Sep 07, 2003 12:55 pm    Post subject: Reply with quote

OK OK, the computer has to dual boot with ...ick...win (gf uses the comp too). So once I a broadband router, how do I get it so that both computers can use the internet at the same time?

Can I just plug it in and it will work?
_________________
GO ASASHORYU!

Gen-toooooooooooooooooooooo!!!
Back to top
View user's profile Send private message
gentooJunkie
n00b
n00b


Joined: 09 Jun 2003
Posts: 59
Location: Kalamazoo, MI, USA :()

PostPosted: Mon Sep 08, 2003 7:21 am    Post subject: Reply with quote

NM it was easy

thanks all
_________________
GO ASASHORYU!

Gen-toooooooooooooooooooooo!!!
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