-1

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?

Update: Turns out the Linux device in question was not compatible with a Gigabit switches, hence being unable to ping the other devices on the network.

Izzo
  • 123
  • 5
  • 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 '19 at 17:38

2 Answers2

2

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.

Tero Kilkanen
  • 36,796
  • 3
  • 41
  • 63
2

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.

Zoredache
  • 130,897
  • 41
  • 276
  • 420