AfterAcademy Tech
•
29 Feb 2020

In computer networks, we come across various networking devices. But have you ever wondered, how we can enable, disable, or configure these networking devices in our computers? Actually, we need some network configuration commands for these purposes. We can execute these commands on the command line interface or terminal to enable, disable, or configure the network interfaces on computers.
So, in this blog, we are going to learn about the two network configuration commands that are ipconfig and ifconfig. We’ll also see the implementation and differences of these two commands.
ipconfig stands for Internet Protocol Configuration. This command is used to view all the current TCP/IP network configurations values of the computer. The ipconfig command is mainly used in Microsoft Windows operating system. But it is also supported by React OS and Apple Mac OS. Some of the latest versions of the Linux OS also supports ipconfig.
It has to be taken under consideration that ipconfig command displays both the enabled as well as the disabled configurations of networking devices that are currently connected to the system. In the below screenshot, you can see the working of ipconfig command on a Microsoft Windows PC.

In other words, we can say that it is a command-line tool that can be used to view, configure, and control the network connections in a computer.
Some of the most common ipconfig commands are:
We can also get a new IP address using the following ipconfig commands:
ifconfig stands for Interface Configuration. This command is the same as ipconfig, and is used to view all the current TCP/IP network configurations values of the computer. The ifconfig command is mainly used in a Unix-like operating system. The ifconfig command displays only the enabled configurations of networking devices that are currently connected to the system. In the below screenshot, you can see the working of ifconfig command on an Ubuntu PC.

It displays information like the IP address, subnet mask, and default gateway for all adapters. It is to be noticed that ifconfig can only assign a static IP address to a networking device connected to the system. For assigning the dynamic IP address, the ‘dhclient’ command is used.
Some of the most common ifconfig commands are:
In other words, the ifconfig command is used for configuring, controlling, and querying TCP/IP network configurations. It can be used to change the Mac address of an interface. For this, the network interface is first disabled(set down), and then we give the command for changing the mac address. We can use the command ‘sudo ifconfig [interface name] up/down’ for enabling or disabling the network interface.
Following are the differences between ipconfig and ifconfig:
This is all about the ipconfig and ifconfig, its application, and differences. Hope you learned something new today. That's it for this blog.
Do share this blog with your friends to spread the knowledge. Visit our YouTube channel for more content. You can read more blogs from here.
Keep Learning 🙂
Team AfterAcademy!
AfterAcademy Tech
In this blog, we will learn the difference between SQL and MySQL. People use these terms intechangeably. But both are having different meanings.

AfterAcademy Tech
In this blog, we will learn what is RDBMS and how it is different from DBMS. People often use these words intechangeably. But there is a difference between these two terms. So, let's learn how.

AfterAcademy Tech
In this blog, we will learn how WHERE and HAVING clause are used and then see what are the main differences between the WHERE clause and HAVING clause.

AfterAcademy Tech
In this blog, we will learn about the difference between Mutex and Semaphore in the Operating System. We will first learn about Mutex and Semaphore and after that, we will find the difference between them.
