当前位置:网站首页>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电话,并获取到了相关的设备信息。
边栏推荐
- 随时随地查看远程试验数据与记录——IPEhub2与IPEmotion APP
- Data type of pytorch tensor
- [software reverse - solve flag] memory acquisition, inverse transformation operation, linear transformation, constraint solving
- Equals() and hashcode()
- Zynq transplant ucosiii
- Dell笔记本周期性闪屏故障
- [C language] dynamic address book
- 代码克隆的优缺点
- 集合(泛型 & List & Set & 自定义排序)
- 一行代码实现地址信息解析
猜你喜欢
Do you understand this patch of the interface control devaxpress WinForms skin editor?
Chapter II proxy and cookies of urllib Library
批量获取中国所有行政区域经边界纬度坐标(到县区级别)
【JVM调优实战100例】05——方法区调优实战(下)
Dell Notebook Periodic Flash Screen Fault
第六篇,STM32脉冲宽度调制(PWM)编程
pytorch之数据类型tensor
详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
深度学习之数据处理
Stm32f407 ------- DAC digital to analog conversion
随机推荐
Dr selection of OSPF configuration for Huawei devices
pyflink的安装和测试
Stm32f407 ------- SPI communication
C9高校,博士生一作发Nature!
Installation of torch and torch vision in pytorch
[HFCTF2020]BabyUpload session解析引擎
Deep understanding of distributed cache design
再聊聊我常用的15个数据源网站
Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
Attention SLAM:一种从人类注意中学习的视觉单目SLAM
一行代码实现地址信息解析
Configuring the stub area of OSPF for Huawei devices
[batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
Summary of being a microservice R & D Engineer in the past year
C9 colleges and universities, doctoral students make a statement of nature!
. Bytecode structure of class file
Dell Notebook Periodic Flash Screen Fault
Link sharing of STM32 development materials
Grc: personal information protection law, personal privacy, corporate risk compliance governance
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?