mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 08:53:55 +00:00
Update cheatsheets
This commit is contained in:
33
linux/ip-address
Normal file
33
linux/ip-address
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ip address
|
||||
|
||||
> IP Address management subcommand.
|
||||
> More information: <https://manned.org/ip-address>.
|
||||
|
||||
- List network interfaces and their associated IP addresses:
|
||||
|
||||
`ip address`
|
||||
|
||||
- Filter to show only active network interfaces:
|
||||
|
||||
`ip address show up`
|
||||
|
||||
- Display information about a specific network interface:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
|
||||
- Add an IP address to a network interface:
|
||||
|
||||
`ip address add {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Remove an IP address from a network interface:
|
||||
|
||||
`ip address delete {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Delete all IP addresses in a given scope from a network interface:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
Reference in New Issue
Block a user