ifconfig - Linux

OS: 
Function: 
Summary
  • The ifconfig command is used to configure parameters of network interfaces on a Linux system, such as enabling and disabling of interfaces and setting the IP address.
Detailed Description
  • The ifconfig command is usually run when a system boots up. In this case, the parameters of the commands are read from a file. Once the Linux system is running, the ifconfig command can be used to modify the network configuration parameters.
  • Additional useful refrence can be found at webpage for Linux command man pages: http://linux.die.net/man/8/ifconfig
Commands
ifconfig -Displays the configuration parameters of all active -interfaces.
ifconfig -a -Displays the configuration parameters of all network interfaces, including the inactive interfaces.
ifconfig interface -Displays the configuration parameters of all network interfaces, including the inactive interfaces.
ifconfig eth0 down -Disables the eth0 interface.
ifconfig eth0 up -Enables the eth0 interface.
ifconfig eth0 10.0.1.8 netmask 255.255.255.0 broadcast 10.0.1.255 -Assigns interface eth0 the IP address 10.0.1.8/24 and a broadcast address of 10.0.1.255