-
ip 명령어Unix Linux Like 2021. 1. 19. 11:35
IP ADDRESS
# SHOW ip addr ip addr show dev {DEVICE} # ADD ip addr add {IP/MASK} dev {DEVICE} # DEL ip addr del {IP/MASK} ip addr del {IP/MASK} dev {DEVICE}
IP ROUTE
# SHOW ip route ip route show # ADD ip route add {NETWORK/MASK} via {GATEWAYIP} ip route add {NETWORK/MASK} dev {DEVICE} ip route add default {NETWORK/MASK} dev {DEVICE} ip route add default {NETWORK/MASK} via {GATEWAYIP} ip route add default via {GATEWAYIP} # DEL ip route del {NETWORK/MASK} ip route del default
IP LINK
# SHOW ip link ip link show ip link show eth1 # LINK UP/DOWN ip link set {DEVICE} up ip link set {DEVICE} down
IP NEIGH
# SHOW ip neigh show # FLUSH ip neigh flush
참고:
- access.redhat.com/articles/ip-command-cheat-sheet
- phoenixnap.com/kb/linux-ip-command-examples
- www.cyberciti.biz/faq/ip-route-add-network-command-for-linux-explained/
728x90반응형