用 `ip -br a` 以紧凑表格显示 IP 地址

一条命令就能把每个网卡的名称、状态和 IPv4/IPv6 地址打印成简短表格——这是取代又长又难记的 `ifconfig` 和冗长的 `ip addr` 输出的现代做法。

Linuxifconfig 网卡配置网络故障排查IP低风险
运行 `ip -br a`,即可每行一个网卡,紧凑列出接口状态(UP、DOWN)和已分配的 IP 地址。

01命令

命令
$ ip -br a

02作用说明

`ip -br a` 是 iproute2 的 `-brief`(简短)模式,把通常很啰嗦的地址输出压缩成「接口 / 状态 / 地址」三列表格。与老式 `ifconfig` 不同,它还会列出未启用的接口,并完整支持 IPv6。同样的 `-br` 参数也能用在 `ip -br link`(看 MAC 地址)和 `ip -br r`(看路由)上,非常好记。

03风险

风险低风险
使用条件Ships with iproute2, installed on virtually all modern distros

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • ip(8) — Linux manual page
    man7.org · technical · 2026-09-17
    依据: Documents `ip -br addr` as the brief, one-line-per-interface output format of the ip command

最后验证: 2026-09-17 · 分类: 网络

06相关方案