Wazaterm » Linux Commands » ifconfig

How to use ifconfig Linux command

The ifconfig command is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed.

Usage

Disable the network Interface(e.g. eth0)

$ sudo ifconfig eth0 down

Enable the network Interface(e.g. eth0)

$ sudo ifconfig eth0 up

Display the network settings of specific interface (e.g. eth0)

$ ifconfig eth0

Display all network setting

$ ifconfig