求教最快速查看交换机各端口当前设备IP地址的命令组合。
因为单位有大量的POE交换机,也使用了大量的IP话机(Avaya),交换机端口都配置了data VLAN和voice VLAN,有些端口接两个设备(先连接到话机,话机上有网口再连接电脑),话机和电脑都是DHCP,但是获取的地址网段不同;有些端口则只连接了一台电脑。
问题来了,如何快速从交换机上查看到所有端口,哪些连接了话机和电脑,哪些只连接了电脑,它们的IP地址分别是什么?
附上接入交换机的端口配置
vlan internal allocation policy ascending
!
vlan 100
name Video_Conference
!
vlan 200
name PBX
!
!
!
!
!
!
!
!
!
!
!
interface Port-channel10
switchport mode trunk
speed nonegotiate
!
interface FastEthernet0
no ip address
shutdown
!
interface GigabitEthernet1/0/1
switchport mode access
switchport voice vlan 200
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security
macro description cisco-desktop | cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/0/2
switchport mode access
switchport voice vlan 200
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security
macro description cisco-desktop | cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/0/25
description link to 3850_Coreswitch
switchport mode trunk
speed nonegotiate
channel-group 10 mode on
!
interface GigabitEthernet1/0/26
description link to 3850_Coreswitch
switchport mode trunk
speed nonegotiate
channel-group 10 mode on
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface Vlan1
ip address 10.12.124.57 255.255.252.0
no ip route-cache
!