Recall & Review
beginner
What is the primary purpose of the
ifconfig command?The
ifconfig command is used to display or configure network interfaces on a Linux system. It shows IP addresses, network masks, and interface status.Click to reveal answer
beginner
What does the
ip addr command do?The
ip addr command shows detailed information about all network interfaces, including IP addresses, link status, and more. It is a modern replacement for ifconfig.Click to reveal answer
beginner
How do you display all network interfaces using
ifconfig?Simply type
ifconfig without any arguments to list all active network interfaces and their details.Click to reveal answer
intermediate
How can you show both active and inactive interfaces using
ip addr?Use
ip addr show or just ip addr. It lists all interfaces, whether active or inactive, with their IP addresses and status.Click to reveal answer
intermediate
Why is
ip addr preferred over ifconfig in modern Linux systems?ip addr is part of the newer iproute2 suite. It provides more detailed info, supports more features, and is actively maintained, unlike ifconfig which is deprecated.Click to reveal answer
Which command shows IP addresses and network interfaces on Linux?
✗ Incorrect
ifconfig displays network interfaces and IP addresses.What is the modern replacement for
ifconfig?✗ Incorrect
ip addr is the modern command to show network interface info.How do you show all network interfaces including inactive ones?
✗ Incorrect
ip addr show and ifconfig -a both list all interfaces, active or inactive.Which command is deprecated but still commonly used?
✗ Incorrect
ifconfig is deprecated but still found on many systems.What information does
ip addr NOT show?✗ Incorrect
ip addr shows addresses and status, but routing info is shown by ip route.Explain the differences between
ifconfig and ip addr commands.Think about which command is older and which one is recommended now.
You got /4 concepts.
Describe how to check all network interfaces and their IP addresses on a Linux system.
Remember both commands can show interfaces but differ in details.
You got /3 concepts.