nerdexam
CompTIA

XK0-004 · Question #418

A Linux administrator configured several network interfaces to be used for backup. The administrator entered the following commands: After the last command, a new interlace appeared as connected and w

The correct answer is A. The backup Interface should be reconfigured with a / 2 4 subnet mask.. A network interface configured via nmcli fails to reconnect after reboot when its connection profile lacks a complete subnet mask definition.

Troubleshooting and Diagnostics

Question

A Linux administrator configured several network interfaces to be used for backup. The administrator entered the following commands:

After the last command, a new interlace appeared as connected and worked until the Linux system was rebooted. After the reboot, the Interface did not connect properly. Which of the following configuration changes are needed to ensure that the Interface connects automatically?

Options

  • AThe backup Interface should be reconfigured with a / 2 4 subnet mask.
  • Bautoconnect yes should be added to the interface configuration.
  • Cmcli conn up backup should be executed
  • Dip link set eth1 should be performed.

How the community answered

(21 responses)
  • A
    76% (16)
  • B
    5% (1)
  • C
    5% (1)
  • D
    14% (3)

Why each option

A network interface configured via nmcli fails to reconnect after reboot when its connection profile lacks a complete subnet mask definition.

AThe backup Interface should be reconfigured with a / 2 4 subnet mask.Correct

Reconfiguring the backup interface with a /24 subnet mask ensures the persistent NetworkManager connection profile contains a fully specified IP address and prefix length, which NetworkManager requires to initialize the interface correctly on boot. Without a complete subnet definition in the stored profile, NetworkManager may fail to apply the correct network settings during system startup.

Bautoconnect yes should be added to the interface configuration.

Adding 'autoconnect yes' enables automatic connection attempts but does not resolve an incomplete IP addressing configuration that prevents the interface from initializing with correct settings.

Cmcli conn up backup should be executed

'nmcli conn up backup' is a one-time runtime command that activates the connection manually but does not persist across reboots or correct the underlying profile configuration.

Dip link set eth1 should be performed.

'ip link set eth1' is a transient iproute2 command that configures link-layer state at runtime only and does not create or modify persistent NetworkManager connection profiles.

Concept tested: NetworkManager persistent interface IP configuration

Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_networking/configuring-an-ethernet-connection_configuring-and-managing-networking

Topics

#NetworkManager#network interface#autoconnect#persistent configuration

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice