neighbor remote-as

This command configures the remote AS for the specified peer.

Syntax

neighbor ip-address remote-as as-num [password password]
no neighbor ip-address remote-as as-num [password password]

Parameters

ip-address Specifies a BGP peer as a valid IPv4 address in dotted-quad format or as a valid IPv6 address in colon-separated format.
as-num Specifies the autonomous system (AS) number of the specified BGP peer. Valid values are 1 - 4294967295.
password password (Optional) Specifies an MD5 password for this peer. Valid values are up to 128 characters.

Defaults

None.

Mode

BGP Router Configuration.

Usage

The neighbor remote-as command configures the AS of the specified peer.

The no neighbor remote-as command removes the AS configuration for the specified peer.

Example

This example configures a BGP peer 1.2.3.4 with an AS number of 5:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 159.1.1.9
System(su-config-bgp)->neighbor 1.2.3.4 remote-as 5

The following example configures a IPv6 BGP peer address with an AS number of 64600:

router(config)->router bgp 65000
router(config-router-bgp)->bgp router-id 159.1.1.9
router(config-router-bgp)->neighbor 2001:0DB8:0:CC00::1 remote-as 64600