commands.sh

ip link

linux

Manage network interfaces.

More info →

Options (6)

boolean

Show information about all network interfaces

Example: ip {{[l|link]}}
boolean

Show information about a specific network interface

Example: ip {{[l|link]}} {{[sh|show]}} {{ethX}}
boolean

Bring a network interface up or down

Example: sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{up|down}}
boolean

Give a meaningful name to a network interface

Example: sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[al|alias]}} "{{LAN Interface}}"
boolean

Change the MAC address of a network interface

Example: sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[a|address]}} {{ff:ff:ff:ff:ff:ff}}
boolean

Delete a device

Example: sudo ip {{[l|link]}} {{[d|delete]}} {{ethX}}

Examples (8)

Show information about all network interfaces

ip [l|link]

Show information about a specific network interface

ip [l|link] [sh|show] ethX

Bring a network interface up or down

sudo ip [l|link] [s|set] ethX up|down

Give a meaningful name to a network interface

sudo ip [l|link] [s|set] ethX [al|alias] "LAN Interface"

Change the MAC address of a network interface

sudo ip [l|link] [s|set] ethX [a|address] ff:ff:ff:ff:ff:ff

Change the MTU size for a network interface to use jumbo frames

sudo ip [l|link] [s|set] ethX mtu 9000

Set the promisc mode status of a device

sudo ip [l|link] [s|set] ethX promisc on|off

Delete a device

sudo ip [l|link] [d|delete] ethX
made by @shridhargupta | data from tldr-pages