当前位置:网站首页>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电话,并获取到了相关的设备信息。
边栏推荐
- Tensorflow 1.14 specify GPU running settings
- 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?
- Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
- from .cv2 import * ImportError: libGL.so.1: cannot open shared object file: No such file or direc
- Part 7: STM32 serial communication programming
- . Bytecode structure of class file
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- Data type of pytorch tensor
- Leetcode (547) - number of provinces
- Dr selection of OSPF configuration for Huawei devices
猜你喜欢
Data type of pytorch tensor
Linear algebra of deep learning
Make a simple graphical interface with Tkinter
Dell Notebook Periodic Flash Screen Fault
Chapter II proxy and cookies of urllib Library
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
集合(泛型 & List & Set & 自定义排序)
windows安装mysql8(5分钟)
[C language] dynamic address book
Data processing of deep learning
随机推荐
腾讯云 WebShell 体验
第五篇,STM32系统定时器和通用定时器编程
How do novices get started and learn PostgreSQL?
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
Learn self 3D representation like ray tracing ego3rt
.class文件的字节码结构
Advantages and disadvantages of code cloning
[牛客] [NOIP2015]跳石头
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
ActiveReportsJS 3.1中文版|||ActiveReportsJS 3.1英文版
Deep learning environment configuration jupyter notebook
Data type of pytorch tensor
Part V: STM32 system timer and general timer programming
Chapter II proxy and cookies of urllib Library
Dell筆記本周期性閃屏故障
Link sharing of STM32 development materials
Service asynchronous communication
Dell Notebook Periodic Flash Screen Fault
Interface (interface related meaning, different abstract classes, interface callback)
【批处理DOS-CMD命令-汇总和小结】-跳转、循环、条件命令(goto、errorlevel、if、for[读取、切分、提取字符串]、)cmd命令错误汇总,cmd错误