R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

252
[Sysname-bgp] ipv4-family vpn-instance vpn1
listen-range (BGP/BGP-VPN instance view)
Use listen-range to enable BGP to accept connection requests from the specified subnet and to add
dynamic peers into the specified peer group.
Use undo listen-range to remove the IP address range.
Syntax
listen-range ip-address mask-length group group-name
undo listen-range ip-address mask-length
View
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
ip-address mask-length: Specifies the subnet of BGP dynamic peers. The ip-address is in dotted decimal
notation, and the mask-length is in the range of 0 to 32.
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