mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
ip address: use a specific network interface example (#3987)
This commit is contained in:
parent
35b643410f
commit
5ccd89309b
1 changed files with 4 additions and 4 deletions
|
@ -12,16 +12,16 @@
|
|||
|
||||
- Display information about a specific network interface:
|
||||
|
||||
`ip address show dev {{network_interface}}`
|
||||
`ip address show dev {{eth0}}`
|
||||
|
||||
- Add an IP address to a network interface:
|
||||
|
||||
`ip address add {{ip_address}} dev {{network_interface}}`
|
||||
`ip address add {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Remove an IP address from a network interface:
|
||||
|
||||
`ip address delete {{ip_address}} dev {{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 {{network_interface}} scope {{global|host|link}}`
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue