A junior administrator is troubleshooting a legacy CentOS 6 file server that still ships only with the net-tools package. The iproute2 utilities are not installed. To bring the eth0 interface up and assign it the address 192.168.10.5/24 from the command line, which legacy utility should the admin run?
ifconfig is the classic net-tools command used to configure network interfaces. It can bring an interface up or down and set parameters such as IP address, netmask, and MTU. Modern distributions prefer the ip utility from iproute2, but on older systems ifconfig remains the appropriate tool. The other commands do not configure interfaces: netstat displays socket and routing data, route manipulates the kernel routing table, and ip is part of iproute2, not net-tools.
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.
Why is the 'ifconfig' command considered deprecated?
Open an interactive chat with Bash
What is the difference between the 'ifconfig' and 'ip' commands?
Open an interactive chat with Bash
What does the net-tools suite include besides 'ifconfig'?