找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 19058|回复: 0

display ip‑interface brief 接口状态

[复制链接]

1

主题

0

回帖

5

积分

新手上路

积分
5
发表于 5 天前 | 显示全部楼层 |阅读模式
显示 IP 接口简要信息(接口状态)

在 Cisco IOS 设备上,您可以使用
  1. show ip interface brief
复制代码
命令来查看设备上所有接口的 IP 地址和状态摘要。

基本命令
  1. show ip interface brief
复制代码

示例输出
  1. Interface              IP-Address      OK? Method Status                Protocol
  2. GigabitEthernet0/0     192.168.1.1     YES manual up                    up      
  3. GigabitEthernet0/1     10.0.0.1        YES manual up                    up      
  4. Loopback0             10.1.1.1        YES manual up                    up      
  5. Serial0/0/0            unassigned      YES unset  administratively down down
复制代码

输出解释

  • Interface: 接口名称
  • IP-Address: 分配给接口的 IP 地址(如果未配置则显示 "unassigned")
  • OK?: 配置验证状态("YES" 表示配置有效)
  • Method: 配置方法("manual" 表示手动配置,"DHCP" 表示通过 DHCP 获取等)
  • Status: 接口的物理状态("up" 或 "down")
  • Protocol: 接口的协议状态("up" 或 "down")


过滤特定接口

您可以添加接口名称来只查看特定接口的信息:
  1. show ip interface brief | include GigabitEthernet0/0
复制代码

或者使用更精确的过滤:
  1. show ip interface brief | begin GigabitEthernet0/0
复制代码

其他相关命令

  • 查看更详细的接口信息:

  1. show interfaces
复制代码

  • 查看特定接口的详细 IP 信息:

  1. show ip interface [接口名称]
复制代码

这个命令是网络故障排除和验证配置时非常有用的工具,可以快速查看所有接口的状态和 IP 分配情况。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|五云论坛 ( 黔ICP备2022001370号-1|贵公网安备52032102000798号 )

GMT+8, 2026-9-12 20:42 , Processed in 0.074932 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表