CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure a Protocol-Based VLAN

Protocol-based VLANs, also called protocol VLANs, are classified according to the frame encapsulation formats and protocol types of packets. After a protocol profile is defined, a port is configured to match a protocol profile, and the protocol VLAN function is enabled for the port, if the port receives an Untag packet that matches the protocol profile, the port adds a VLAN tag for the packet. The VLAN ID matches the VLAN ID defined in the profile.

After the physical location of the user is changed, if the frame encapsulation format of the user packets and protocol type are not changed, the VLAN to which the user port belongs need not be re-configured.

Configuration Condition

None

Configure a Protocol-Based VLAN

Table 3-12 Configuring a Protocol-Based VLAN

Step

Command

Description

Enter the global configuration mode. configure terminal -

Define a protocol profile.

protocol-vlan profile profile-index frame-type frame-type ether-type ether-type vlan vlan-id

Mandatory.

By default, no protocol profile is defined.

Enter the L2 Ethernet interface configuration mode.

interface interface-name

Either

After entering the L2 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current port. After entering the aggregation group configuration mode, the subsequent configuration takes effect only on the aggregation group.

Enter the aggregation group configuration mode.

interface link-aggregation link-aggregation-id

Enable the protocol VLAN function of the port.

protocol-vlan enable

Mandatory.

By default, the protocol VLAN function is disabled on the port.

note


  • The port for which a matching protocol profile has been configured and the protocol VLAN function has been enabled must be added into the VLAN corresponding to the protocol profile that it matches; otherwise, the port cannot forward packets of the VLAN, and the packets matching the protocol will be discarded.