2020-10-19 18:41:28 +02:00
|
|
|
# ip
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
> Zeige und manipuliere routing, Geräte, Policy routing und Tunnel.
|
2024-06-18 17:08:28 +02:00
|
|
|
> Weitere Informationen: <https://www.manned.org/ip.8>.
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige Interfaces mit detaillierten Informationen:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip address`
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige Interfaces mit kurzen Netzwerkinformationen:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip -brief address`
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige Interfaces mit kurzen link layer Informationen:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip -brief link`
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige die Routing Tabelle:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip route`
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Zeige Nachbarn (ARP Tabelle):
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip neighbour`
|
|
|
|
|
2021-10-22 17:03:00 +02:00
|
|
|
- Schalte ein bestimmtes Interface ein oder aus:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
`ip link set {{interface}} {{up|down}}`
|
2020-10-19 18:41:28 +02:00
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Entferne oder füge eine IP zu einem Interface hinzu:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip addr add/del {{ip}}/{{mask}} dev {{interface}}`
|
|
|
|
|
2021-03-25 17:42:04 +01:00
|
|
|
- Füge eine Standard Route hinzu:
|
2020-10-19 18:41:28 +02:00
|
|
|
|
|
|
|
`ip route add default via {{ip}} dev {{interface}}`
|