# Ifconfig Command

# **ifconfig - Linux**

**OS:** 

UNIX

**Function:** 

ifconfig

**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](http://linux.die.net/man/8/ifconfig)
    

**Commands**

<table><tbody><tr><td colspan="1" rowspan="1"><p><strong>ifconfig</strong></p></td><td colspan="1" rowspan="1"><p>-Displays the configuration parameters of all active -interfaces.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>ifconfig -a</strong></p></td><td colspan="1" rowspan="1"><p>-Displays the configuration parameters of all network interfaces, including the inactive interfaces.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>ifconfig <em>interface</em></strong></p></td><td colspan="1" rowspan="1"><p>-Displays the configuration parameters of all network interfaces, including the inactive interfaces.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>ifconfig eth0 down</strong></p></td><td colspan="1" rowspan="1"><p>-Disables the eth0 interface.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>ifconfig eth0 up</strong></p></td><td colspan="1" rowspan="1"><p>-Enables the eth0 interface.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>ifconfig eth0 10.0.1.8 netmask 255.255.255.0 broadcast 10.0.1.255</strong></p></td><td colspan="1" rowspan="1"><p>-Assigns interface eth0 the IP address 10.0.1.8/24 and a broadcast address of 10.0.1.255</p></td></tr></tbody></table>

### Thanks.................
