mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
Add page.
This commit is contained in:
parent
85ad9ba247
commit
d1deb1a86e
1 changed files with 28 additions and 0 deletions
28
pages/linux/ip-link.md
Normal file
28
pages/linux/ip-link.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# ip link
|
||||
|
||||
> Manage network interfaces.
|
||||
> More information: <https://github.com/dmbaturin/iproute2-cheatsheet>.
|
||||
|
||||
- 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:
|
||||
|
||||
`ip link set {{ethN}} alias {{"LAN Interface"}}`
|
||||
|
||||
- Change the MAC address of a network interface:
|
||||
|
||||
`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- Change the size of the MTU for a network interface to use jumbo frames:
|
||||
|
||||
`ip link set {{ethN}} mtu {{9000}}`
|
Loading…
Add table
Reference in a new issue