Professional Documents
Culture Documents
Ip Command Cheat Sheet: For Red Hat Enterprise Linux
Ip Command Cheat Sheet: For Red Hat Enterprise Linux
CHEAT SHEET
for Red Hat Enterprise Linux
addr add
Add an address
ip addr add 192.168.1.1/24 dev em1
IP QUERIES
SUBCOMMAND
addr
link set
ip addr
Delete an address
ip link
route add
Add a default route (for all addresses) via the local gateway
192.168.1.1 that can be reached on device em1
ip maddr
ip neigh
ip route
maddr
route get
ip addr help
neigh add
MULTICAST ADDRESSING
SUBCOMMAND
maddr add
neigh del
Invalidate an entry
ip neigh del 192.168.1.1 dev em1
arping
Identify eth0 by sight, typically by causing LEDs to blink on the network port
ethtool -S eth0
IPROUTE COMMANDS
arp -a
ip neigh
arp -v
ip -s neigh
ifconfig -a
ip addr
ifconfig eth0 up
netstat
ss
netstat -neopa
ss -neopa
netstat -g
ip maddr
route
ip route
12/14
Copyright 2014 Red Hat, Inc. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, and JBoss are trademarks of Red Hat, Inc.,
registered in the U.S. and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.