Cisco Nexus 3548 Command Reference Manual page 350

Nx-os unicast routing command reference
Hide thumbs Also See for Nexus 3548:
Table of Contents

Advertisement

set community
Use the route-map global configuration command and the match and set route map configuration
commands to define the conditions for redistributing routes from one routing protocol into another. Each
route-map command has a list of match and set commands associated with it. The match commands
specify the match criteria—the conditions under which redistribution is allowed for the current
route-map command. The set commands specify the set actions—the particular redistribution actions
to perform if the criteria enforced by the match commands are met. The no route-map command deletes
the route map.
The set route map configuration commands specify the redistribution set actions to be performed when
all of the match criteria of a route map are met. When all match criteria are met, all set actions are
performed.
This command requires the LAN Enterprise Services license.
Examples
This example shows how to configure the routes that pass the autonomous system path access list 1 to
have the community set to 109:02 and 33:40. Routes that pass the autonomous system path access list 2
have the community set to no-export (these routes are not advertised to any external BGP [eBGP] peers).
switch# configure terminal
switch(config)# route-map test1 10 permit
switch(config-route-map)# match as-path 1
switch(config-route-map)# set community 109:02 33:40
switch(config-route-map)# exit
switch(config)# route-map test1 20 permit
switch(config-route-map)# match as-path 2
switch(config-route-map)# set community no-export
switch(config-route-map)#
Related Commands
Command
ip community-list
match community
route-map (IP)
set comm-list delete
show ip bgp community
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
330
Description
Creates a community list for BGP and control access to it.
Matches a BGP community.
Defines the conditions for redistributing routes from one routing
protocol into another.
Removes communities from the community attribute of an inbound
or outbound update.
Displays routes that belong to specified BGP communities.
Chapter
Unicast Routing Commands
OL-27852-01

Advertisement

Table of Contents
loading

Table of Contents