Someone gave eth1 the stockroom's address with a typo: 192.168.5.5/24 instead of 192.168.50.5/24. The scanner, 192.168.50.20, is on another network now, so it doesn't answer.
sudo ip addr add
Gives an interface an address, and puts it on that address's network. Leave out the prefix and you get a /32: a network of one.
sudo ip addr add 192.168.50.5/24 dev eth1Adding one that's already there:
learner@ops:~$ sudo ip addr add 192.168.50.5/24 dev eth1
Error: ipv4: Address already assigned.An interface can have several addresses, even the same one with two prefixes. Take a wrong one off with del, prefix included:
sudo ip addr del 192.168.5.5/24 dev eth1An address set this way lasts until the machine restarts. Ubuntu keeps permanent ones in its netplan configuration.
Objectives
- Put
eth1on the stockroom network, so the scanner answers. - Take the wrong address off.