2021-03-30 20:54:54 -04:00
|
|
|
# ip link
|
|
|
|
|
|
|
|
> Manage network interfaces.
|
2024-06-18 05:46:25 +02:00
|
|
|
> More information: <https://manned.org/ip-link>.
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Show information about all network interfaces:
|
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[l|link]}}`
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Show information about a specific network interface:
|
|
|
|
|
2025-03-09 14:01:49 +02:00
|
|
|
`ip {{[l|link]}} {{[sh|show]}} {{ethN}}`
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Bring a network interface up or down:
|
|
|
|
|
2025-03-09 14:01:49 +02:00
|
|
|
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{up|down}}`
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Give a meaningful name to a network interface:
|
|
|
|
|
2025-03-09 14:01:49 +02:00
|
|
|
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[al|alias]}} "{{LAN Interface}}"`
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Change the MAC address of a network interface:
|
|
|
|
|
2025-03-09 14:01:49 +02:00
|
|
|
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[a|address]}} {{ff:ff:ff:ff:ff:ff}}`
|
2021-03-30 20:54:54 -04:00
|
|
|
|
2021-04-04 09:48:47 -04:00
|
|
|
- Change the MTU size for a network interface to use jumbo frames:
|
2021-03-30 20:54:54 -04:00
|
|
|
|
2025-03-09 14:01:49 +02:00
|
|
|
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} mtu {{9000}}`
|