365
peer enable
Description
Use the peer enable command to enable a peer or peer group for an address family and enable the
exchange of BGP routing information of the address family.
Use the undo peer enable command to disable the capability.
By default, only IPv4 routing information is exchanged between BGP peers/peer groups.
Syntax
In BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, VPLS address family view:
peer { group-name | ip-address } enable
undo peer { group-name | ip-address } enable
In BGP-VPNv6 subaddress family view:
peer ip-address enable
undo peer ip-address enable
View
BGP-L2VPN address family view, VPLS address family view, BGP-VPNv6 subaddress family view
Default level
2: System level
Parameters
group-name: Specifies the name of the peer group, which is a case-sensitive string of 1 to 47 characters.
ip-address: Specifies the IP address of the peer.
Examples
# Configure peer 1.1.1.1 and enable the peer for the BGP-L2VPN address family.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer 1.1.1.1 enable
# Configure peer 1.1.1.1 and enable the peer for the VPLS address family.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] peer 1.1.1.1 enable
# Configure peer 1.1.1.1 and enable the peer for the BGP-VPNv6 subaddress family.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-af-vpnv6] peer 1.1.1.1 enable