Name
neighbor remote-as — router, BGP
Synopsis
neighbor {address
|peer-group
} remote-asas-number
no neighbor {address
|peer-group
} remote-asas-number
Configures
The remote AS number of a BGP neighbor
Default
None
Description
This command specifies a neighbor’s AS number. This number is used to determine whether the neighbor is an internal or external BGP router. If the neighbor’s AS number is the same as the AS number in the current BGP configuration, the neighbor is an internal BGP router; likewise, if the AS numbers are different, the neighbor is an external BGP router.
-
address
orpeer-group
The address or peer group of the neighbor.
-
as-number
The AS number of the neighbor router (or the routers in the peer group).
Example
In this example, the neighbor (10.200.200.3) is an internal BGP router because its AS number is the same as the local AS number:
router bgp 100 neighbor 10.200.200.3 remote-as 100
In the following example, the neighbor (10.200.200.4) is an external BGP router:
router bgp 100 neighbor 10.200.200.4 remote-as 200
Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.