Configuring Prefix-based BGP ORF

Prefix-based BGP ORF enables a device to send its peer the local prefix-based import policy so that the peer can use the policy to filter routes before sending them to the local device.

Usage Scenario

When a device expects to receive only required routes from the remote device and the remote end does not want to maintain a separate export policy for each connected peer, you can configure prefix-based ORF which supports on-demand route advertisement.

Pre-configuration Tasks

Before configuring prefix-based BGP ORF, complete the following tasks:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family unicast

    The IPv4 unicast address family view is displayed.

  4. Run peer { group-name | ipv4-address } ip-prefix ip-prefix-name import

    An IP prefix list-based import policy is configured to filter routes received from the specified peer or peer group.

  5. Run peer { group-name | ipv4-address } capability-advertise orf [ non-standard-compatible ] ip-prefix { both | receive | send }

    Prefix-based ORF is configured for a BGP peer or peer group.

  6. Run commit

    The configuration is committed.

Checking the Configurations

Run the following command to check the previous configuration.
  • Run the display bgp peer [ ipv4-address ] verbose command to check detailed information about BGP peers.

    Run the display bgp peer ipv4-address orf ip-prefix command to check routes received from a specified peer after the prefix-based ORF is configured.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >