Configuring a BGP peer

Configuring a BGP peer (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.

  • Enter BGP instance view:bgp as-number [ instance instance-name ]

  • Enter BGP-VPN instance view:

    1. bgp as-number [ instance instance-name ]

    2. ip vpn-instance vpn-instance-name

N/A

3. Create an IPv4 BGP peer and specify its AS number.

peer ipv4-address as-number as-number

By default, no IPv4 BGP peers exist.

4. (Optional.) Configure a description for a peer.

peer ipv4-address description text

By default, no description is configured for a peer.

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 the router to exchange IPv4 unicast routing information with the specified peer.

peer ipv4-address enable

By default, the router cannot exchange IPv4 unicast routing information with the peer.

Configuring a BGP peer (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.

  • Enter BGP instance view:bgp as-number [ instance instance-name ]

  • Enter BGP-VPN instance view:

    1. bgp as-number [ instance instance-name ]

    2. ip vpn-instance vpn-instance-name

N/A

3. Create an IPv6 BGP peer and specify its AS number.

peer ipv6-address as-number as-number

By default, no IPv6 BGP peers exist.

4. (Optional.) Configure a description for a peer.

peer ipv6-address description text

By default, no description is configured for a peer.

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 the router to exchange IPv6 unicast routing information with the specified peer.

peer ipv6-address enable

By default, the router cannot exchange IPv6 unicast routing information with the peer.

Configuring a BGP peer (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. Create an IPv4 BGP peer and specify its AS number.

peer ipv4-address as-number as-number

By default, no IPv4 BGP peers exist.

4. (Optional.) Configure a description for the peer.

peer ipv4-address description text

By default, no description is configured for a peer.

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 the router to exchange IPv4 unicast routing information used for RPF check with the specified peer.

peer ipv4-address enable

By default, the router cannot exchange IPv4 unicast routing information used for RPF check with the peer.

Configuring a BGP peer (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. Create an IPv6 BGP peer and specify its AS number.

peer ipv6-address as-number as-number

By default, no IPv6 BGP peers exist.

4. (Optional.) Configure a description for the peer.

peer ipv6-address description text

By default, no description is configured for a peer.

5. Create the BGP IPv6 multicast address family and enter its view.

address-family ipv6 multicast

By default, no BGP IPv6 multicast address family exist.

6. Enable the router to exchange IPv6 unicast routing information used for RPF check with the specified peer.

peer ipv6-address enable

By default, the router cannot exchange IPv6 unicast routing information used for RPF check with the peer.