Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 573 Bytes

iproute2.md

File metadata and controls

53 lines (37 loc) · 573 Bytes

iproute2 tutorial

ip link

  • see all the interfaces:
ip link show
  • set an interface up/down:
ip link set dev <interface name> up/down

ip address

  • show all interfaces with IP addresses:
ip address show
  • show only interfaces which have an IPv4 address:
ip -4 address show

ip route

  • list all the current routes:
ip route show

ip tunnel

  • list all the current tunnels:
ip tunnel show

ip neigh

  • show all neighbours:
ip neigh show

ip netns

ip rule