set protocols bgp neighbor port


The set protocols bgp neighbor port command sets a custom TCP port of the neighbor on which to communicate with the BGP neighbor.
The delete protocols bgp neighbor port command allows a random TCP port to be selected for the communication with the BGP neighbor.


Command Syntax

set protocols bgp [vrf <vrf-name>neighbor <ip> port <port-number>

delete protocols bgp [vrf <vrf-name>neighbor <ip> port <port-number>


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

neighbor <ip>Specifies the IPv4/IPv6 address of a peer.
peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an L3 interface for BGP connection. The value could be a VLAN interface name, loopback interface name, routed interface or sub-interface name.
port <port-number>Specifies a TCP port number. The value is an integer that ranges from 0 to 65535.


Example
• This example sets the TCP port of the neighbor to 1500.

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 port 1500
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.