1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-25 20:44:10 +02:00
tldr/pages/linux/ip-link.md
2025-03-09 14:01:49 +02:00

744 B

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]}} {{ethN}}

  • Bring a network interface up or down:

sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{up|down}}

  • Give a meaningful name to a network interface:

sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[al|alias]}} "{{LAN Interface}}"

  • Change the MAC address of a network interface:

sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[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]}} {{ethN}} mtu {{9000}}