The peer listen-only command configures a peer to only listen to connection requests and not to initiatively send connection requests.
The undo peer listen-only command cancels the function.
The peer connect-only command configures a peer to send connection requests but rejects connection requests.
The undo peer connect-only command restores the default setting.
By default, a peer listens to and sends connection requests and a peer listens to,accepts, and proactively sends connection requests.
Usage Scenario
The peer listen-only command is used to configure a peer to only listen to connection requests and not to initiatively send connection requests.
The peer connect-only command is used to configure a peer to send connection requests but rejects connection requests.Configuration Impact
If this command is run multiple times, the latest configuration overwrites the previous one.
After being configured with this command, a peer does not initiate any connection request.Precautions
The peer listen-only command can be run at only one end of a peer relationship. If this command is run at both ends of a peer relationship, the ends fail to establish a connection.
The peer connect-only command or the peer listen-only command cannot be run on two devices that will establish a peer relationship. Otherwise, no peer relationship can be established between the two devices.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpn1 [*HUAWEI-bgp-instance-vpn1] peer 2001:DB8:1::1 as-number 200 [*HUAWEI-bgp-instance-vpn1] peer 2001:DB8:1::1 connect-only