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.
|
|
09-17-2014, 12:44 PM
|
#1
|
LQ Newbie
Registered: Sep 2014
Posts: 13
Rep:
|
How to set up a switched private network
Hi,
I am trying to make a small network (5 machines total) that should be able to see each other over an ethernet switch. The purpose is to have one machine act as an NFS file server for the others.
I think I know how to set up eth0 manually, something like:
# ip address add dev eth0 192.0.0.1/29
and similarly with 192.0.0.2/29 on another machine. If I do this with the machines linked through an ethernet cable, I can ping from both. But if I connect them to the switch I cannot.
Do I have to set up gateways or one machine acting as a router for this to work?
Thanks for your help!
Stefano
|
|
|
09-17-2014, 01:39 PM
|
#2
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
There are a few unknowns here, but if you put 5 PC's in the same subnet, you do not need a gateway or a router, as all the traffic is local within the subnet.
Unknowns:
1. Is this a managed switch or an unmanaged switch. If it is a managed switch, you could be connecting the two PC's into two different VLANs.
2. Have you tested your cables? Make sure they are good.
3. To connect two PC's without a switch requires a crossover cable.
4. If you use the crossover cable to connect a PC to a switch, either the PC or the switch has to have "auto-sensing" ability (auto-mdix Automatic medium-dependent interface crossover) to convert the wiring configuration to standard Ethernet.
|
|
1 members found this post helpful.
|
09-17-2014, 01:49 PM
|
#3
|
LQ Newbie
Registered: Sep 2014
Posts: 13
Original Poster
Rep:
|
Ah! There was in fact a bad cable, I should have noticed that one of the link leds on the switch was not lighting up.
Thanks for prompting me to check, now things work.
---------- Post added 09-17-14 at 01:49 PM ----------
Ah! There was in fact a bad cable, I should have noticed that one of the link leds on the switch was not lighting up.
Thanks for prompting me to check, now things work.
|
|
|
All times are GMT -5. The time now is 01:05 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
|
|