Saturday, June 6, 2015

Huawei - Switch: Voice Vlan and LLDP Config

How to Configure LLDP on Huawei Switch to Provide VoIP Access?
Posted on December 16, 2014

Networking Requirements

Flows of the HSI, VoIP, and IPTV services are transmitted on the network. Users require high quality of the VoIP service. Therefore, voice data flows must be transmitted with a high priority. If a voice device supports LLDP and has a high 802.1p priority (for example, 5), you can configure LLDP and Voice VLAN on the switch. Then the switch uses the LLDP protocol to deliver the Voice VLAN ID to the voice device and does not change the packet priority.

As shown in the below figure, after a Voice VLAN is configured on the Switch, the voice device learns the Voice VLAN ID using LLDP.

 

Configuring LLDP to provide VoIP access


clip_image001

Note: It can be applied to all Huawei Switches, like Huawei S2700, Huawei S3700 switches and Quidway S5700, etc.

 

Configuration Roadmap

The configuration roadmap is as follows:

  • Create VLANs.
  • Configure the link type and default VLAN of the interface connected to the IP phone.
  • Enable the Voice VLAN function on the interface.
  • Configure the interface to join the Voice VLAN in manual mode.
  • Set the working mode of the Voice VLAN.
  • Configure the interface to trust the 802.1p priority of packets.
  • Enable LLDP globally and on the interface.

 

Procedure

Configure VLANs and interface on the Switch.

# Create VLAN 2 and VLAN 6.
<HUAWEI> system-view
[HUAWEI] vlan batch 2 6

# Configure the link type and default VLAN of GigabitEthernet0/0/1.
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port hybrid pvid vlan 6
[HUAWEI-GigabitEthernet0/0/1] port hybrid untagged vlan 6

Configure the Voice VLAN on the Switch.

# Enable the Voice VLAN on GigabitEthernet0/0/1.
[HUAWEI-GigabitEthernet0/0/1] voice-vlan 2 enable

# Configure the mode in which GigabitEthernet0/0/1 is added to the Voice VLAN.
[HUAWEI-GigabitEthernet0/0/1] voice-vlan mode manual
[HUAWEI-GigabitEthernet0/0/1] port hybrid tagged vlan 2

# Configure the working mode of the Voice VLAN.
[HUAWEI-GigabitEthernet0/0/1] undo voice-vlan security enable

#Configure the interface to trust the 802.1p priority of packets.
[HUAWEI-GigabitEthernet0/0/1] trust 8021p (inner)
[HUAWEI-GigabitEthernet0/0/1] quit

NOTE: The format of the trust 8021p (inner) command varies depending on the device model.

 

Enable LLDP

[HUAWEI] lldp enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] lldp enable
[HUAWEI-GigabitEthernet0/0/1] return

 

Verify the configuration.

Run the display voice-vlan 2 status command to check the Voice VLAN configuration, including the mode in which the interface is added to the Voice VLAN, working mode, and aging time of the Voice VLAN.

<HUAWEI> display voice-vlan 2 status
Voice VLAN Configurations:
—————————————————
Voice VLAN ID           : 2
Voice VLAN status       : Enable
Voice VLAN aging time   : –
Voice VLAN 8021p remark : 6
Voice VLAN dscp remark   : 46
———————————————————-
Port Information:
———————————————————–
Port                     Add-Mode Security-Mode Legacy   PribyVLAN Untag
——————————————————————————-
GigabitEthernet0/0/1     Manual     Normal         Disable Enable     Disable

Configuration File

#Configuration file of the Switch

vlan batch 2 6
#                                   
lldp enable                       
#                                 
interface GigabitEthernet0/0/1     
voice-vlan 2 enable               
port hybrid pvid vlan 6           
port hybrid tagged vlan 2
port hybrid untagged vlan 6
trust 8021p (inner)
#
return

The more information about technical support you can consult with our engineer – Bill, and his e-mail address is as below:

bill@huanetwork.com

Taken From: http://www.huanetwork.com/blog/how-to-configure-lldp-on-huawei-switch-to-provide-voip-access/

1 comment:

iron said...

THANKS FOR SHARING SUCH A GREAT WORK
GOOD CONTENT!!
structured cabling service