ifconfig

Network Interface Configurator. More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.

Install

All systems
curl cmd.cat/ifconfig.sh
Debian Debian
apt-get install net-tools
Ubuntu
apt-get install net-tools
Alpine
apk add net-tools
Arch Arch Linux
pacman -S net-tools
image/svg+xml Kali Linux
apt-get install net-tools
CentOS
yum install net-tools
Fedora
dnf install net-tools
Windows (WSL2)
sudo apt-get update sudo apt-get install net-tools
Raspbian
apt-get install net-tools
Docker
docker run cmd.cat/ifconfig ifconfig powered by Commando

Network Interface Configurator. More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.

  • View network settings of an Ethernet adapter:
    ifconfig eth0
  • Display details of all interfaces, including disabled interfaces:
    ifconfig -a
  • Disable eth0 interface:
    ifconfig eth0 down
  • Enable eth0 interface:
    ifconfig eth0 up
  • Assign IP address to eth0 interface:
    ifconfig eth0 ip_address

© tl;dr; authors and contributors