< Home

voice-vlan (network basic profile view)

Function

The voice-vlan command configures a voice VLAN in a network basic profile.

The undo voice-vlan command deletes the voice VLAN in a network basic profile.

By default, no voice VLAN is configured in a network basic profile.

This command can only be executed on a parent switch.

Format

voice-vlan vlan-id [ include-untagged ]

undo voice-vlan

Parameters

Parameter Description Value
vlan-id

Specifies a VLAN ID.

The value is an integer that ranges from 2 to 4094.

The value cannot be the ID of an SVF management VLAN, a stack management VLAN, an ERPS control VLAN, an RRPP control VLAN, an SEP control VLAN, or a super VLAN.

include-untagged

Adds voice VLAN IDs to untagged packets.

-

Views

Network basic profile view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After creating a network basic profile, you can configure a voice VLAN in the profile. After the profile is bound to an AS port, the voice VLAN is automatically configured on the port. The following configuration is generated on the AS port:
  • The include-untagged parameter is not specified:
    #
     port link-type hybrid
     port hybrid tagged vlan vlan-id
     lldp tlv-enable med-tlv network-policy voice-vlan vlan vlan-id
     lldp compliance cdp txrx
    #
    
  • The include-untagged parameter is specified (S5720-EI, S6720-EI, and S6720S-EI):
    #
     port link-type hybrid
     port hybrid untagged vlan vlan-id
     voice-vlan vlan-id enable include-untagged include-tag0
     undo lldp tlv-enable med-tlv network-policy
    #
    
  • The include-untagged parameter is specified (except S5720-EI, S6720-EI, and S6720S-EI):
    #
     port link-type hybrid
     port hybrid untagged vlan vlan-id
     voice-vlan vlan-id enable include-untagged 
     undo lldp tlv-enable med-tlv network-policy
    #

Precautions

The default VLAN, allowed VLANs, and voice VLAN in a network basic profile must be different.

When configuring a voice VLAN on an AS port, ensure that IP phones connected to the AS port support LLDP and have LLDP enabled.

Example

# Configure a voice VLAN in a network basic profile.

<HUAWEI> system-view
[HUAWEI] uni-mng
[HUAWEI-um] network-basic-profile name profile_1
[HUAWEI-um-net-basic-profile_1] voice-vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >