Figure 21: Filtering with Access Lists
The following commands configure router Boston to apply access list reject1 to routes
inbound from router SanJose. Access list reject1 rejects routes matching
172.24.160.0/19.
host3(config)#
router bgp 17
host3(config-router)#
neighbor 10.5.5.4 remote-as 873
host3(config-router)#
neighbor 10.5.5.4 distribute-list reject1 in
host3(config-router)#
exit
host3(config)#
access-list reject1 permit 172.24.48.0 0.0.255
host3(config)#
access-list reject1 deny 172.24.160.0 0.0.255
host3(config)#
access-list reject1 permit 172.24.24.0 0.0.255
Consider the network shown in Figure 22 on page 84. Router NY originates network
10.16.22.0/23 and advertises it to router LA. Suppose you do not want router LA to
advertise that network to router Boston. You can apply an access list to updates from
router LA to router Boston that prevents router LA from propagating updates for
network 10.16.22.0/23.
Figure 22: Filtering Routes with an Access List
The following commands configure router LA:
host2(config)#
router bgp 400
host2(config-router)#
network 172.24.160.0 mask 255.255.224.0
host2(config-router)#
neighbor 10.72.4.2 remote-as 300
host2(config-router)#
neighbor 10.5.5.1 remote-as 100
host2(config-router)#
neighbor 10.5.5.1 distribute-list 1 out
84
■
Configuring BGP Routing Policy
JUNOSe 11.0.x BGP and MPLS Configuration Guide
Summary of Contents for JUNOSE
Page 6: ...vi...
Page 8: ...viii JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 24: ...xxiv Table of Contents JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 234: ...198 Monitoring BGP JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 298: ...262 Point to Multipoint LSPs Configuration JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 536: ...500 Monitoring BGP MPLS VPNs JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 538: ...502 Layer 2 Services Over MPLS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 604: ...568 Virtual Private LAN Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 618: ...582 VPLS References JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 674: ...638 Virtual Private Wire Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 718: ...682 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Page 719: ...Part 6 Index Index on page 685 Index 683...
Page 720: ...684 Index JUNOSe 11 0 x BGP and MPLS Configuration Guide...