2021-03-30 20:54:54 -04:00
|
|
|
# ip link
|
|
|
|
|
|
|
|
> Manage network interfaces.
|
2021-03-31 11:47:19 -04:00
|
|
|
> More information: <https://man7.org/linux/man-pages/man8/ip-link.8.html>.
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Show information about all network interfaces:
|
|
|
|
|
|
|
|
`ip link`
|
|
|
|
|
|
|
|
- Show information about a specific network interface:
|
|
|
|
|
|
|
|
`ip link show {{ethN}}`
|
|
|
|
|
|
|
|
- Bring a network interface up or down:
|
|
|
|
|
|
|
|
`ip link set {{ethN}} {{up|down}}`
|
|
|
|
|
|
|
|
- Give a meaningful name to a network interface:
|
|
|
|
|
2021-04-03 11:31:46 -04:00
|
|
|
`ip link set {{ethN}} alias "{{LAN Interface}}"`
|
2021-03-30 20:54:54 -04:00
|
|
|
|
|
|
|
- Change the MAC address of a network interface:
|
|
|
|
|
|
|
|
`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
|
|
|
|
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
|
|
|
|
|
|
|
`ip link set {{ethN}} mtu {{9000}}`
|