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).
Applying a Route-Policy

Applying a Route-Policy

Context

A route-policy can be applied to direct, static, RIP/RIPng, OSPF/OSPFv3 routes. Perform one of the following configurations as needed:
NOTE:

By default, the system does not allow a nonexistent route-policy to be specified in a command. To enable the system to allow a nonexistent route-policy to be specified in a command, run the route-policy nonexistent-config-check disable command.

Procedure

  • Apply a route-policy to RIP routes.
    1. Run system-view

      The system view is displayed.

    2. Run rip [ process-id ]

      A RIP process is enabled, and the RIP view is displayed.

    3. To apply a route-policy to specific RIP routes, see Table 7-8.

    Table 7-8  Applying a route-policy to RIP routes

    Configuration Task

    Command

    Reference

    Configure a device to generate a default route or advertise a default route in the routing table to neighbors only when the matching conditions of a route-policy are met.

    default-route originate [ cost cost | { match default | route-policy route-policy-name } [ avoid-learning ] ]*

    Configuring RIP to Advertise Default Routes

    Configure RIP to import routes that match a route-policy from another routing protocol.

    import-route { { static | direct | unr } | { rip | ospf } [ process-id ] } [ cost cost | route-policy route-policy-name ] *

    Configuring RIP to Import Routes

    Set a priority for routes that match a route-policy.

    preference { preference | route-policy route-policy-name } *

    Configuring RIP Preference

  • Apply a route-policy to RIPng routes.
    1. Run system-view

      The system view is displayed.

    2. Run ripng [ process-id ]

      A RIPng process is enabled, and the RIPng view is displayed.

    3. To apply a route-policy to specific RIPng routes, see Table 7-9.

    Table 7-9  Applying a route-policy to RIPng routes

    Configuration Task

    Command

    Reference

    Configure RIPng to import routes that match a route-policy from another routing protocol.

    import-route { { ripng | ospfv3 } [ process-id ] | unr | direct | static } [ [ cost cost | inherit-cost ] | route-policy route-policy-name ] *

    Configuring a RIPng Process to Import External Routes

    Set a priority for RIPng routes that match a route-policy.

    preference { preference | route-policy route-policy-name } *

    Configuring RIPng Preference

  • Apply a route-policy to OSPF routes.

    • To apply a route-policy in the OSPF view, perform the following operations:

      1. Run the system-view command to enter the system view.
      2. Run the ospf [ process-id ] command to enable an OSPF process and enter the OSPF view.
      3. To apply a route-policy to OSPF routes in the OSPF view, see Table 7-10.
      Table 7-10  Applying a route-policy to OSPF routes

      Configuration Task

      Command

      Reference

      Configure OSPF to advertise the default routes in the routing table that are not generated by OSPF to a common area based on the parameters of a route-policy.

      default-route-advertise [ [ always | permit-calculate-other ] | cost cost | type type | route-policy route-policy-name [ match-any ] ] *

      Configuring OSPF to Advertise the Default Route to an OSPF Area

      Configure OSPF to advertise the routes that are imported from another routing protocol and match a route-policy.

      filter-policy route-policy route-policy-name export [ protocol [ process-id ] ]

      Configuring OSPF to Filter the Routes to Be Advertised

      Configure OSPF to accept the routes that match a route-policy.

      filter-policy route-policy route-policy-name [ secondary ] import

      Configuring OSPF to Filter Received Routes

      Configure OSPF to import the routes that match a route-policy.

      import-route { limit limit-number | { direct | unr | rip [ process-id-rip ] | static | ospf [ process-id-ospf ] } [ cost cost | type type | tag tag | route-policy route-policy-name ] * }

      Configuring OSPF to Import External Routes

      Configure a priority for OSPF routes that match a route-policy.

      preference [ ase ] { preference | route-policy route-policy-name } *

      Setting a Priority for OSPF Routes

    • To apply a route-policy in the OSPF area view, perform the following operations:

      1. Run the system-view command to enter the system view.

      2. Run the ospf [ process-id ] command to enable an OSPF process and enter the OSPF process view.

      3. Run the area area-id command to enter the OSPF area view.

      4. Perform either of the following operations to apply a route-policy in the OSPF area view:

        • Run the filter route-policy route-policy-name export command to apply a route-policy to outgoing Type 3 LSAs (summary LSAs) in the area.

        • Run the filter route-policy route-policy-name import command to apply a route-policy to incoming Type 3 LSAs in the area.

        Configuring OSPF to Filter ABR Type3 LSAs

  • Apply a route-policy to OSPFv3 routes.

    • To apply a route-policy in the OSPFv3 view, perform the following operations:

      1. Run the system-view command to enter the system view.

      2. Run the ospfv3 [ process-id ] command to enable an OSPFv3 process and enter the OSPFv3 process view.

      3. To apply a route-policy to OSPFv3 routes in the OSPFv3 view, see Table 7-11.

      Table 7-11  Applying a route-policy to OSPFv3 routes

      Configuration Task

      Command

      Reference

      Configure OSPFv3 to advertise the default routes in the routing table that are not generated by OSPFv3 to an OSPFv3 area based on the parameters of a route-policy.

      default-route-advertise [ always | cost cost | type type | tag tag | route-policy route-policy-name ] *

      Configuring OSPFv3 to Import External Routes

      Configure OSPFv3 to import the routes that match a route-policy.

      import-route { unr | direct | ripng help-process-id | static | ospfv3 help-process-id } [ { cost cost | inherit-cost } | type type | tag tag | route-policy route-policy-name ]*

      Configuring OSPFv3 to Import External Routes

      Configure a priority for OSPFv3 routes that match a route-policy.

      preference [ ase ] { preference | route-policy route-policy-name } *

      -

Translation
Download
Updated: 2019-03-30

Document ID: EDOC1000178018

Views: 125405

Downloads: 17

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