BGP Set Commands
XSR CLI Reference Guide 6-115
Syntax of the “no” Form
The
no
form
of
this
command
removes
the
AS
path
value:
no set as-path
Mode
Route
‐
map
configuration:
XSR(config-route-map)#
Example
The
following
example
configures
the
as
‐
path
value
in
the
context
of
configuring
a
route
map
and
the
match
command.
The
match as-path
command
references
AS
‐
path
access
list
37
which
identifies
the
BGP
routing
updates
to
which
the
set as-path
command
will
apply.
In
this
case,
match
clause
ʺ
.*
ʺ
will
match
all
routes.
Relevant
updates
will
have
one
instance
of
the
AS
number
100
prepended
into
their
AS
path
variable.
Assuming
that
all
of
the
BGP
route
selection
criteria
remain
the
same,
the
routes
with
the
fewest
AS
numbers
in
the
AS
path
variable
will
be
chosen
as
the
best
routes
to
the
identified
destinations.
If
more
than
one
AS
path
is
to
be
prepended,
then
the
string
should
be
surrounded
by
quotes.
XSR(config)#ip as-path access-list 37 permit ".*"
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 37
XSR(config-route-map)#set as-path prepend 100
XSR(config-route-map)#set as-path prepend "100 100"
set community
This
command
specifies
the
community
attribute
in
a
BGP
routing
update
message.
Be
sure
that
a
match
clause
has
been
specified.
A
community
is
a
group
of
destinations
which
share
the
community
attribute.
A
BGP
speaker
can
use
the
community
attribute
to
control
which
routing
data
it
accepts
or
distributes
to
neighbors.
A
BGP
speaker
can
append
the
community
attribute
to
routes
it
receives
that
do
not
already
have
the
attribute.
Syntax
set community
{
community-number | aa:nn
|
additive
|
internet
|
local-AS
|
no-
advertise
|
no-export
|
none
}
as-path-string
The
AS
path
list
which
will
be
prepended
to
the
AS
path
attribute
of
the
route
that
matches
the
route
map.
The
as
‐
path
list
represents
one
or
more
valid
AS
numbers
that
are
specified
as
an
integer
between
1
and
65535.
community-number
The
community
number.
Range:
1
to
4,294,967,295.
aa:nn
Community
number
in
the
format
aa:nn
where
aa
identifies
the
AS
and
nn
the
community
within
the
AS.
Range:
1
to
65,535.
additive
Adds
the
community
to
existing
communities.
internet
Established
Internet
community.
Summary of Contents for X-Pedition XSR
Page 1: ...X Pedition Security Router XSR CLI Reference Guide Version 7 6 P N 9033842 07...
Page 2: ......
Page 10: ...viii...
Page 14: ...xii...
Page 134: ...Bootrom Monitor Mode Commands 3 128 Configuring the XSR Platform...
Page 278: ...VRRP Clear and Show Commands 5 202 Configuring the Internet Protocol...
Page 352: ...IGMP Clear and Show Commands 7 104 Configuring IP Multicast...
Page 406: ...Multilink Show Commands 8 136 Configuring the Point to Point Protocol...
Page 436: ...Frame Relay Clear and Show Commands 9 112 Configuring Frame Relay...
Page 460: ...Dialer Watch Commands 10 106 Configuring the Dialer Interface...