ops has a second network card, eth1, cabled to the stockroom. Someone switched it off.
New command
ip link
Lists the interfaces and whether each one is on, without their IP addresses.
Usageip link
text
learner@ops:~$ ip link
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
…
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000UP inside <…> means switched on. state DOWN means it passes nothing: switched off, or no cable. lo always shows state UNKNOWN; that's normal.
New command
sudo ip link set
Switches an interface on. down switches it off. Changing the network needs sudo: without it, RTNETLINK answers: Operation not permitted.
Usagesudo ip link set interface up
bash
sudo ip link set eth1 upObjectives
- Which interface is
DOWN? - Switch it on.