The default match command configures the mapping between DSCP values and SRv6 TE Policies or native IP addresses that are not exactly matched.
The undo default match command deletes the mapping between DSCP values and SRv6 TE Policies or native IP addresses that are not exactly matched.
By default, no default mapping is configured for non-exact DSCP matching.
Usage Scenario
This command is used together with the index dscp match command.
The index dscp match command specifies the mapping between a DSCP value and the color or native IP address of an SRv6 TE Policy. The default match srv6-te-policy color command enables a device to redirect packets that do not match the DSCP value configured using the index dscp match command to a specified SRv6 TE Policy. The default match native-ip command configures the device to forward packets that do not match the DSCP value configured using the index dscp match command through IPv6 by default.Precautions
The mapping between DSCP values and SRv6 TE Policies or native IP addresses in an SRv6 TE Flow Group does not distinguish between IPv4 and IPv6 address families. In an SRv6 TE Flow Group, you can configure the mapping between DSCP values and SRv6 TE Policies or native IP addresses. Each DSCP can be mapped to only one SRv6 TE Policy or native IP. An SRv6 TE Policy/IPv6 route in the Up state can be mapped to a DSCP value only when the route is reachable.
Traffic with DSCP values enters an SRv6 TE Flow Group and is forwarded based on the following rules:<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] srv6-te flow-group flowgroup1 [*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1] match-type dscp [*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1-dscp] default match srv6-te-policy color 5
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] srv6-te flow-group flowgroup1 [*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1] match-type dscp [*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1-dscp] default match native-ip