traffic-policy vxlan-mode

Function

The traffic-policy vxlan-mode command configures an MF traffic policy for packets entering or exiting a VXLAN tunnel based on the BD (L2VNI scenario) or VPN instance (L3VNI scenario).

The undo traffic-policy vxlan-mode command deletes the traffic policy applied to a BD/VPN instance.

By default, traffic classification is implemented for packets entering or exiting a VXLAN tunnel based on Layer 3 information.

Format

traffic-policy policy-name { inbound [ link-layer ] | outbound } vxlan-mode

undo traffic-policy [ policy-name ] { inbound [ link-layer ] | outbound } vxlan-mode

Parameters

Parameter Description Value
policy-name

Specifies the name of a traffic policy.

The value is a string of 1 to 127 case-sensitive characters.

inbound

Specifies inbound direction.

-

link-layer

Classifies traffic based on Layer 2 information.

-

outbound

Specifies outbound direction.

-

Views

VPN instance IPv4 address family view, VPN instance view, Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To configure an MF traffic policy for packets entering or exiting a VXLAN tunnel based on the BD (L2VNI scenario) or VPN instance (L3VNI scenario), run the traffic-policy vxlan-mode command.

For packets entering a VXLAN tunnel, you can run the traffic-policy <POLICY-NAME> outbound vxlan-mode command to configure an MF traffic policy based on the BD (L2VNI scenario) or VPN instance (L3VNI scenario).

For packets exiting a VXLAN tunnel, you can run the traffic-policy <POLICY-NAME> inbound [ link-layer ] vxlan-mode command to configure an MF traffic policy based on the BD (L2VNI scenario) or VPN instance (L3VNI scenario) to match Layer 2 packets.

For packets exiting a VXLAN tunnel, you can run the traffic-policy <POLICY-NAME> inbound vxlan-mode command to configure an MF traffic policy based on the BD (L2VNI scenario) or VPN instance (L3VNI scenario) to match Layer 3 packets.

Prerequisites

A VXLAN tunnel has been configured.

Precautions

When packets enter/exit a VXLAN tunnel, a traffic policy is bound based on the BD (L2VNI scenario) or VPN (L3VNI scenario) instance and the corresponding traffic behavior is performed.

The traffic-statistic function cannot be configured for the traffic behavior in a traffic policy for VXLAN in a BD view.

When an inbound traffic policy in VXLAN mode is applied to a VPN instance, only redirection to multiple IP addresses is supported.

Example

# Apply the traffic policy named policy2 to the packets exiting the VXLAN tunnel.
<HUAWEI> system-view
[~HUAWEI] traffic policy policy2
[*HUAWEI-trafficpolicy-policy2] quit
[*HUAWEI] bridge-domain 1
[*HUAWEI-bd1] traffic-policy policy2 inbound vxlan-mode
[*HUAWEI-bd1] commit
[~HUAWEI-bd1] quit
[~HUAWEI] ip vpn vpn1
[*HUAWEI-vpn-instance-vpn1] traffic-policy policy2 inbound vxlan-mode
# Apply the traffic policy named policy1 to the VXLAN tunnel.
<HUAWEI> system-view
[~HUAWEI] traffic policy policy1
[*HUAWEI-trafficpolicy-policy1] quit
[*HUAWEI] bridge-domain 1
[*HUAWEI-bd1] traffic-policy policy1 outbound vxlan-mode
[*HUAWEI-bd1] commit
[~HUAWEI-bd1] quit
[~HUAWEI] ip vpn vpn1
[*HUAWEI-vpn-instance-vpn1] traffic-policy policy1 outbound vxlan-mode
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >