如何找到哪个端口有静态IP

网络工程 思科 转变 ip IPv4
2022-02-08 16:48:51

我的同事在交换机上设置了静态IP,但没有告诉我在哪里和哪个端口,有没有运行命令可以找到哪个端口设置了静态IP。

1个回答

在大多数情况下,在交换机上,您会将 IP 添加到 VLAN 接口,而不是物理端口。

无论如何,在 Cisco 上,您可以从“show ip int brief”命令开始,再次假设您可以访问交换机。其他品牌也有类似的命令。

这将向您显示如下内容:

Router# show ip interface brief
Interface     IP-Address     OK?  Method  Status                  Protocol
Ethernet0     10.108.00.5    YES  NVRAM   up                      up      
Ethernet1     unassigned     YES  unset   administratively down   down    
Loopback0     10.108.200.5   YES  NVRAM   up                      up      
Serial0       10.108.100.5   YES  NVRAM   up                      up      
Serial1       10.108.40.5    YES  NVRAM   up                      up      
Serial2       10.108.100.5   YES  manual  up                      up      
Serial3       unassigned     YES  unset   administratively down   down