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

33 lines
852 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:
`ip {{[l|link]}} {{[sh|show]}} {{ethX}}`
2021-03-30 20:54:54 -04:00
- Bring a network interface up or down:
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{up|down}}`
2021-03-30 20:54:54 -04:00
- Give a meaningful name to a network interface:
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[al|alias]}} "{{LAN Interface}}"`
2021-03-30 20:54:54 -04:00
- Change the MAC address of a network interface:
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[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
`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}}`