For example, to show network information for the interface eth0, you can run the command: ifconfig eth0 To get the network information for a specific address, you can use the ifconfig followed by the name of the network interface. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 This will include information such as the IP address (IPv4 and IPv6), Mac Address, and more. If you run the ifconfig command without any arguments, it should return information about all the network interfaces in your system. Ifconfig Show Network Interface Information address - refers to the IP address you wish to assign.interface - refers to the name of the network interface you wish to manage.The command syntax is as shown: ifconfig interface options | address Once you have the ifconfig installed, you can invoke it from the terminal to use it. On any Arch-based distribution, you can use the command below to install ifconfig. If you are on any REHL based distribution, you can use dnf or yum commands as shown below: sudo dnf install net-tools -y If you are using any Debian-based distribution, you can install the ifconfig utility as shown in the command below: sudo apt-get install net-tools -y Installing ifconfig on Debian-Based Distro If the command is not installed, you will get command not found error: Command 'ifconfig' not found, but can be installed with: You can check if the command is installed by invoking the command: ifconfig This means that it may not be installed by default on your target machine. The ifconfig command has become deprecated and has been superseded by the ip command which provides more functionality and performance. Using the ifconfig command, we can perform an array of network administration operations such as enabling and disabling interfaces, managing ARP cache, managing network routes, and more. The ifconfig or Interface configuration is a network configuration utility in Linux and other Unix-like systems that allows us to configure, control, and query TCP/IP network interfaces from the command-line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |