cdp voice-vlan

Use cdp voice-vlan to configure a port to advertise the specified voice VLAN in CDP packets.

Use undo cdp voice-vlan to restore the default.

Syntax

cdp voice-vlan vlan-id

undo cdp voice-vlan

Default

When CDP compatibility is enabled, the port advertises the voice VLAN configured on the port to its connected IP phone through CDP packets.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Parameters

vlan-id: Specifies a voice VLAN ID in the range of 1 to 4094.

Usage guidelines

You must use this command with CDP compatibility.

Examples

# Configure Ten-GigabitEthernet 1/0/1 to advertise VLAN 4094 in CDP packets.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] cdp voice-vlan 4094