ECS4660-28F_Management Guide-R03

Table Of Contents
C
HAPTER
51
| IP Routing Commands
Policy-based Routing for BGP
– 1912
COMMAND MODE
Route Map
EXAMPLE
Console(config)#route-map RD permit 11
Console(config-route-map)#match peer 192.168.0.99
Console(config-route-map)#set community 10:01
Console(config-route-map)#exit
Console(config)#route-map RD permit 12
Console(config-route-map)#match peer 192.168.0.99
Console(config-route-map)#set community 20:01
Console(config-route-map)#
RELATED COMMANDS
set comm-list delete
set extcommunity This command sets the extended community attributes of routing
messages. Use the no form to remove this entry from a route map.
SYNTAX
set extcommunity {rt extended-community-value |
soo extended-community-value}
no set extcommunity [rt | soo]
rt – The route target extended community attribute.
soo – The site of origin extended community attribute.
extended-community-value – The route target or site of origin in
one of the following formats:
AAAA:NN or AA:NNNN – Community-number to deny or permit.
The community number can either be formatted as a 4-byte
autonomous system number and a 2-byte network number, or
as a 2-byte autonomous system number and a 4-byte network
number, separated by one colon. Each 2-byte number can range
from 0 to 65535, and 4-byte numbers from 0 to 4294967295.
IP:NN – Community to deny or permit. The community number
is composed of a 4-byte IP address (representing the
autonomous system number) and a 2-byte network number,
separated by one colon. The 2-byte network number can range
from 0 to 65535.
One or more community numbers can be entered, separated by
a space. Up to 3 community numbers are supported.
COMMAND MODE
Route Map
COMMAND USAGE
Using the rt keyword to specify new route targets replaces existing
route targets.