< Home

if-match vxlan

Function

The if-match vxlan command configures a matching rule based on inner information of VXLAN packets in a traffic classifier.

The undo if-match vxlan command deletes a matching rule based on inner information of VXLAN packets from a traffic classifier.

By default, a matching rule based on inner information of VXLAN packets is not configured in a traffic classifier.

Format

if-match vxlan [ transit ] vni vni-id

undo if-match vxlan [ transit ] vni vni-id

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command. On a VXLAN-incapable switch, the transit parameter must be set so that passerby packets can be transparently transmitted.

Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support VXLAN.

Parameters

Parameter

Description

Value

transit

Indicates that VXLAN packets on the transmission device are matched.

If this parameter is not specified, a traffic policy containing this traffic classifier takes effect only on a VXLAN decapsulation device.

-

vni vni-id

Specifies the VNI ID for matching VXLAN packets.

The value is an integer that ranges from 1 to 16777215.

Views

Traffic classifier view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A VNI is similar to a VLAN ID on a traditional network, and it identifies a VXLAN segment. You can use the if-match vxlan command to classify packets based on the inner information of VXLAN packets so that the device processes packets matching the same traffic classifier in the same manner.

Precautions

  • A traffic policy containing this traffic classifier cannot be applied in the outbound direction.
  • If a traffic classifier contains this matching rule, it supports only traffic behaviors of traffic policing, packet filtering, and traffic statistics.

Example

# Configure a matching rule based on VNI 10 in the traffic classifier c1.

<HUAWEI> system-view
[HUAWEI] traffic classifier c1 operator and
[HUAWEI-classifier-c1] if-match vxlan transit vni 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >