tldr/pages.de/linux/ip.md

37 lines
753 B
Markdown
Raw Permalink Normal View History

# ip
2021-03-25 16:42:04 +00:00
> Zeige und manipuliere routing, Geräte, Policy routing und Tunnel.
> Weitere Informationen: <https://www.man7.org/linux/man-pages/man8/ip.8.html>.
2021-03-25 16:42:04 +00:00
- Zeige Interfaces mit detaillierten Informationen:
`ip address`
2021-03-25 16:42:04 +00:00
- Zeige Interfaces mit kurzen Netzwerkinformationen:
`ip -brief address`
2021-03-25 16:42:04 +00:00
- Zeige Interfaces mit kurzen link layer Informationen:
`ip -brief link`
2021-03-25 16:42:04 +00:00
- Zeige die Routing Tabelle:
`ip route`
2021-03-25 16:42:04 +00:00
- Zeige Nachbarn (ARP Tabelle):
`ip neighbour`
- Schalte ein bestimmtes Interface ein oder aus:
2021-03-25 16:42:04 +00:00
`ip link set {{interface}} {{up|down}}`
2021-03-25 16:42:04 +00:00
- Entferne oder füge eine IP zu einem Interface hinzu:
`ip addr add/del {{ip}}/{{mask}} dev {{interface}}`
2021-03-25 16:42:04 +00:00
- Füge eine Standard Route hinzu:
`ip route add default via {{ip}} dev {{interface}}`