配置LLDP可配置VOICE VLAN功能实现IP语音接入交换机示例
组网需求
网络中有HSI、VoIP和IPTV等数据流,用户对语音通话质量较敏感,需要提高语音数据流的传输优先级,以保证用户的通话质量。如果语音设备支持LLDP协议,可以在交换机上启用LLDP可配置VOICE VLAN功能实现IP语音接入,交换机通过LLDP协议给语音设备分配VLAN ID。
如图3-15所示,Switch配置LLDP可配置VOICE VLAN功能后,语音设备通过LLDP功能学习到VLAN。
配置思路
- 创建VLAN并配置接口类型及缺省VLAN。VLAN10作为接口GE1/0/1的缺省VLAN对HSI和IPTV的数据流进行转发。VLAN20用于LLDP可配置的VOICE VLAN对VoIP的语音流进行转发。
- 全局LLDP使能。
- 配置LLDP可配置VOICE VLAN功能。
操作步骤
- 配置Switch的VLAN和接口
# 创建VLAN10、VLAN20。
<Quidway> system-view [Quidway] sysname Switch [Switch] vlan batch 10 20
# 配置接口类型和缺省VLAN。
[Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] port hybrid pvid vlan 10 [Switch-GigabitEthernet1/0/1] port hybrid untagged vlan 10 [Switch-GigabitEthernet1/0/1] quit
- 配置LLDP使能
[Switch] lldp enable
- 配置LLDP可配置VOICE VLAN功能
[Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] port hybrid tagged vlan 20 [Switch-GigabitEthernet1/0/1] lldp tlv-enable med-tlv network-policy voice-vlan vlan 20 [Switch-GigabitEthernet1/0/1] quit [Switch] quit
- 检查配置结果
# 执行命令display lldp local,查看LLDP可配置VOICE VLAN功能是否配置正确。
<Switch> display lldp local System information -------------------------------------------------------------------------- Chassis type :MAC address Chassis ID :00e0-11fc-1710 System name :Switch System description :Huawei Switch S9306 Huawei Versatile Routing Platform Software VRP (R) software, Version 5.170 (S9300 V200R019C10) Copyright (C) 2000-2019 HUAWEI TECH Co., Ltd. System capabilities supported :bridge router System capabilities enabled :bridge router LLDP Up time :2019-02-28 11:53:20 MED system information -------------------------------------------------------------------------- Device class :Network Connectivity (MED inventory information of master board) HardwareRev :LE02MCUA VER.A FirmwareRev :020d.0067 SoftwareRev :Version 5.170 V200R019C10 SerialNum :NA Manufacturer name :HUAWEI TECH CO., LTD Model name :NA Asset tracking identifier :NA System configuration -------------------------------------------------------------------------- LLDP Status :enabled (default is enabled) LLDP Message Tx Interval :30 (default is 30s) LLDP Message Tx Hold Multiplier :4 (default is 4) LLDP Refresh Delay :2 (default is 2s) LLDP Tx Delay :2 (default is 2s) LLDP Notification Interval :5 (default is 5s) LLDP Notification Enable :enabled (default is enabled) Management Address :IP:10.10.10.1 MAC:000b-09e6-3da1 Remote Table Statistics: -------------------------------------------------------------------------- Remote Table Last Change Time :0 days, 0 hours, 4 minutes, 15 seconds Remote Neighbors Added :5 Remote Neighbors Deleted :0 Remote Neighbors Dropped :0 Remote Neighbors Aged :0 Total Neighbors :5 Port information: -------------------------------------------------------------------------- Interface GigabitEthernet1/0/1: LLDP Enable Status :enabled (default is enabled) Total Neighbors :1 Port ID subtype :Interface name Port ID :GigabitEthernet1/0/1 Port description :GigabitEthernet1/0/1 Port and protocol VLAN ID(PPVID) :0 Port and protocol VLAN supported :No Port and protocol VLAN enabled :No Port VLAN ID(PVID) :10 VLAN name of VLAN 1:VLAN 0001 Protocol identity :STP RSTP/MSTP LACP EthOAM CFM Auto-negotiation supported :Yes Auto-negotiation enabled :Yes OperMau :speed(1000)/duplex(Full) Power port class :PD PSE power supported :No PSE power enabled :No PSE pairs control ability:No Power pairs :Unknown Port power classification:Unknown Link aggregation supported:Yes Link aggregation enabled :No Aggregation port ID :0 Maximum frame Size :1526 EEE support :Yes Transmit Tw :16 Receive Tw :16 Fallback Receive Tw :65535 Echo Transmit Tw :16 Echo Receive Tw :16 MED port information Media policy type :Voice Unknown Policy :Defined VLAN tagged :Yes Media policy VlanID :20 Media policy L2 priority :5 Media policy Dscp :46 Power Type :Unknown PoE PSE power source :Unknown Port PSE Priority :Unknown Port Available power value:0.2(w) ---- More ----