O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

neighbor remote-as — router, BGP

Synopsis

neighbor {address | peer-group} remote-as as-number
no neighbor {address | peer-group} remote-as as-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 or peer-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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required