星期二, 10月 17, 2006

BGP send-community




Specifies whether to send the community attribute in route updates to a peer or peer group.

Syntax: [no] neighbor {ip-address | peer-group-name} send-community

ip-address


IP address of this neighbor.

peer-group-name


Name of a BGP peer group.

Description: A community is a group of systems that share common attributes. Communities are created using the set community route map configuration command. Then you can configure routing decisions based on communities. Organizing systems into communities simplifies the task of configuring the distribution of routing information.

For example, the community attribute is used to filter route updates by identifying routes controlled by community-based access lists. Like other access lists, community-based access lists are used in the match clause of route maps.

A given destination can belong to more than one community. Aggregate routes include a community attribute that contains the communities of the initial routes.

BGP can set, append or change the community attribute when routes are learned, advertised or redistributed. Unlike other attributes, community is an optional attribute. As such, you must configure your BGP speakers to include the community attribute in route updates.

Use the neighbor send-community command to include the community attribute in route updates sent to the specified BGP neighbor.

Use the peer-group-name parameter to include the community attribute in updates sent to all members of the specified peer group.

Use the no neighbor send-community to return to the default.

Factory Default: Send no community attribute in route updates.

Command Mode: Router configuration.

Example 1: In the following example, the neighbor send-community command configures the router to send the community attribute to neighbor 121.80.100.4, and the show ip bgp neighbor command displays the setting:

router(config)#router bgp 101

router(config-router)#neighbor 121.80.100.4 remote-as 101

router(config-router)#neighbor 121.80.100.4 send-community

router(config-router)#end

router#show ip bgp neighbor 121.80.100.4

BGP neighbor 121.80.100.4 using remote AS 101

router ID: 0.0.0.0 version: 4

state: Active time: 0:00:00

def orignat: False ebgp multihop: False

n hop self: False route ref client: False

send comm: True soft reconfig: False

.

.

.

Example 2: In the following example, the neighbor send-community command configures the router to send the community attribute to all members of the peer group named techpubs:

router#router 101

router(config-router)#neighbor techpubs send-community

Example 3: In the following example, the no neighbor send-community command disables sending the community attribute to the members of the peer group techpubs:

router#router 101

router(config-router)#no neighbor techpubs send-community

沒有留言: