mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 09:50:09 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,24 +14,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show information about a specific network interface:
|
||||
|
||||
`ip {{[l|link]}} {{[sh|show]}} {{ethN}}`
|
||||
`ip {{[l|link]}} {{[sh|show]}} {{ethX}}`
|
||||
|
||||
- Bring a network interface up or down:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{up|down}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{up|down}}`
|
||||
|
||||
- Give a meaningful name to a network interface:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[al|alias]}} "{{LAN Interface}}"`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[al|alias]}} "{{LAN Interface}}"`
|
||||
|
||||
- Change the MAC address of a network interface:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} {{[a|address]}} {{ff:ff:ff:ff:ff:ff}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{[a|address]}} {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- Change the MTU size for a network interface to use jumbo frames:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} mtu {{9000}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} mtu {{9000}}`
|
||||
|
||||
- Set the promisc mode status of a device:
|
||||
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethN}} promisc {{on|off}}`
|
||||
`sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} promisc {{on|off}}`
|
||||
|
||||
Reference in New Issue
Block a user