IP命令篇

版权声明:转载请声明~ https://blog.csdn.net/weixin_38890593/article/details/86550480

ip:show/manipulate routing, devices, policy routing and tunnels

Linux的ip命令和ifconfig类似,但前者功能更强大,并旨在取代后者。使用ip命令能很轻松地执行一些网络管理任务。ifconfig是net-tools中已被废弃使用的一个命令,许多年前就已经没有维护了。iproute2套件里提供了许多增强功能的命令,ip命令便是其中之一。

对于网络管理员们和所有的Linux使用者们,ip命令是必备工具!!!

team$ ip --help     查看help信息
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
       ip [ -force ] -batch filename
where  OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |
                   tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |
                   netns | l2tp | fou | tcp_metrics | token | netconf }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
                    -h[uman-readable] | -iec |
                    -f[amily] { inet | inet6 | ipx | dnet | bridge | link } |
                    -4 | -6 | -I | -D | -B | -0 |
                    -l[oops] { maximum-addr-flush-attempts } |
                    -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
                    -rc[vbuf] [size] | -n[etns] name | -a[ll] }
常用语法:ip [ OPTIONS ] OBJECT { COMMAND | help }
COMMAND:指定在OBJECT上执行的动作(如上面的help)

猜你喜欢

转载自blog.csdn.net/weixin_38890593/article/details/86550480
今日推荐