I currently have a LAN-only network configuration with several devices including a Linux based controller. This network features a single managed switch but no router.

My Linux device can't seem to ping any of the other devices on the network, while all the other devices are able to ping each-other just fine.

Because my network does not have a gate-way, should my Linux device still feature a default gateway address? There is an old one address that had been saved to the device, however, because my Linux device isn't attempting to reach anything outside the network, it seems like this old gateway setting shouldn't even matter/affect things.

So my question: How should the gateway address on a Linux device be configured when there is no gateway on the network?

  • If you want a better answer then 'nothing, it should work', you should consider adding more details about your specific environment and the problems. What distro are you running. What does your network configuration look like on the linux box versus the other devices. – Zoredache Mar 15 at 17:38

If the network has no route, then don't configure one. Linux is perfectly fine operating without any default routes configured. The Linux box will be able to connect to any systems that it considers to be with in its local subnet.


You don't need a gateway when all your devices share the same IP subnet. Gateway is only needed when packets need to be forwarded between IP subnets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.