The peer listen-net command specifies a network segment from which a dynamic BGP peer group listens for BGP connection requests.
The undo peer listen-net command deletes the specified network segment from which a dynamic BGP peer group listens for BGP connection requests.
By default, no network segment from which a dynamic BGP peer group listens for BGP connection requests is specified.
Parameter | Description | Value |
---|---|---|
group-name |
Specifies the name of a dynamic BGP peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
ipv4-address |
Specifies the mask of the preceding IP address. |
The value is in dotted decimal notation. |
mask-length |
Specifies a mask length. The 1s in each 32-bit mask must be consecutive. Therefore, a mask in dotted decimal notation can be presented by a mask length. |
The value is an integer ranging from 0 to 32. |
mask |
Specifies the mask of the preceding IP address. |
The value is in dotted decimal notation. |
Usage Scenario
To advertise the BGP origin AS validation result (Valid, NotFound, or Invalid) to a specified BGP peer or peer group so that the BGP peer or peer group can apply the result to route selection, run the peer advertise origin-as-validation command.
Prerequisites
A dynamic BGP peer group has been configured using the group listen [ internal | external ] command. In the case of a dynamic EBGP peer group, a peer AS from which the peer group listens for BGP connection requests must also have been specified using the peer listen-as command.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpn1 [*HUAWEI-bgp-instance-vpn1] group ex listen external [*HUAWEI-bgp-instance-vpn1] peer ex listen-as 200 [*HUAWEI-bgp-instance-vpn1] peer ex listen-net 10.10.10.0 24