$linuxjunkies
>

ip-link(8)

Show and manipulate network device properties and state.

UbuntuDebianFedoraArch

Synopsis

ip link { add | del | set | show | help } [DEVICE]

Description

The ip link command manages network interfaces on Linux systems. It displays detailed information about network devices, changes their state (up/down), modifies MTU and other properties, and creates or deletes virtual network interfaces.

This is the modern replacement for the deprecated ifconfig command and provides much finer control over network interface configuration.

Common options

FlagWhat it does
showDisplay information about all network interfaces (default action)
show DEVICEShow details for a specific interface (e.g., eth0, wlan0)
set DEVICE upBring a network interface up (enable it)
set DEVICE downBring a network interface down (disable it)
set DEVICE mtu MTUChange the Maximum Transmission Unit size for a device
set DEVICE promisc on|offEnable or disable promiscuous mode (receive all packets)
add type vlanCreate a virtual LAN interface
add type bridgeCreate a bridge interface
del DEVICEDelete a virtual network interface
-s, --statsShow interface statistics (packets, bytes, errors)
-br, --briefBrief output format, one interface per line

Examples

List all network interfaces with full details including MAC addresses and MTU

ip link show

Display information for the eth0 interface only

ip link show eth0

Bring up (enable) the eth0 interface

sudo ip link set eth0 up

Bring down (disable) the eth0 interface

sudo ip link set eth0 down

Change eth0's MTU to 9000 bytes for jumbo frames

sudo ip link set eth0 mtu 9000

Display detailed statistics for eth0 (packets sent/received, errors, dropped)

ip -s link show eth0

Create a VLAN interface (eth0.100) on eth0 with VLAN ID 100

sudo ip link add link eth0 name eth0.100 type vlan id 100

Show brief summary of all interfaces in compact format

ip link -br show

Related commands