Usage And Variation

  1. ifconfig -a The a flag will display all interfaces of the system, including those that are inactive
  2. ifconfig (interfaceName) Will only display information of a given interface represented by the interface name
  3. ifconfig (interfaceName) up Will activate the given network interface so long as it exists

What is the IFCONFIG command?

The ifconfig command displays the network and configuration information, such as the IP and MAC addresses of the machine. More information regarding the network interface, such as the subnet mask and information concerning the different interfaces of a machine can also be found using this command.



In the example above, the user wishes to view their network information. The IP address, subnet mask, MAC address, broadcast information and other network metrics are available for viewing.

Try it: