当前位置:网站首页>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电话,并获取到了相关的设备信息。
边栏推荐
- Part 7: STM32 serial communication programming
- 【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析
- [software reverse automation] complete collection of reverse tools
- Telerik UI 2022 R2 SP1 Retail-Not Crack
- Configuring OSPF basic functions for Huawei devices
- 重上吹麻滩——段芝堂创始人翟立冬游记
- Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
- Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
- Periodic flash screen failure of Dell notebook
- [Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr
猜你喜欢
集合(泛型 & List & Set & 自定义排序)
Stm32f407 ------- DAC digital to analog conversion
动态规划思想《从入门到放弃》
【JVM调优实战100例】05——方法区调优实战(下)
Do you understand this patch of the interface control devaxpress WinForms skin editor?
线段树(SegmentTree)
ActiveReportsJS 3.1中文版|||ActiveReportsJS 3.1英文版
BFS realizes breadth first traversal of adjacency matrix (with examples)
详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
Configuring the stub area of OSPF for Huawei devices
随机推荐
Come on, don't spread it out. Fashion cloud secretly takes you to collect "cloud" wool, and then secretly builds a personal website to be the king of scrolls, hehe
重上吹麻滩——段芝堂创始人翟立冬游记
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
Eventbus source code analysis
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
Dell Notebook Periodic Flash Screen Fault
Equals() and hashcode()
In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
Make a simple graphical interface with Tkinter
Batch obtain the latitude coordinates of all administrative regions in China (to the county level)
Attention SLAM:一種從人類注意中學習的視覺單目SLAM
Informatics Olympiad YBT 1171: factors of large integers | 1.6 13: factors of large integers
Do you understand this patch of the interface control devaxpress WinForms skin editor?
[software reverse automation] complete collection of reverse tools
再聊聊我常用的15个数据源网站
[software reverse - solve flag] memory acquisition, inverse transformation operation, linear transformation, constraint solving
"Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!