display ip‑interface brief 接口状态
显示 IP 接口简要信息(接口状态)在 Cisco IOS 设备上,您可以使用 show ip interface brief 命令来查看设备上所有接口的 IP 地址和状态摘要。
基本命令
show ip interface brief
示例输出
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.168.1.1 YES manual up up
GigabitEthernet0/1 10.0.0.1 YES manual up up
Loopback0 10.1.1.1 YES manual up up
Serial0/0/0 unassigned YES unsetadministratively down down
输出解释
[*]Interface: 接口名称
[*]IP-Address: 分配给接口的 IP 地址(如果未配置则显示 "unassigned")
[*]OK?: 配置验证状态("YES" 表示配置有效)
[*]Method: 配置方法("manual" 表示手动配置,"DHCP" 表示通过 DHCP 获取等)
[*]Status: 接口的物理状态("up" 或 "down")
[*]Protocol: 接口的协议状态("up" 或 "down")
过滤特定接口
您可以添加接口名称来只查看特定接口的信息:
show ip interface brief | include GigabitEthernet0/0
或者使用更精确的过滤:
show ip interface brief | begin GigabitEthernet0/0
其他相关命令
[*]查看更详细的接口信息:
show interfaces
[*]查看特定接口的详细 IP 信息:
show ip interface [接口名称]
这个命令是网络故障排除和验证配置时非常有用的工具,可以快速查看所有接口的状态和 IP 分配情况。
页:
[1]