No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S600-E V200R011C10 Configuration Guide - IP Unicast Routing

This document describes IP Unicast Routing configurations supported by the switch, including the principle and configuration procedures of IP Routing Overview, Static Route, RIP, RIPng, OSPF, Routing Policy ,and PBR, and provides configuration examples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring PBR

Configuring PBR

Context

After a redirection action is configured, a switch redirects packets matching traffic classification rules to a specified next-hop address.

A traffic policy containing the redirection action can only be used globally, on an interface, or in a VLAN in the inbound direction.

Pre-configuration Tasks

Before configuring policy-based routing (PBR), complete the following tasks:
  • Configure IP addresses for interfaces and configure routing protocols to ensure connectivity.

  • Configure an ACL to classify traffic.

Procedure

  1. Configure a traffic classifier.

    For details about configuring a traffic classifier, see Configuring a Traffic Classifier in "MQC Configuration" in the S600-E V200R011C10 Configuration Guide - QoS.

  2. Configure a traffic behavior.

    1. Run traffic behavior behavior-name

      A traffic behavior is created, and the traffic behavior view is displayed, or the view of an existing traffic behavior is displayed.

    2. Run the following commands as required.

      • Run redirect ip-nexthop { ip-address [ track-nqa admin-name test-name ] } &<1-4> [ forced ] *

        The device is configured to redirect packets matching traffic classification rules to the specified next-hop IP address.

        If multiple next-hop IP addresses are configured, the device redirects packets in active/standby mode. A maximum of four next-hop IP addresses can be configured in a traffic behavior. The device determines the primary path and backup paths according to the sequence in which next-hop IP addresses were configured. The next-hop IP address that was configured first has the highest priority and this next hop is used as the primary path. Other next hops are used as backup paths. When the primary path becomes Down, the next hop with a higher priority is used as the primary path. If the previous primary path recovers from the fault, traffic is switched back to the previous primary path.

        NOTE:

        Configuring redirection can implement the PBR function.

        If the low-precedence parameter is specified, redirection-based PBR has a lower priority than statically configured routes or routes generated by dynamic routing protocols. If this parameter is not specified, the former has a higher priority than the latter.

      • Run redirect ipv6-nexthop { ipv6-address | link-local link-local-address interface interface-type interface-number } &<1-4> [ forced ]

        The device is configured to redirect IPv6 packets matching traffic classification rules to the configured next-hop address.

    3. (Optional) Run statistic enable

      The traffic statistics collection function is enabled.

    4. Run quit

      Exit from the traffic behavior view.

    5. Run quit

      Exit from the system view.

  3. Configure a traffic policy.

    For details about configuring a traffic policy, see Configuring a Traffic Policy in "MQC Configuration" in the S600-E V200R011C10 Configuration Guide - QoS.

  4. Apply the traffic policy.

    • Apply a traffic policy to an interface.
      1. Run system-view

        The system view is displayed.

      2. Run interface interface-type interface-number

        The interface view is displayed.

      3. Run traffic-policy policy-name inbound

        A traffic policy is applied to the inbound direction of the interface.

    • Apply a traffic policy to a VLAN.
      1. Run system-view

        The system view is displayed.

      2. Run vlan vlan-id

        The VLAN view is displayed.

      3. Run traffic-policy policy-name inbound

        A traffic policy is applied to a VLAN.

        The system then applies the policy to the incoming packets that are sent from the VLAN and match traffic classification rules.

    • Apply a traffic policy globally.
      1. Run system-view

        The system view is displayed.

      2. Run traffic-policy policy-name global inbound [ slot slot-id ]

        A traffic policy is applied globally.

Verifying the Configuration

  • Run the display traffic classifier 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 user-defined traffic policy configuration.

  • Run the display traffic-applied [ interface [ interface-type interface-number ] | vlan [ vlan-id ] ] { inbound | outbound } [ verbose ] command to check information about ACL-based simplified and MQC-based traffic policies applied to the system, a VLAN, or an interface.

  • Run the display traffic policy { interface [ interface-type interface-number ] | vlan [ vlan-id ] | global } [ inbound | outbound ] command to check the traffic policy configuration.

  • Run the display traffic-policy applied-record [ policy-name ] command to check the application record of a specified traffic policy.

Translation
Download
Updated: 2019-03-30

Document ID: EDOC1000178018

Views: 124637

Downloads: 17

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next