Configuring dynamic BGP peers

This feature enables BGP to establish dynamic BGP peer relationships with devices in a network. BGP accepts connection requests from the network but it does not initiate connection requests to the network.

After a device in the network initiates a connection request, BGP establishes a dynamic peer relationship with the device.

If multiple BGP peers reside in the same network, you can use this feature to simplify BGP peer configuration.

Configuring dynamic BGP peers (IPv4 unicast address family)

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Specify devices in a network as dynamic BGP peers and specify an AS number for the peers.

peer ip-address mask-length as-number as-number

By default, no dynamic BGP peer is specified.

4. (Optional.) Configure a description for dynamic BGP peers.

peer ip-address mask-length description description-text

By default, no description is configured for dynamic BGP peers.

5. Create the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family and enter its view.

address-family ipv4 [ unicast ]

By default, the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family is not created.

6. Enable BGP to exchange IPv4 unicast routing information with dynamic BGP peers in the specified network.

peer ip-address mask-length enable

By default, BGP cannot exchange IPv4 unicast routing information with dynamic BGP peers.

Configuring dynamic BGP peers (IPv6 unicast address family)

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view or BGP-VPN instance view.

  • Enter BGP view:bgp as-number

  • Enter BGP-VPN instance view:

    1. bgp as-number

    2. ip vpn-instance vpn-instance-name

N/A

3. Specify devices in a network as dynamic BGP peers and specify an AS number for the peers.

peer ipv6-address prefix-length as-number as-number

By default, no dynamic BGP peer is specified.

4. (Optional.) Configure a description for dynamic BGP peers.

peer ipv6-address prefix-length description description-text

By default, no description is configured for dynamic BGP peers.

5. Create the BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family and enter its view.

address-family ipv6 [ unicast ]

By default, the BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family is not created.

6. Enable BGP to exchange IPv6 unicast routing information with dynamic BGP peers in the specified network.

peer ipv6-address prefix-length enable

By default, BGP cannot exchange IPv6 unicast routing information with dynamic BGP peers.