Ifconfig Vs Ip
Ifconfig Vs Ip
Ifconfig Vs Ip
Ifconfig Vs IP Command
This alternative has also been there for quite some time now and is much
more powerful than any of these commands. Rest of sections would
highlight this alternative and compare it with one of the command from
net-tools package i.e. ifconfig.
Although this command might seem a bit complex at first site but it is much
broader in functionality than ifconfig. It is functionally organized on two
layers of Networking Stack i.e. Layer 2(Link Layer), Layer 3(IP Layer) and
does the work of all the above mentioned commands from net-tools
package.
We can now begin to highlight the features of ifconfigand how they are
effectively replaced by ipcommand.
ip vs ifconfig Commands
Following section highlights some of ifconfigcommands and their
replacement using ipcommands:
ifconfig Command
$ ifconfig
ifconfig: Check IP Address
ip Command
$ ip a
ip: Check IP Address
ip – Add/Del IP Address
Here, the syntax for adding MAC address using ifconfig command:
# ifconfig eth0 up
This command is the ip alternative to enable ARP for the interface eth0. To
disable, just replace onwith off.
If you want to learn more about these two commands, then you should go
through our previous articles that shows some practical examples of
ifconfig and ip command in more detailed fashion.