ip-link
TLDR
Show all interfaces
$ ip link
Show specific interface$ ip link show eth0
Bring interface up/down$ sudo ip link set eth0 up
Set alias name$ sudo ip link set eth0 alias "LAN Interface"
Change MAC address$ sudo ip link set eth0 address ff:ff:ff:ff:ff:ff
Set MTU size$ sudo ip link set eth0 mtu 9000
Set promiscuous mode$ sudo ip link set eth0 promisc on
SYNOPSIS
ip link [command] [OPTIONS]
DESCRIPTION
ip link manages network device configuration including bringing interfaces up/down, setting MAC addresses, MTU, and creating virtual interfaces like bridges, bonds, and VLANs.
PARAMETERS
show [device]
Display interface informationset device
Modify interface propertiesadd
Create a virtual interfacedelete
Remove a virtual interfaceup/down
Bring interface up or downaddress mac
Set MAC addressmtu bytes
Set Maximum Transmission Unitalias name
Set interface descriptionpromisc on|off
Enable/disable promiscuous modemaster bridge
Assign interface to a bridge
CAVEATS
Changing MAC address usually requires interface to be down first. Virtual interfaces persist only until reboot unless configured in network configuration files.
HISTORY
ip link is part of iproute2, replacing the deprecated ifconfig command.
SEE ALSO
ip(8), ip-address(8), ethtool(8)


