Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-04-2005, 10:32 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Location: Pullman, WA
Distribution: Ubuntu
Posts: 14
Rep:
|
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
|
|
|
10-04-2005, 11:13 AM
|
#2
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,492
Rep:
|
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.)
|
|
|
10-04-2005, 11:45 AM
|
#3
|
LQ Newbie
Registered: Sep 2005
Location: Pullman, WA
Distribution: Ubuntu
Posts: 14
Original Poster
Rep:
|
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
|
|
|
10-04-2005, 11:57 AM
|
#4
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
Have you set the default route on your boxes to the IP address of the router?
|
|
|
10-05-2005, 03:16 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Location: Pullman, WA
Distribution: Ubuntu
Posts: 14
Original Poster
Rep:
|
How would I do that?
Specifically... how would I get the IP of the router and then change the IP on my boxes?
|
|
|
10-05-2005, 03:35 AM
|
#6
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,492
Rep:
|
i would recommend plugging the cable directly into each machine to ensure that it actually works before trying the other steps....
|
|
|
10-05-2005, 09:30 AM
|
#7
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|