当前位置:网站首页>LLDP兼容CDP功能配置
LLDP兼容CDP功能配置
2022-07-06 17:21:00 【微思xmws】
配置需求
Device A通过接口GigabitEthernet1/0/1和GigabitEthernet1/0/2分别与两部Cisco的IP电话相连,这两部IP电话发送的Tagged语音数据。
在Device A上配置VLAN ID为2的Voice VLAN,通过在Device A上配置LLDP兼容CDP功能使IP电话完成Voice VLAN的自动配置,以使语音数据流被限制在Voice VLAN内,与其他数据流区分开来。
组网图

图1-6 LLDP兼容CDP功能配置组网图
配置步骤
(1) 在Device A上配置Voice VLAN
# 创建VLAN 2。
<DeviceA> system-view
[DeviceA] vlan 2
[DeviceA-vlan2] quit
# 分别将接口GigabitEthernet1/0/1和GigabitEthernet1/0/2配置为Trunk端口,并开启Voice VLAN功能。
[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) 在Device A上配置LLDP兼容CDP功能
# 全局开启LLDP功能以及LLDP兼容CDP功能。
[DeviceA] lldp global enable
[DeviceA] lldp compliance cdp
# 在接口GigabitEthernet1/0/1和GigabitEthernet1/0/2上分别开启LLDP功能(此步骤可省略,LLDP功能在接口上缺省开启),配置LLDP工作模式为TxRx,并配置LLDP兼容CDP功能的工作模式为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
# 显示Device A上的邻居信息。
[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
由此可见,Device A已发现了分别连接在接口GigabitEthernet1/0/1和GigabitEthernet1/0/2上的IP电话,并获取到了相关的设备信息。
边栏推荐
- 【批处理DOS-CMD命令-汇总和小结】-字符串搜索、查找、筛选命令(find、findstr),Find和findstr的区别和辨析
- [batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
- 腾讯云 WebShell 体验
- [Niuke classic question 01] bit operation
- ActiveReportsJS 3.1中文版|||ActiveReportsJS 3.1英文版
- Attention SLAM:一种从人类注意中学习的视觉单目SLAM
- Deep learning environment configuration jupyter notebook
- 随时随地查看远程试验数据与记录——IPEhub2与IPEmotion APP
- Openjudge noi 1.7 08: character substitution
- What is time
猜你喜欢

Part V: STM32 system timer and general timer programming

Dell Notebook Periodic Flash Screen Fault

Periodic flash screen failure of Dell notebook
![[牛客] B-完全平方数](/img/bd/0812b4fb1c4f6217ad5a0f3f3b8d5e.png)
[牛客] B-完全平方数

Do you understand this patch of the interface control devaxpress WinForms skin editor?
![[Niuke classic question 01] bit operation](/img/f7/e3a482c379ec9bbdb453a05e5e08cb.jpg)
[Niuke classic question 01] bit operation

Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang

Segmenttree

【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析

Installation and testing of pyflink
随机推荐
线段树(SegmentTree)
Informatics Olympiad YBT 1171: factors of large integers | 1.6 13: factors of large integers
Part V: STM32 system timer and general timer programming
Js+svg love diffusion animation JS special effects
Set (generic & list & Set & custom sort)
fastDFS数据迁移操作记录
[software reverse automation] complete collection of reverse tools
重上吹麻滩——段芝堂创始人翟立冬游记
String comparison in batch file - string comparison in batch file
Segmenttree
Build your own website (17)
Part VI, STM32 pulse width modulation (PWM) programming
Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000
mongodb客户端操作(MongoRepository)
Meet the level 3 requirements of ISO 2.0 with the level B construction standard of computer room | hybrid cloud infrastructure
深度学习之线性代数
Openjudge noi 1.7 08: character substitution
Dell筆記本周期性閃屏故障
Anfulai embedded weekly report no. 272: 2022.06.27--2022.07.03
[牛客] B-完全平方数