< Home

Configuring the Policy for Receiving BGP4+ Routing Information

Only the routes that match the policy for receiving routes can be received by BGP4+ peers and added to the routing table.

Context

Before configuring the receiving policy of BGP4+ routing information, you need to configure the following filters according to the adopted policy:

  • Access Control List (ACL)

  • IP address prefix list

  • Routing policy

  • AS path filtering list

The routing policy, ACL, AS path filtering list, or IP address prefix list can be used to filter the routing information advertised to the peer. Select the filtering policy as required.

Procedure

  1. Access the system view.

    system-view

  2. Access the BGP view.

    bgp as-number

  3. Access the BGP IPv6 unicast address family view.

    ipv6-family unicast

  4. Run the following commands to filter the received routing information based on different policies.

    • Filter received global routing information:

      filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import

    • Filter the routing information received by the specified peer:

      peer { ipv4-address | ipv6-address | group-name } route-policy policy-name import

    • Perform ACL-based filtering:

      peer { ipv4-address | ipv6-address | group-name } filter-policy acl-number import

    • Perform AS path list-based filtering:

      peer { ipv4-address | ipv6-address | group-name } as-path-filter { as-path-filter-number | as-path-filter-name } import

    • Perform IP address prefix list-based filtering:

      peer { ipv4-address | ipv6-address | group-name } ipv6-prefix ipv6-prefix-name import

    The commands in step 4 are not arranged in order.

    Routes received by BGP are filtered. Only routes that meet certain conditions can be received by BGP and added to the routing table.

    Members in the peer group can use different inbound routing policies with the home group, that is, each peer can select its own policy when receiving routes.

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