Here's some examples:
ip addr - equivalent to ifconfig
ip addr show eth0 - same as above just show eth0
ip ro - show routing table
ip route add default via 192.168.0.254 - set the default gateway
ip addr add 192.168.0.5/24 brd + dev eth0 label eth0:0 - set an ip alias on eth0 and call it eth0:0
ip neigh - show the arp table
No comments:
Post a Comment