
- BROADCAST 接口支持广播
- MULTICAST 接口支持多播
- UP 接口以启用
- LOWER_UP 网络电缆已插入,设备已物理连接至网络
- mtu 1500 最大传输单元
- qdisc pfifo_fast queueing discipline,队列策略,pfifo_fast是一种尽量快速传输的策略
- qlen 1000 缓冲队列长度
- dynamic 地址为dhcp方式获得
- valid_lft forever 地址有效使用期限
- preferred_lft 首选有效期

- scope link 仅在此设备有效
- scope global 全局有效

- metric 度量值,确定路由优先级,越小优先级越高
- proto 路由协议,可取redirect static,kernel,boot,ra,kernel为内核自动生成
用法:
- ip route get 192.168.3.50 通过IP查询路由包通路
- ip route flush cache 刷新路由表
- ip -s -h link 显示网络接口statistics
- ip -s -s link 更详细信息

- RX 接受
- TX 发出
- bytes RX/TX字节数
- packets RX/TX字节数
- errors 出错的数据包数
- dropped 处理资源不足丢弃的包
- overrun 接受溢出丢失的包
- mcast 收到的多播包
- carrier 链路层错误发送失败的包
- collsns 冲突发送失败的包
ip 命令常用用法
原文:https://www.cnblogs.com/dissipate/p/13121437.html