•
Use to modify an AS path for BGP routes by prepending one or more AS numbers or a
list of AS numbers to the path list.
•
The only global BGP metric available to influence the best-path selection is the AS-path
length. By varying the length of the AS path, a BGP speaker can influence the best-path
selection by a peer farther away.
•
Example
host1(config)#
route-map nyc1 permit 10
host1(config-route-map)#
set as-path prepend list list10
•
Use the
no
version to delete the set clause from a route map.
•
See set as-path prepend.
set comm-list delete
•
Use to remove communities specified by the community list from the community
attribute of routes matching the route map.
•
You can use this command to delete communities only if the community list was
created with a single community per list entry as shown in the following sample
configuration for router Test:
host1(config)#
ip community-list 1 permit 231:10
host1(config)#
ip community-list 1 permit 231:20
host1(config)#
router bgp 45
host1(config-router)#
neighbor 10.6.2.5 remote-as 5
host1(config-router)#
neighbor 10.6.2.5 route-map indelete in
host1(config-router)#
route-map indelete permit 10
host1(config-route-map)#
set comm-list 1 delete
Router Test receives the same route from 10.6.2.5 and applies the indelete route map.
BGP compares each list entry with the community attribute. A match is found for the
list entry 231:10, and this community is deleted from the community attribute. Similarly,
a match is found for the list entry of 231:20, and this community is deleted from the
community attribute.
•
Use the
no
version to delete the set clause from a route map.
•
See set comm-list delete.
set community
•
Use to set the community attribute in BGP updates.
•
You can specify a community list number in the range 1–4294967295, or in the new
community format of AA:NN, or one of the following well-known communities:
•
local-as
—Prevents advertisement outside the local AS
•
no-advertise
—Prevents advertisement to any peer
•
no-export
—Prevents advertisement beyond the BGP confederation boundary
•
Alternatively, you can use the
list
keyword to specify the name of a community list
that you previously created with the
ip community-list
command.
Copyright © 2010, Juniper Networks, Inc.
76
JunosE 11.2.x BGP and MPLS Configuration Guide
Содержание JUNOSE 11.2.X BGP AND MPLS
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 38: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 192: ...Copyright 2010 Juniper Networks Inc 156 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 242: ...Copyright 2010 Juniper Networks Inc 206 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 244: ...Copyright 2010 Juniper Networks Inc 208 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 310: ...Copyright 2010 Juniper Networks Inc 274 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 356: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 418: ...Copyright 2010 Juniper Networks Inc 382 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 524: ...Copyright 2010 Juniper Networks Inc 488 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 544: ...Copyright 2010 Juniper Networks Inc 508 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 608: ...Copyright 2010 Juniper Networks Inc 572 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 672: ...Copyright 2010 Juniper Networks Inc 636 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 674: ...Copyright 2010 Juniper Networks Inc 638 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 716: ...Copyright 2010 Juniper Networks Inc 680 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 717: ...PART 6 Index Index on page 683 681 Copyright 2010 Juniper Networks Inc...
Страница 718: ...Copyright 2010 Juniper Networks Inc 682 JunosE 11 2 x BGP and MPLS Configuration Guide...