802.1p binding vpn-instance

Function

The 802.1p binding vpn-instance command binds a VPN instance to an 802.1p priority so that packets carrying the 802.1p priority are sent to this VPN.

The undo 802.1p binding vpn-instance command removes the binding between VPN instances and 802.1p priorities.

By default, VPN instances are not bound to 802.1p priorities so that packets are not sent to VPNs based on 802.1p priorities.

This command is supported only on the NetEngine 8000 F1A.

Format

802.1p 8021p-priority binding vpn-instance vpn-instance-name

undo 802.1p 8021p-priority binding vpn-instance vpn-instance-name

undo 802.1p binding vpn-instance all

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Specifies a VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

all

Indicates all service packets of users.

-

802.1p 8021p-priority

Indicates the priority of VLAN frames.

The value is an integer ranging from 0 to 7.

Views

User VLAN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

Usage Scenario

Service packets carry 802.1p values to identify their priorities. The BRAS can identify service priorities based on the 802.1p values of received Layer 2 service packets and transmit the service packets to corresponding VPNs. To allow this, enable a BAS interface to transmit packets to different VPNs based on 802.1p priorities of the packets and also run the 802.1p binding vpn-instance command to bind a VPN instance to an 802.1p priority.

Prerequisites

A BAS interface has been enabled to transmit packets to different VPNs based on 802.1p priorities of the packets using the 802.1p-to-vpn command.

Precautions

This command is supported only on the admin VS.

If the user-VLAN sub-interface terminates two VLAN tags, services enter different VPN instances based on the 802.1p in the outer VLAN tag.

Example

# Bind VPN instance huawei to 802.1p priority 2 on the user-VLAN sub-interface terminates packets that carry VLAN 100.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/8.2
[*HUAWEI-GigabitEthernet0/1/8.2] commit
[*HUAWEI-GigabitEthernet0/1/8.2] user-vlan 100
[*HUAWEI-GigabitEthernet0/1/8.2-vlan-100-100] 802.1p 2 binding vpn-instance huawei
# Bind VPN instance huawei123 to 802.1p priority 3 on the user-VLAN sub-interface terminates packets that carry outer VLAN 200 and inner VLAN 100.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/8.3
[*HUAWEI-GigabitEthernet0/1/8.3] commit
[*HUAWEI-GigabitEthernet0/1/8.3] user-vlan 100 qinq 200
[*HUAWEI-GigabitEthernet0/1/8.3-vlan-100-100-QinQ-200-200] 802.1p 3 binding vpn-instance huawei123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >