1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/ip-link.md

29 lines
744 B
Markdown
Raw Normal View History

2021-03-30 20:54:54 -04:00
# ip link
> Manage network interfaces.
> More information: <https://manned.org/ip-link>.
2021-03-30 20:54:54 -04:00
- Show information about all network interfaces:
`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
- 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}}`