Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

set protocols bgp [vrf <vrf-name>{neighbor <ip> peer-group <peer-group> | interface <interface>} peer-group <peergroup>

delete protocols bgp [vrf <vrf-name>{neighbor <ip> peer-group <peer-group> | interface <interface>} peer-group <peergroup>

...

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

neighbor <ip>Specifies the IPv4/IPv6 address of a peer.peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an L3 interface for BGP connection. The value could be a VLAN interface name, loopback interface name, routed interface or sub-interface name.
peer-group <peergroup>Specifies a peer group name. The value is a string.

...

Instead of specifying properties of each individual peer, you can define one or more peer groups and associate all the attributes common to that peer session to a peer group. A peer needs to be attached to a peer group only once, when it then inherits all address families activated for that peer group.

Note:

If the peer you want to add to a group already exists in the BGP configuration, delete it first, than add it to the peer group.


Example
• This example adds two peers to a peer group leaf1.

...