Using XPL to Filter the BGP4+ Routes to Be Advertised

This section describes how to use XPL to filter the BGP4+ routes to be advertised to BGP4+ peers.

Context

A BGP4+ device can use a route-filter to filter the routes to be advertised to all peers or peer groups or only to a specified peer or peer group.

Procedure

  • Configure a BGP4+ device to filter the routes to be advertised to all peers or peer groups.

    Perform the following steps on the BGP4+ device:

    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    3. Run ipv6-family unicast

      The IPv6 unicast address family view is displayed.

    4. Run route-filter route-filter-name export [ direct | isis process-id | ospfv3 process-id | ripng process-id | static | unr ]

      The BGP4+ device has been configured to filter the routes to be advertised to all peers or peer groups.

    5. Run commit

      The configuration is committed.

  • Configure a BGP4+ device to filter the routes to be advertised to a specified peer or peer group.

    Perform the following steps on the BGP4+ device:

    1. Run system-view

      The system view is displayed.

    2. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    3. Run ipv6-family unicast

      The IPv6 unicast address family view is displayed.

    4. Run peer ipv6-address route-filter route-filter-name export

      The BGP4+ device has been configured to filter the routes to be advertised to the specified peer or peer group.

    5. Run commit

      The configuration is committed.

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