CompTIA Linux+ Powered by LPI (LX0-104) — Question 24

When issuing the command ifconfig eth0 192.168.1.20/24 up, which of the following happens? (Choose TWO correct answers.)

Answer options

Correct answer: A, B

Explanation

Option A is correct because the command directly assigns the IP address 192.168.1.20 to eth0. Option B is also correct as it creates a route for the specified network with the given netmask. The other options do not accurately reflect the function of the ifconfig command in this context.