Before working with Linux networking, you should understand basic networking concepts:
ip link showLists all network interfaces with their MAC addresses and status.
ip link show
Output includes:
lo — The loopback interface (always present, even without a physical NIC)enp0s3 (or similar) — The Ethernet cardip address show (or ip addr show)Shows interfaces with their IP addresses.
ip address show
ip addr show # shortened form
ip a s # further abbreviated
ip a # shortest form
Can also be abbreviated like Cisco CLI: ip addr sh or ip a s
ifconfig (older tool)ifconfig # shows all interfaces with IPs