PREV NEXT INDEX

Avici Systems Inc.


neighbor remote-as


Creates a peer entry to the BGP neighbor table.

Syntax: [no] neighbor {ip-address | peer-group-name} remote-as number

ip-address

IP address of the neighbor added to the BGP neighbor table. Neighbors in the same autonomous system as this router are internal neighbors (IBGP). Neighbors in different autonomous systems are external neighbors (EBGP)

peer-group-name

Name of a BGP peer group.

number

Number of the autonomous system to which the neighbor or peer group belongs.

Description: BGP must fully understand the relationships between neighbors. Two types of neighbors are supported. Internal neighbors are in the same autonomous system. External neighbors are in different autonomous systems.

The primary function of external peers is to distribute routes (learned from external peers or an IGP router) to external and internal peers. Internal peers receive route updates, but do not distribute them to internal neighbors (except when configured as route reflectors). External peers can originate routes and distribute them to other internal and external peers.

To identify a neighbor as internal to the local autonomous system, use the neighbor remote-as command to specify the same autonomous system number as specified by the router bgp command. Otherwise, the neighbor is external.

Use the neighbor remote-as command to create a peer entry in the BGP neighbor table.

Use the peer-group-name parameter to configure all the members of the named BGP peer group to inherit the attribute configured with this command.

Use the no neighbor remote-as command to remove an entry from the neighbor table.

Factory Default: None.

Command Mode: Router configuration.

Example 1: In the following example, the 2 neighbor remote-as commands are used to configure two neighbors, and the show ip bgp summary command displays the configuration:

router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

router(config)#router bgp 121

router(config-router)#network 121.10.5.0

router(config-router)#neighbor 121.90.1.1 remote-as 121

router(config-router)#neighbor 122.80.100.4 remote-as 122

router(config-router)#end

router#show ip bgp summary

BGP currently operating:

AS: 121

Router ID: 10.50.0.1

Cluster ID: 171048961



Neighbor V AS MsgRcvd MsgSent Up/Down State/PfxRcd

121.90.1.1      4 121       0 0 never Active/ 0

122.80.100.4    4 122       0 0 never Active/ 0



Neighbor 121.90.1.1 is an internal neighbor (the same autonomous system as the router).

Neighbor 122.80.100.4 is an external neighbor (a different autonomous system). The router being configured advertises network 121.10.5.0 to both neighbors.

Example 2: In the following example, the no neighbor remote-as command removes neighbor 122.80.100.4 in autonomous system 122 as a neighbor:

router(config-router)#no neighbor 122.80.100.4 remote-as 122

Example 3: In the following example, the neighbor remote-as command configures members of a peer group named internal as internal neighbors.

router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

router(config)#router bgp 121

router(config-router)#neighbor internal peer-group

router(config-router)#neighbor internal remote-as 121

Related Commands: neighbor peer-group
show ip bgp neighbor
show ip bgp peer-group


PREV NEXT INDEX

Copyright © 2004 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: BGP_Nd.fm
    HTML File Name: BGP_Nd37.html
    Last Updated: 05/10/04 at 16:36:55

Please email suggestions and comments to: doc@avici.com