ip is a powerful network configuration tool in the iproute2 software package. It can replace some traditional network management tools, such as ifconfig, route, etc., use permissions as superuser. Almost all Linux distributions support this command. (Recommended learning: linux tutorial)
As every Linux network administrator and all Linux users, the ip command is an essential tool, and this command perfectly replaces ifconfig command, so this article will comprehensively summarize the ip command. I hope that through my summary, everyone can become more familiar with the ip command.
ip commonly used command format is as follows:
ip [ OPTIONS ] OBJECT { COMMAND | help }
Object OBJECT={ link | addr | addrlabel | route | rule | neigh | ntable | tunnel | maddr | mroute | mrule | monitor | iec | -f[amily] { inet | inet6 | ipx | dnet | link } | -o[neline] | -t[imestamp] | -b[atch] [filename] | -rc[vbuf] [size] }
The values of common objects have the following meanings:link:网络设备
address:设备上的协议(IP或IPv6)地址
addrlabel:协议地址选择的标签配置
route:路由表条目
rule:路由策略数据库中的规则
The above is the detailed content of What is the ip command in linux. For more information, please follow other related articles on the PHP Chinese website!-V,-Version:显示指令版本信息
-s,-stats,statistics:输出详细信息
-h,-human,-human-readable:输出人类可读的统计信息和后缀
-o,-oneline:将每条记录输出到一行,用‘\’字符替换换行符