default match (SRv6 flow group DSCP view)

Function

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.

Format

default match { srv6-te-policy color color-value | native-ip }

undo default [ match { srv6-te-policy color color-value | native-ip } ]

Parameters

Parameter Description Value
srv6-te-policy

Specifies an SRv6 TE Policy.

-

color color-value

Specifies the color of an SRv6 TE Policy.

The value is an integer that ranges from 0 to 4294967295.

native-ip

Indicates IPv6 forwarding.

-

default

Indicates default mapping.

-

Views

SRv6 flow group DSCP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
teflowgroup write

Usage Guidelines

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:

  1. The traffic strictly matches the SRv6 TE Policy or native IP address corresponding to the DSCP value.
  2. If condition 1 is not met, the SRv6 TE Policy or native IP route with the default priority is selected.
  3. If neither of the preceding conditions is met, the SRv6 TE Policy or native IP route with the smallest DSCP value is selected.

Example

# Map the default DSCP value in an SRv6 TE Flow Group to an SRv6 TE Policy.
<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
# Map the default DSCP value in an SRv6 TE Flow Group to a native IP address.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >