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.
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.<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
<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