nerdexam
CompTIA

XK0-005 · Question #298

A newly installed desktop is unable to connect to networked resources. The systems administrator executes various commands and reviews the following output snippets: Which of the following should…

The correct answer is D. ip link set wlo1 up. If a network interface is down, it must be brought up before any network connectivity can be established.

Troubleshooting

Question

A newly installed desktop is unable to connect to networked resources. The systems administrator executes various commands and reviews the following output snippets:

Which of the following should the systems administrator try NEXT to restore connectivity?

Options

  • Aarp -s 20:ad:1f:ab:10:0f 192.168.1.10
  • Broute add -net 192.168.1.0 netmask 255.255.255.0
  • Cdig -x @127.0.0.1 192.168.1.10
  • Dip link set wlo1 up
  • Ekillall -HUP NetworkManager

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    14% (6)
  • C
    2% (1)
  • D
    74% (31)
  • E
    7% (3)

Why each option

If a network interface is down, it must be brought up before any network connectivity can be established.

Aarp -s 20:ad:1f:ab:10:0f 192.168.1.10

`arp -s` adds a static ARP entry, which is used for resolving IP to MAC addresses, and is not the first step to restore general connectivity if the interface itself is down.

Broute add -net 192.168.1.0 netmask 255.255.255.0

`route add` adds a static network route; this is only necessary if routing tables are incorrect after the interface is up and has an IP address.

Cdig -x @127.0.0.1 192.168.1.10

`dig -x` performs a reverse DNS lookup, and using `127.0.0.1` (localhost) as the DNS server for an external IP address is unlikely to resolve a connectivity issue.

Dip link set wlo1 upCorrect

The `ip link set wlo1 up` command brings the specified network interface (`wlo1`) up, making it active and capable of transmitting and receiving data. This is a fundamental step to restore connectivity if the interface is in a down state, which is a common cause for a desktop being unable to connect to networked resources.

Ekillall -HUP NetworkManager

`killall -HUP NetworkManager` restarts the NetworkManager service, which might resolve some configuration issues, but it's not the most direct fix if a specific interface is explicitly down.

Concept tested: Bringing up a network interface

Source: https://man7.org/linux/man-pages/man8/ip-link.8.html

Topics

#Network troubleshooting#Linux networking#ip command#Network interfaces

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice