host1(config)#
ip as-path access-list 2 permit .*
host1(config)#
ip as-path access-list 3 deny [621 11]
host1(config)#
ip as-path access-list 3 permit .*
AS-path access list 1 is applied to routes that router London receives from router Paris.
Router London rejects routes with the AS path 11 621 or 11 282 621.
AS-path access list 2 is applied to routes that router London receives from router Berlin.
Router London rejects routes with the AS path 621 11 or 621 282 11.
Router London accepts routes with the AS path 282 11, 282 621, 282 621 11, or 282 11 621.
However, it applies AS-path access list 3 to routes it forwards to router Madrid, and filters
out routes with the AS path 282 621 11 or 282 11 621.
Using Access Lists in a Route Map
You can use a route map instead of the
neighbor filter-list
command to apply access
lists for filtering routes.
Configuration Example 1
In Figure 4 on page 24, a route map is used to determine the weight for routes learned
by router Chicago.
Figure 4: Route Map Filtering
Access list 1 permits any route whose AS-path attribute includes 32 or 837. This condition
permits routes that originate in (or pass through from elsewhere) AS 32 or AS 837. When
these routes are advertised through AS 451 and AS 17 to router Chicago, instance 1 of
route map 1 matches such routes and sets their weight to 25, overriding the neighbor
weight set for updates received from 10.2.2.4.
Access list 2 permits any route whose AS-path attribute indicates that it originates in AS
74. When these routes are advertised through AS 837 and AS 32 to router Chicago,
instance 1 of route map 2 matches such routes and sets their weight to 175, overriding
the neighbor weight set for updates received from 10.5.5.2.
The following example configures router Chicago:
Copyright © 2010, Juniper Networks, Inc.
24
JunosE 11.2.x IP Services Configuration Guide
Содержание JUNOSE 11.2.X IP SERVICES
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x IP Services Configuration Guide...
Страница 18: ...Copyright 2010 Juniper Networks Inc xviii JunosE 11 2 x IP Services Configuration Guide...
Страница 22: ...Copyright 2010 Juniper Networks Inc xxii JunosE 11 2 x IP Services Configuration Guide...
Страница 28: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x IP Services Configuration Guide...
Страница 116: ...Copyright 2010 Juniper Networks Inc 90 JunosE 11 2 x IP Services Configuration Guide...
Страница 144: ...Copyright 2010 Juniper Networks Inc 118 JunosE 11 2 x IP Services Configuration Guide...
Страница 230: ...Copyright 2010 Juniper Networks Inc 204 JunosE 11 2 x IP Services Configuration Guide...
Страница 262: ...Copyright 2010 Juniper Networks Inc 236 JunosE 11 2 x IP Services Configuration Guide...
Страница 294: ...Copyright 2010 Juniper Networks Inc 268 JunosE 11 2 x IP Services Configuration Guide...
Страница 328: ...Copyright 2010 Juniper Networks Inc 302 JunosE 11 2 x IP Services Configuration Guide...
Страница 345: ...PART 2 Index Index on page 321 319 Copyright 2010 Juniper Networks Inc...
Страница 346: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x IP Services Configuration Guide...
Страница 356: ...Copyright 2010 Juniper Networks Inc 330 JunosE 11 2 x IP Services Configuration Guide...