| 地址 | ip -br a / ip addr add |
|---|---|
| 路由 | ip route / ip route add |
| 邻居 | ip neigh |
典型用法
典型用法
ip -br a
ip route show default
ip link set ens33 up
ip neigh | head
ip -s link show ens33 | head -8ip 命令做的临时变更重启即失效;持久化配置走 nmcli 或 ifcfg。
替换 ifconfig/route 的新一代网络工具:ip addr 看地址、ip route 看路由、ip link 管理接口,临时排障与脚本自动化都常用。
| 地址 | ip -br a / ip addr add |
|---|---|
| 路由 | ip route / ip route add |
| 邻居 | ip neigh |
ip -br a
ip route show default
ip link set ens33 up
ip neigh | head
ip -s link show ens33 | head -8