ifconfig stands for interface configuration. ifconfig is a command-line tool that is used to configure a network interface in Linux and can also be used to connect all network interfaces such as Ethernet, wireless, modem, and others to your computer. The ifconfig command usually has the features to configure, control, and query TCP / IP network interface parameters. Ifconfig originally appears in 4.2BSD as part of the BSBS TCP / IP suite. The ifconfig command is used to configure kernel-resident network interfaces, and the ifconfig command is used to set up interfaces as required at boot time, typically during debugging or when you need system tuning. In addition to all this, the Ifconfig command is used to assign an IP address and netmask to an interface or to enable or disable a given interface. Ifconfig is used to change the medium access control (MAC) address of an interface. In this process, the network interface must be disabled (set down) with the ifconfig command.
Configuring an interface
You can also configure an Ethernet card, wireless card, loopback interface, or any other network interface device with ifconfig.
Example If you want to set the IP address of your Ethernet card, you can pass the required option of ifconfig command as follows:
“ifconfig p2p1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 up”
Where the 192.168.0.1 number corresponds to the IP address of your machine. We have used a private IP address on Yaja. 255.255.255.0 denotes the network mask that determines the possible size of your network and the number 192.168.0.255 represents the broadcast address and finally, the up keyword is the flag that loads the module associated with this particular Ethernet card. And now it is fully ready to send data and receive data.