Advertisement

Linux 解析各种 ip 命令

阅读量:

IP命令完全可以取代ifconfig命令 甚至更强

ip常用命令格式如下:

复制代码
    ip [ OPTIONS ] OBJECT { COMMAND | help }
复制代码
    对象OBJECT={ link | addr | addrlabel | route | rule | neigh | ntable | tunnel | maddr | mroute | mrule | monitor | xfrm | token }
    
    选项OPTIONS={ -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -h[uman-readable] | -iec | -f[amily] { inet | inet6 | ipx | dnet | link } | -o[neline] | -t[imestamp] | -b[atch] [filename] | -rc[vbuf] [size] }

常用对象的取值含义如下:

  • link:网络相关设备
  • address:协议(IP或IPv6)地址
  • addrlabel:用于选择协议地址的标签配置
  • route:记录在路由表中的路径信息
  • rule:存储于路由策略数据库中的规则

常用选项的取值含义如下:

  • 显示指令

全部评论 (0)

还没有任何评论哟~