< Home

Configuring the Policy for Advertising BGP4+ Routing Information

After the policy for advertising routes is configured, only the routes that match the policy can be added to the local BGP4+ routing table and advertised to BGP4+ peers.

Context

Before configuring the advertisement 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 configure the outbound routing policy based on different filters:

    • Based on the export policy

      filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol [ process-id ] ]

    • Based on the routing policy

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

    • Based on the ACL

      peer { ipv4-address | ipv6-address | group-name } filter-policy acl6-number export

    • Based on the AS_Path list

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

    • Based on the prefix list

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

    The commands in step 4 are not arranged in order.

    Members in the peer group S can use different outbound routing refreshing policies with the home group, that is, each peer can select its own policy when advertising routes.

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