Bird
0
0

What will be the output of ifconfig eth1 if eth1 is down and has no IP assigned?

medium📝 Command Output Q5 of 15
Linux CLI - Networking Commands
What will be the output of ifconfig eth1 if eth1 is down and has no IP assigned?
ADisplays eth1 interface with status DOWN and no inet address
BDisplays eth1 interface with status UP and IP 0.0.0.0
CNo output because interface is down
DError: interface eth1 not found
Step-by-Step Solution
Solution:
  1. Step 1: Understand ifconfig output for down interface

    If interface is down, ifconfig shows it with status DOWN and no IP address.
  2. Step 2: Check other options

    Displays eth1 interface with status UP and IP 0.0.0.0 is incorrect because IP 0.0.0.0 is not shown; No output because interface is down is wrong as ifconfig still shows down interfaces; Error: interface eth1 not found is wrong if interface exists.
  3. Final Answer:

    Displays eth1 interface with status DOWN and no inet address -> Option A
  4. Quick Check:

    Down interface shows status DOWN, no IP [OK]
Quick Trick: ifconfig shows down interfaces with status DOWN, no IP [OK]
Common Mistakes:
  • Thinking no output if interface is down
  • Assuming IP 0.0.0.0 is shown
  • Confusing interface not found with down status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes