Bird
0
0

What will be the output of ip addr show lo if the loopback interface is up with IP 127.0.0.1?

medium📝 Command Output Q4 of 15
Linux CLI - Networking Commands
What will be the output of ip addr show lo if the loopback interface is up with IP 127.0.0.1?
AShows interface lo with inet 127.0.0.1/8 and state UP
BShows interface lo with inet 192.168.1.1/24 and state DOWN
CNo output because lo is a virtual interface
DError: interface lo not found
Step-by-Step Solution
Solution:
  1. Step 1: Understand loopback interface properties

    The loopback interface 'lo' usually has IP 127.0.0.1/8 and is UP by default.
  2. Step 2: Analyze command output

    ip addr show lo will display interface details including IP and state UP.
  3. Final Answer:

    Shows interface lo with inet 127.0.0.1/8 and state UP -> Option A
  4. Quick Check:

    Loopback IP = 127.0.0.1/8 and UP [OK]
Quick Trick: Loopback IP is always 127.0.0.1/8 and interface is UP [OK]
Common Mistakes:
  • Assuming loopback is DOWN
  • Expecting different IP on lo
  • Thinking lo is not shown by ip addr

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes