Configuring a Mode in Which BGP Path Attributes Are Processed

To enhance reliability, you can configure a special mode in which BGP path attributes are processed.

Usage Scenario

A BGP Update message contains various path attributes. If a local device receives Update messages containing malformed path attributes, the involved BGP sessions may flap. To resolve this issue and enhance reliability, configure a special mode in which a device processes specified path attributes in received BGP Update messages. Special modes indicate those that are not defined in a standard protocol.

This configuration may cause the specified path attributes to be dropped or the routes carrying the specified path attributes to be withdrawn. Therefore, exercise caution when you perform this configuration.

The peer path-attribute-treat command configuration takes effect immediately for the routes received after the command is run. However, for the routes received before the command is run, the configuration can take effect only after the refresh bgp command is run.

Procedure

  1. Run system-view

    The system view is displayed.

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

    BGP is started (with the local AS number specified), and the BGP view is displayed.

  3. Run peer ipv4-address as-number as-number

    The IP address of a peer and the number of the AS where the peer resides are specified.

  4. Run ipv4-family unicast

    The BGP-IPv4 unicast address family view is displayed.

  5. Run peer peerIpv4Addr path-attribute-treat attribute-id { id [ to id2 ] } &<1-255> { discard | withdraw | treat-as-unknown }

    A special mode in which the device processes specified path attributes in received BGP Update messages is configured.

  6. Run commit

    The configuration is committed.

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