ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 150 - XK0-005 discussion

Report
Export

In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6 5/24 to the newly added network interface enp1s0f1. Which of the following commands should the administrator run to achieve the goal?

A.
ip addr add 10.0.6.5/24 dev enpls0f1
Answers
A.
ip addr add 10.0.6.5/24 dev enpls0f1
B.
echo "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enplsOfl
Answers
B.
echo "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enplsOfl
C.
ifconfig 10.0.6.5/24 enpsIs0f1
Answers
C.
ifconfig 10.0.6.5/24 enpsIs0f1
D.
nmcli conn add lpv4.address-10.0.6.5/24 ifname enpls0f1
Answers
D.
nmcli conn add lpv4.address-10.0.6.5/24 ifname enpls0f1
Suggested answer: A

Explanation:

The command ip addr add 10.0.6.5/24 dev enp1s0f1 will achieve the goal of temporarily assigning IP address 10.0.6.5/24 to the newly added network interface enp1s0f1. The ip command is a tool for managing network interfaces and routing on Linux systems. The addr option specifies the address manipulation mode. The add option adds a new address to an interface. The 10.0.6.5/24 is the IP address and the subnet mask in CIDR notation. The dev option specifies the device name.

The enp1s0f1 is the name of the network interface. The command ip addr add 10.0.6.5/24 dev enp1s0f1 will add the IP address 10.0.6.5/24 to the network interface enp1s0f1, which will allow the administrator to copy data from another VLAN. This is the correct command to use to achieve the goal. The other options are incorrect because they either do not add a new address to an interface (echo "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enp1s0f1 or ifconfig 10.0.6.5/24 enp1s0f1) or do not use the correct syntax for the command (nmcli conn add ipv4.address-10.0.6.5/24 ifname enp1s0f1 instead of nmcli conn add type ethernet ipv4.address 10.0.6.5/24 ifname enp1s0f1). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Managing Network Connections, page 385.

asked 02/10/2024
Vincent Cham
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first