HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ip link — Manage network interfaces. More information: <https://manned.org/ip-link>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandip linknetworkclimanageinformationmoreinterfaces
linux

Problem

How to use the ip link command: Manage network interfaces. More information: <https://manned.org/ip-link>.

Solution

ip link — Manage network interfaces. More information: <https://manned.org/ip-link>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/ip link

Revisions (0)

No revisions yet.