1.命令作用
ip(Internet Protocol),显示/操作路由、设备、策略路由和隧道(show / manipulate routing, devices, policy routing and tunnels);命令归属于 iproute2 工具集,iproute2 旨在取代 net-tools,并提供了一些新功能; iproute2 则通过 netlink 套接字接口与内核通讯;iproute2 则相对整齐和直观,基本都是 ip 命令加后面的子命令。
2.命令语法
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
ip [ -force ] -batch filename
OBJECT := { link | address | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | tcp_metrics | token | macsec }
OPTIONS := { -V[ersion] | -h[uman-readable] | -s[tatistics] | -d[etails] | -r[esolve] | -iec | -f[amily] { inet | inet6 | ipx | dnet | link } | -4 | -6 | -I | -D | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -rc[vbuf] [size] | -t[imestamp] | -ts[hort] | -n[etns] name | -a[ll] | -c[olor] }


1699

被折叠的 条评论
为什么被折叠?



