Linux - NetworkingThis 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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.