A Linux administrator needs to configure a network interface, eth0, which already has the IP address 192.168.1.10/24. They need to add a second IP address, 10.0.0.5/8, to the same interface without interrupting existing services. Which of the following commands will accomplish this?
The correct command is ip address add 10.0.0.5/8 dev eth0. The ip address add command is part of the modern iproute2 suite and is used to add an additional IP address to a network interface. This does not interfere with any existing IP addresses on the interface.
ip address set is incorrect because set is not a valid action for the ip address command. The primary actions are add, del, and show.
ip route add is incorrect because it is used to modify the system's routing table, which dictates how packets are forwarded to other networks, not to assign an IP address to a local interface.
ifconfig eth0:1... is incorrect because ifconfig is a legacy command from the net-tools package. While it was used to create IP aliases, the modern and tested standard is the ip command from the iproute2 package.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is iproute2, and why is it preferred over net-tools?
Open an interactive chat with Bash
What does the `/8` mean in the IP address `10.0.0.5/8`?
Open an interactive chat with Bash
Why is `ip address set` not correct in this context?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .