LinuxQuestions.org
Review your favorite Linux distribution.
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 10-04-2005, 10:32 AM   #1
revolutionary_era
LQ Newbie
 
Registered: Sep 2005
Location: Pullman, WA
Distribution: Ubuntu
Posts: 14

Rep: Reputation: 0
New to Networking (Hub)


Ok. So I have never set up a network in my life, and now I want to set one up at home. I have 2 boxes, windows and linux. I have a hub that they are plugged into. I want the two boxes to be able to access each other's files (shared files?) and also share a single internet connection.

Now I tried some basic, obvious stuff. I plugged in the ethernet wire connected to a router (my roomate has the router in his room) into the uplink and the computers a plugged into the other ports. Now obviously this was too easy to actually work.

So can someone tell me how I would get this network up?

Thanks guys
 
Old 10-04-2005, 11:13 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
Well, I used to have a similar set up and it worked fine.

You won't need to plug it into the upload port however - just a normal one.

The issue you are having is probably getting an IP address for your PC's. Basically you need to either use DHCP or assign static IPs.

Is the router also the DHCP server?

If it is then trying the setup I mention and set both machines to use DHCP. does this work? (this is default for both windoze and Ubuntu I believe.)
 
Old 10-04-2005, 11:45 AM   #3
revolutionary_era
LQ Newbie
 
Registered: Sep 2005
Location: Pullman, WA
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Both boxes are set to accept assigned DHCP ips. The router is the DHCP server. Still doesn't allow internet connection. I am confused because I can see the shared folders and files on the network now, but I can't connect to the internet? Also, I can only see the the files on other windows boxes in the house, not my Ubuntu box. Hope this helps a bit more...

Thanks again
 
Old 10-04-2005, 11:57 AM   #4
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
Have you set the default route on your boxes to the IP address of the router?
 
Old 10-05-2005, 03:16 AM   #5
revolutionary_era
LQ Newbie
 
Registered: Sep 2005
Location: Pullman, WA
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
How would I do that?

Specifically... how would I get the IP of the router and then change the IP on my boxes?
 
Old 10-05-2005, 03:35 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i would recommend plugging the cable directly into each machine to ensure that it actually works before trying the other steps....
 
Old 10-05-2005, 09:30 AM   #7
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
Check your router manual or Google for your router model. Linksys routers for example are normally accessable at 192.168.1.1. You'd do:
Code:
/sbin/route add default gw 192.168.1.1
.
If you need more help with this, please post details of your router model and the output of these commands:
Code:
/sbin/ifconfig
/sbin/route
 
  


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
networking with router+hub mithereal Linux - Networking 3 10-30-2005 05:22 PM
Networking + HUB = trouble nemo3383 Linux - Networking 3 11-11-2004 10:20 AM
Networking with a Hub? X3781 Linux - Networking 1 01-06-2003 08:59 PM
How to start Home Networking without HUB salman Linux - Networking 1 06-23-2002 12:33 PM
Networking - Linux Hub thang Nokon Linux - Networking 3 09-15-2001 08:37 AM

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

All times are GMT -5. The time now is 05:41 PM.

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