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.
For a remote device to establish a peer relationship with the local device, you must specify the IP address of the local device on the remote device.
Configuring dynamic BGP peers (IPv4 unicast address family)
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP instance view or BGP-VPN instance view. |
| N/A |
3. Specify devices in a network as dynamic BGP peers and specify an AS number for the peers. | peer ipv4-address mask-length as-number as-number | By default, no dynamic BGP peers exist. |
4. (Optional.) Configure a description for dynamic BGP peers. | peer ipv4-address mask-length 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, no BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family exists. |
6. Enable BGP to exchange IPv4 unicast routing information with dynamic BGP peers in the specified network. | peer ipv4-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 instance view or BGP-VPN instance view. |
| 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 peers exist. |
4. (Optional.) Configure a description for dynamic BGP peers. | peer ipv6-address prefix-length 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, no BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family exists. |
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. |
Configuring dynamic BGP peers (IPv4 multicast address family)
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP instance view. | bgp as-number [ instance instance-name ] | N/A |
3. Specify devices in a network as dynamic BGP peers and specify an AS number for the peers. | peer ipv4-address mask-length as-number as-number | By default, no dynamic BGP peers exist. |
4. (Optional.) Configure a description for dynamic BGP peers. | peer ipv4-address mask-length description text | By default, no description is configured for dynamic BGP peers. |
5. Create the BGP IPv4 multicast address family and enter its view. | address-family ipv4 multicast | By default, no BGP IPv4 multicast address family exists. |
6. Enable BGP to exchange IPv4 unicast routing information used for RPF check with dynamic BGP peers in the specified network. | peer ipv4-address mask-length enable | By default, BGP cannot exchange IPv4 unicast routing information used for RPF check with dynamic BGP peers. |
Configuring dynamic BGP peers (IPv6 multicast address family)
Step | Command | Remarks | |
---|---|---|---|
1. Enter system view. | system-view | N/A | |
2. Enter BGP instance view. | bgp as-number [ instance 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 peers exist. | |
4. (Optional.) Configure a description for dynamic BGP peers. | peer ipv6-address prefix-length description text | By default, no description is configured for dynamic BGP peers. | |
5. Create the BGP IPv6 multicast address family and enter its view. | address-family ipv6 multicast | By default, no BGP IPv6 multicast address family exists. | |
6. Enable BGP to exchange IPv6 unicast routing information used for RPF check with dynamic BGP peers in the specified network. | peer ipv6-address prefix-length enable | By default, BGP cannot exchange IPv6 unicast routing information used for RPF check with dynamic BGP peers. |