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