neighbor remote-as
Syntax
neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} remote-as <AS-NUMBER>
no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} remote-as <AS-NUMBER>
Description
This command creates a peer and initiates the connection to the peer and adds an entry to the BGP neighbor table. Specifies a neighbor with an autonomous system number that identifies the neighbor as internal to the local autonomous system. Otherwise, the neighbor is considered as external. By default, neighbors that are defined using this command, exchange only unicast address prefixes.
The
no
form of this command disables the peer session and deletes the peer information.
Command context
config-bgp
Parameters
<IP-ADDRESS>
Specifies an IP address.
<PEER-GROUP-NAME>
Specifies a peer group.
remote-as <AS-NUMBER>
Specifies a 4-byte AS number in the range 1-4294967295 in integer format or from 0.1-65535.65535 in dotted format.
Authority
Administrators
Usage
The administrator can create a peer and set the Peer AS number with this command.
The configured Peer AS number is compared with the AS number received in the open message and a peer session is initiated only if both the AS numbers match.
Examples
switch(config-bgp)# neighbor 1.1.1.1 remote-as 1 switch(config-bgp)# no neighbor 1.1.1.1 remote-as 1
switch(config-bgp)# neighbor pg remote-as 1 switch(config-bgp)# no neighbor pg remote-as 1