ip
Show / manipulate routing, devices, policy routing and tunnels.
Install
- All systems
-
curl cmd.cat/ip.sh
- Debian
-
apt-get install iproute2
- Ubuntu
-
apt-get install iproute2
-
Alpine
-
apk add iproute2
- Arch Linux
-
pacman -S iproute2
- Kali Linux
-
apt-get install iproute2
- CentOS
-
yum install iproute2
- Fedora
-
dnf install iproute2
- OS X
-
brew install iproute2
- Raspbian
-
apt-get install iproute2
- Dockerfile
- dockerfile.run/ip
- Docker
-
docker run cmd.cat/ip ip
powered by Commando
Show / manipulate routing, devices, policy routing and tunnels.
-
List interfaces with detailed info:
ip a
-
Display the routing table:
ip r
-
Show neighbors (ARP table):
ip n
-
Make an interface up/down:
ip link set interface up/down
-
Add/Delete an ip address to an interface:
ip addr add/del ip/mask dev interface
-
Add a default route:
ip route add default via ip dev interface
© tl;dr; authors and contributors