You look after the Monster Market's office network, from your machine ops.
Every machine on a network has an IP address, like 10.0.0.5: four numbers from 0 to 255. The other machines use it to reach this one.
New command
ip addr
Lists the machine's interfaces (its network cards, real or virtual) and the addresses on each one.
Usageip addr
text
learner@ops:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo ← lo
…
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 10.0.0.5/24 brd 10.0.0.255 scope global eth0 ← eth0
…lois the loopback: the machine talking to itself.127.0.0.1means "this machine" (in a container, the container).eth0is the card cabled to the office network. Many servers name itenp0s3orens5instead.
inet 10.0.0.5the address/24the network's size (Chapter 2) brd 10.0.0.255 scope global eth0
inet is an IPv4 address, the kind this course uses. inet6 lines are IPv6, a newer and longer kind.
Objectives
- What is
ops's address on the office network? - Which address does
lohave?