ifconfig
NetworkBeginnerReference onlyShow or configure interfaces (legacy; prefer ip)
Name: ifconfig = interface configuration
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
ifconfig is the traditional tool for network interfaces (from net-tools). Many new systems no longer install it; use ip instead.
Syntax
ifconfig [INTERFACE] [OPTIONS]Common options
| -a | Show all interfaces, including down ones |
| IFACE up / down | Bring an interface up / down, e.g. ifconfig eth0 down (needs root) |
Examples
$ ifconfig
Interfaces and IP addresses
Explain