From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

ifconfig deprecated

ifconfig deprecated

- [Instructor] Now the ifconfig command is being deprecated. As an example on this new release of Ubuntu 17.04, when I use the command ifconfig, I'm told that the program ifconfig is not currently installed. I can install it by using the command sudo apt install and net-tools, but ifconfig is actually being deprecated and so are some of the other commands such as route. What we wanna use instead of ifconfig is ip, and notice if type ip enter, various options are displayed. Ip --help also shows us those options, and man ip gives us a lot of details of options available with the ip command. So as an example I can use the command ip address to view the ip address of my local computer. So instead of using ifconfig and seeing the IP address over here of my ethernet interface, ip address or ip a shows us the IP address of the PC's ethernet interface. Rather than using route, we use the command ip route. Similar information is displayed. If you prefer using the older command, all you need to…

Contents