Chapter 29
| IP Routing Commands
Border Gateway Protocol (BGPv4)
– 966 –
neighbor remote-as This command configures a neighbor and its AS number, identifying the neighbor
as an iBGP or eBGP peer. Use the no form to remove a neighbor.
Syntax
neighbor {ip-address | group-name} remote-as as-number
no neighbor {ip-address | group-name} remote-as
ip-address – IP address of a neighbor.
group-name – A BGP peer group containing a list of neighboring routers
configured with the neighbor peer-group command.
as-number – Autonomous system number which identifies this router as a
member of the specified domain, and tags routing messages passed to
other BGP routers with this number. (Range: 1-4294967295)
Command Mode
Router Configuration
Default Setting
No neighbors are configured.
Command Usage
â—† BGP neighbors must be manually configured. A neighbor relationship can only
be established if partners are configured on both sides a connection.
◆ If the neighbor’s AS number is the same as that of the local router, the neighbor
is an iBGP peer. If it is different, the neighbor is an eBGP peer.
Example
Console(config-router)#neighbor 10.1.1.64 remote-as 100
Console(config-router)#
neighbor remove-
private-as
This command removes private autonomous system numbers from outbound
routing updates to an external neighbor. Use the no form to disable this feature.
Syntax
neighbor {ip-address | group-name} remove-private-as
ip-address – IP address of a neighbor.
group-name – A BGP peer group containing a list of neighboring routers
configured with the neighbor peer-group command.
Command Mode
Router Configuration