How to use ip instead of ipconfig

linux-penguinipconfig has been around a very long time. Increasingly you might find that your Linux computer doesn't have it installed, and instead you can use the ip command. This article will give you some replacement ip commands.


ifconfig

You might simply type ifconfig to discover useful information about your network interfaces.

ifconfig 

The equivalent ip command is:

ip a

 

Enabling or disabling a network interface

Using ifconfig you would enter the following to respectivly enable or disable the nic.

ifconfig eth0 down
ifconfig eth0 up

The equivalent ip commands are:

ip link set eth0 up
ip link set eth0 down

 

 

Thanks for visiting.