2020-10-19 18:41:28 +02:00
|
|
|
# ip address
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
> IP Adressen Management Unterbefehl.
|
2021-09-02 15:33:49 -03:00
|
|
|
> Weitere Informationen: <https://manned.org/ip-address>.
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige Netzwerk-Interfaces mit ihren Adressen:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[a|address]}}`
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige nur die aktiven Netzwerk-Interfaces:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[a|address]}} show up`
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige Informationen über ein bestimmtes Interface:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[a|address]}} show dev {{eth0}}`
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Füge eine Adresse zu einem Interface hinzu:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[a|address]}} add {{ip_adresse}} dev {{eth0}}`
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Entferne eine Adresse von einem Interface:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[a|address]}} delete {{ip_adresse}} dev {{eth0}}`
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
- Entfernt alle IP Adressen in einem speziellen Bereich von einem Interface:
|
|
|
|
|
2025-03-07 13:05:55 +02:00
|
|
|
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|