exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 160 discussion

Actual exam question from CompTIA's XK0-005
Question #: 160
Topic #: 1
[All XK0-005 Questions]

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 enpls0f1. Which of the following commands should the administrator run to achieve the goal?

  • 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-enpls0f1
  • C. ifconfig 10.0.6.5/24 enpsls0f1
  • D. nmcli conn add ipv4.address=10.0.6.5/24 if name snpls0f1
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bongobo
10 months, 3 weeks ago
if ifconfig is involved, shout be: ifconfig 10.0.6.5 netmask 255.255.255.0 -I enpls0f1 up
upvoted 2 times
bongobo
10 months, 3 weeks ago
ifconfig -I enpls0f1 10.0.6.5 netmask 255.255.255.0 up
upvoted 2 times
...
...
linux_admin
1 year, 11 months ago
Selected Answer: A
A. ip addr add 10.0.6.5/24 dev enpls0f1 Explanation: ip is a command-line tool used to manage network interfaces in Linux. addr add 10.0.6.5/24 is an option used with the ip command to add an IP address to a network interface. dev enpls0f1 specifies the network interface to which the IP address should be added. So, the command ip addr add 10.0.6.5/24 dev enpls0f1 will assign IP address 10.0.6.5/24 temporarily to the network interface enpls0f1.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...