当前位置:网站首页>Lldp compatible CDP function configuration

Lldp compatible CDP function configuration

2022-07-07 01:08:00 Weisi xmws

Configuration requirements

  • Device A Through interface GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Respectively with two Cisco Of IP Telephone connection , These two IP Sent by phone Tagged Voice data .

  • stay Device A On the configuration VLAN ID by 2 Of Voice VLAN, By means of Device A On the configuration LLDP compatible CDP Function makes IP The call is complete Voice VLAN Automatic configuration of , So that the voice data flow is limited to Voice VLAN Inside , Separate from other data streams .


 

Networking diagram

chart 1-6 LLDP compatible CDP Function Configuration Networking diagram

Configuration steps

(1)      stay Device A On the configuration Voice VLAN

#  establish VLAN 2.
<DeviceA> system-view
[DeviceA] vlan 2
[DeviceA-vlan2] quit
#  Interface GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Configure to Trunk port , And open Voice VLAN function .
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] voice-vlan 2 enable
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-GigabitEthernet1/0/2] voice-vlan 2 enable
[DeviceA-GigabitEthernet1/0/2] qui

(2)      stay Device A On the configuration LLDP compatible CDP function

#  Global on LLDP Functions and LLDP compatible CDP function .
[DeviceA] lldp global enable
[DeviceA] lldp compliance cdp
#  At the interface GigabitEthernet1/0/1 and GigabitEthernet1/0/2 On each side of the screen LLDP function ( This step can be omitted ,LLDP The function is enabled by default on the interface ), To configure LLDP The working mode is TxRx, And configuration LLDP compatible CDP The working mode of the function is TxRx.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] lldp enable
[DeviceA-GigabitEthernet1/0/1] lldp admin-status txrx
[DeviceA-GigabitEthernet1/0/1] lldp compliance admin-status cdp txrx
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] lldp enable
[DeviceA-GigabitEthernet1/0/2] lldp admin-status txrx
[DeviceA-GigabitEthernet1/0/2] lldp compliance admin-status cdp txrx
[DeviceA-GigabitEthernet1/0/2] quit
#  Show Device A Neighbor information on .
[DeviceA] display lldp neighbor-information
 
CDP neighbor-information of port 1[GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
 CDP neighbor index  : 1
 Chassis ID          : SEP00141CBCDBFE 
 Port ID             : Port 1
 
CDP neighbor-information of port 2[GigabitEthernet1/0/2]:
LLDP agent nearest-bridge:
 CDP neighbor index  : 2
 Chassis ID          : SEP00141CBCDBFF
 Port ID             : Port 

thus it can be seen ,Device A It has been found that they are respectively connected to the interface GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Upper IP Telephone , And get the relevant equipment information .

原网站

版权声明
本文为[Weisi xmws]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061721376053.html