Configuring BGP Multi-Instance

You can configure BGP multi-instance to achieve separate route management and maintenance.

Usage Scenario

By default, all BGP routes are stored in the BGP base instance, and separate route management and maintenance are impossible. To address this problem, BGP multi-instance is introduced. A device can simultaneously run the BGP base instance and BGP multi-instance, which are independent of each other and can have either the same AS number or different AS numbers. You can deploy different address families for the BGP base instance and BGP multi-instance as required to implement separate route management and maintenance.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip vpn-instance vpn-instance-name
  3. Run ipv4-family
  4. Run route-distinguisher route-distinguisher
  5. Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ]
  6. Run quit

    Exit the VPN instance IPv4 address family view.

  7. Run quit

    Exit the VPN instance view.

  8. Run bgp as-number instance bgpName

    The BGP multi-instance view is displayed.

  9. Run ipv4-family vpn-instance vpn-instance-name

    The BGP multi-instance VPN instance IPv4 address family view is displayed.

  10. 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.

    The IP address of the peer can be one of the following types:

    • IP address of the peer's interface that is directly connected to the local device

    • IP address of a sub-interface on the peer's interface that is directly connected to the local device

    • IP address of a reachable loopback interface on the peer

  11. Run commit

    The configuration is committed.

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