No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR500, AR510, and AR530 V200R007 CLI-based Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring transparent bridge, MAC table, link aggregation, VLANs, STP/RSTP/MSTP, and so on.The document provides the configuration procedures and configuration examples to illustrate the service configuration methods and application scenario.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring a Voice VLAN in Auto Mode

Example for Configuring a Voice VLAN in Auto Mode

Networking Requirements

As shown in Figure 7-3, Router_1 connects to IP phones and a PC. Router_1 uses VLAN 2 to transmit voice packets and VLAN 3 to transmit data packets. PC_1 connects to IP Phone_1 and they connect to Router_1, and IP Phone_2 separately connects to Router_1. Users require high quality of the VoIP service; therefore, voice data flows must be transmitted with a high priority to ensure the call quality.

Figure 7-3  Networking diagram of a voice VLAN in auto mode

Configuration Roadmap

The configuration roadmap is as follows:
  1. Create VLANs and VLANIF interfaces on Router and configure interfaces so that users can access the WAN.
  2. Configure an OUI so that the switch adds a VLAN tag to voice packets in which the source MAC address matches the OUI.
  3. Configure a voice VLAN and set the mode in which interfaces are added to the voice VLAN to auto so that voice data packets are transmitted in the voice VLAN with a high priority.

Procedure

  1. Create VLANs and configure interfaces on the Router.

    # Create VLAN 2 and VLAN 3.

    <Huawei> system-view
    [Huawei] vlan batch 2 3
    

    # Configure VLANs allowed by Eth2/0/0. The configuration of Eth2/0/1 is similar to the configuration of Eth2/0/0, and is not mentioned here.

    [Huawei] interface ethernet 2/0/0
    [Huawei-Ethernet2/0/0] port link-type hybrid
    [Huawei-Ethernet2/0/0] port hybrid pvid vlan 3
    [Huawei-Ethernet2/0/0] port hybrid untagged vlan 3
    [Huawei-Ethernet2/0/0] quit
    

  2. Configure an OUI.

    [Huawei] voice-vlan mac-address 0003-6B00-0000 mask ffff-ff00-0000
    
    NOTE:

    The configured OUI must match the MAC address of the downlink voice device.

  3. Configure the voice VLAN on the Router.

    # Enable the voice VLAN on Ethernet2/0/0.

    [Huawei] interface ethernet 2/0/0
    [Huawei-Ethernet2/0/0] voice-vlan 2 enable
    

    # Configure the mode in which Ethernet2/0/0 is added to the voice VLAN.

    [Huawei-Ethernet2/0/0] voice-vlan mode auto
    

    # Configure the working mode of the voice VLAN.

    [Huawei-Ethernet2/0/0] voice-vlan security enable
    [Huawei-Ethernet2/0/0] quit
    

    The configuration of Eth2/0/1 is similar to the configuration of Eth2/0/0, and is not mentioned here.

  4. Verify the configuration.

    # Run the display voice-vlan oui command to check the OUI of the voice VLAN.

    <Huawei> display voice-vlan oui
    ---------------------------------------------------
    OuiAddress       Mask             Description
    ---------------------------------------------------
    0003-6b00-0000   ffff-ff00-0000
    

    # Run the display voice-vlan 2 status command to check the voice VLAN configuration, including the status and mode in which the interface is added to the voice VLAN.

    <Huawei> display voice-vlan 2 status
    Voice VLAN Configurations:
    -----------------------------------------------------------
    Voice VLAN ID            :  2
    Voice VLAN status        : Enable
    
    Voice VLAN 8021p remark  : 6
    Voice VLAN dscp remark   : 46
    -----------------------------------------------------------
    Port Information:
    -----------------------------------------------------------
    Port                     Add-Mode  Security-Mode  Legacy
    -----------------------------------------------------------
    Ethernet2/0/1            Auto      Security       Disable
    Ethernet2/0/0            Auto      Security       Disable
    

Configuration Files

Router configuration file

#
 voice-vlan mac-address 0003-6b00-0000 mask ffff-ff00-0000
#
vlan batch 2 to 3
#
interface Ethernet2/0/0
 voice-vlan 2 enable
 port hybrid pvid vlan 3
 port hybrid untagged vlan 3
#
interface Ethernet2/0/1
 voice-vlan 2 enable
 port hybrid pvid vlan 3
 port hybrid untagged vlan 3
#
return
Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 8199

Downloads: 62

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next