Configuring a Device to Redirect IPv6 Public Network Traffic to an SRv6 TE Policy Through Multi-Field Classification

The redirection function can be used to steer IPv6 public network traffic to an SRv6 TE Policy.

Prerequisites

Before configuring a device to redirect IPv6 public network traffic to an SRv6 TE Policy through multi-field classification, complete either of the following tasks:

Context

If some IPv6 public network traffic experiences congestion, QoS multi-field classification can be used to identify and redirect the traffic to an SRv6 TE Policy, resolving the congestion issue. The factors involved in the redirection are an endpoint, color, and SID. If a redirection rule match fails, multi-field classification does not take effect. In this case, the traffic is forwarded over common IPv6. If the SRv6 TE Policy fails, multi-field classification also fails. In this case, the traffic is also forwarded over common IPv6.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run traffic classifier classifier-name [ operator { and | or } ]

    A traffic classifier is defined and its view is displayed.

  3. Configure if-match clauses to define matching conditions for IPv6 public network traffic.

    For details, see Defining a Traffic Classifier.

  4. Run quit

    Exit the traffic classifier view.

  5. Run traffic behavior behavior-name

    A traffic behavior is defined and its view is displayed.

  6. Run redirect srv6-te policy endpoint color [ { sid | vpnsid } sid-ip ]

    The device is enabled to redirect IPv6 public network traffic to an SRv6 TE Policy.

    You can specify sid and vpnsid to redirect IPv6 public network traffic to the IPv6 public network and IPv6 VPN through SRv6 TE Policies, respectively.

    sid-ip must be an End.DT6 SID, which is configured using the opcode func-opcode end-dt6 [ vpn-instance vpn-instance-name evpn ] command.

  7. Run quit

    Exit the traffic behavior view.

  8. Run traffic policy policy-name

    A traffic policy is defined and its view is displayed.

  9. Run classifier classifier-name behavior behavior-name

    The traffic behavior is specified for the traffic classifier in the traffic policy.

  10. Run quit

    Exit the traffic policy view.

  11. Run interface interface-type interface-number [ .subinterface-number ]

    The interface view is displayed.

  12. Run traffic-policy policy-name inbound

    The traffic policy is applied to the interface.

  13. Run commit

    The configuration is committed.

Verifying the Configuration

After configuring the device to redirect IPv6 public network traffic to an SRv6 TE Policy through multi-field classification, perform the following operations to verify the configuration:

  • Run the display traffic classifier { system-defined | user-defined } [ classifier-name ] command to check the traffic classifier configuration.
  • Run the display traffic behavior user-defined [ behavior-name ] command to check the traffic behavior configuration.
  • Run the display traffic policy user-defined [ policy-name [ classifier classifier-name ] ] command to check the associations between all traffic classifiers and traffic behaviors or between specified ones in the traffic policy.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >