R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

253
group group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. BGP
will add dynamic peers into this group.
Usage guidelines
After BGP adds a dynamic peer to the peer group, the peer gets all the configuration of the peer group,
and you cannot configure the dynamic peer.
Before you can specify an IP address range and an EBGP peer group in the listen-range command, the
EBGP peer group must have been configured with an AS number.
Deleting the BGP peer group specified in the listen-range command also deletes the dynamic peers in
the group.
Examples
# In BGP view, specify subnet 25.1.1.0/24 and the peer group in for BGP dynamic peers.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group in internal
[Sysname-bgp] listen-range 25.1.1.0 24 group in
# In BGP-VPN instance view, specify subnet 26.1.1.0/24 and the peer group test for BGP dynamic peers.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] group test external
[Sysname-bgp-ipv4-vpn1] peer test as-number 500
[Sysname-bgp-ipv4-vpn1] listen-range 26.1.1.0 24 group test
log-peer-change
Use log-peer-change to enable the global BGP logging on peers going up and down.
Use undo log-peer-change to disable the function.
Syntax
log-peer-change
undo log-peer-change
Default
The function is enabled.
Views
BGP view
Default command level
2: System level
Examples
# Enable BGP logging on peers going up and down.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] log-peer-change