neighbor port

Syntax

neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} port <NUMBER>

no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} port

Description

This command allows setting a custom TCP port to communicate with the BGP neighbor.

When this configuration is applied for peer-group, all the neighbors that are part of peer-group will inherit this feature. Though the neighbor will inherit the configuration from peer-group, the neighbor-specific command, if configured, will take precedence.

This command will take effect only when user manually does the hard reset for the session.

The no form of this command allows a random TCP port to be selected for the communication with the BGP neighbor.

Command context

config-bgp

Parameters

<IP-ADDRESS>

Specifies an IP address.

<PEER-GROUP-NAME>

Specifies a peer group.

<NUMBER>

Specifies a TCP port number. Range: 0-65535.

Authority

Administrators

Examples

switch(config-bgp)# neighbor 1.1.1.1 port 1500
switch(config-bgp)# no neighbor 1.1.1.1 port
switch(config-bgp)# neighbor PG port 1500
switch(config-bgp)# no neighbor PG port