Reference Guide

Table Of Contents
Format set as-path prepend as-path-string
Mode Route Map Configuration
Parameter Description
as-path-string
A list of AS path numbers to insert at the beginning of the AS_PATH attribute of matching
BGP routes. To prepend more than one AS number, separate the ASNs with a space and
enclose the string in quotes. Up to ten AS numbers may be prepended.
The following example prepends three instances an external peer’s AS number to paths received from
that peer, making routes learned from this peer less likely to be chosen as the best path.
(Extreme 220) (Routing)# config
(Extreme 220) (Routing)# route-map ppAsPath
(Extreme 220) (Routing)# set as-path prepend “2 2 2”
(Extreme 220) (Routing)# exit
(Extreme 220) (Routing)# router bgp 1
(Extreme 220) (Routing)# neighbor 172.20.1.2 remote-as 2
(Extreme 220) (Routing)# neighbor 172.20.1.2 route-map ppAsPath in
no set as-path
To remove a set command from a route map, use the no form of this command.
Format
no set as-path prepend as-path-string
Mode Route Map Configuration
set comm-list delete
To remove BGP communities from an inbound or outbound UPDATE message, use the set comm-list
delete command in Route Map Configuration mode. A route map with this set command can be used to
remove selected communities from inbound and outbound routes. When a community list is applied to
a route for this purpose, each of the route’s communities is submitted to the community list one at a
time. Communities permitted by the list are removed from the route. Because communities are
processed individually, a community list used to remove communities should not include the exact-
match option on statements with multiple communities. Such statements can never match an individual
community.
When a route map statement includes both set community and set comm-list delete terms, the set
comm-list delete term is processed first, and then the set community term (meaning that, communities
are first removed, and then communities are added).
Format
set comm-list community-list-name delete
Mode Route Map Configuration
Parameter Description
community-list-
name
A standard community list name.
Routing Commands
ExtremeSwitching 200 Series: Command Reference Guide for version 01 .02.04.0007 542