Figure 23: Filtering with AS-Path Access Lists
Suppose you want router London to behave in the following way:
■
Accept routes originated in AS 621 only if they pass directly to router London
■
Accept routes originated in AS 11 only if they pass directly to router London
■
Forward routes from AS 282 to AS 435 only if they pass through either AS 621
or AS 11, but not both AS 621 and AS 11
The following commands configure router London to apply filters based on the AS
path to routes received from router Berlin and router Paris and to routes forwarded
to router Madrid.
host1(config)#
router bgp 47
host1(config-router)#
neighbor 10.2.9.2 remote-as 621
host1(config-router)#
neighbor 10.2.9.2 filter-list 1 in
host1(config-router)#
neighbor 10.2.8.2 remote-as 11
host1(config-router)#
neighbor 10.2.8.2 filter-list 2 in
host1(config-router)#
neighbor 10.2.7.2 remote-as 435
host1(config-router)#
neighbor 10.2.7.2 filter-list 3 out
host1(config-router)#
exit
host1(config)#
ip as-path access-list 1 deny ^621_11$
host1(config)#
ip as-path access-list 1 permit .*
host1(config)#
ip as-path access-list 2 deny ^11_621$
host1(config)#
ip as-path access-list 2 permit .*
host1(config)#
ip as-path access-list 3 deny ^11_621_282
host1(config)#
ip as-path access-list 3 deny ^621_11_282
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 (621 11).
AS-path access list 2 is applied to routes that router London receives from router
Berlin. Router London rejects routes with the AS path (11 621) or (621 282 11).
Router London accepts routes with the AS path (11 282), (621 282), (621 11 282),
or (11 621 282). However, it applies AS-path access list 3 to routes it forwards to
router Madrid, and filters out routes with the AS path (621 11 282) or (11 621 282).
88
■
Configuring BGP Routing Policy
JUNOSe 11.1.x BGP and MPLS Configuration Guide
Содержание BGP
Страница 6: ...vi ...
Страница 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Страница 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 350: ...314 Example Traffic Class Configuration for Differentiated Services JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 541: ... There is no no version See undebug ip mbgp Monitoring BGP MPLS VPNs 505 Chapter 5 Configuring BGP MPLS Applications ...
Страница 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 598: ...562 Multiple ATM Virtual Circuits over a Single Pseudowire Example JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 648: ...612 VPLS Configuration Example with LDP Signaling JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Страница 725: ...Part 6 Index Index on page 691 Index 689 ...
Страница 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...