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 83. 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
host2(config-router)#
exit
host2(config)#
access-list 1 deny 10.16.22.0 0.254.255.255
access-list
•
Use to define an IP access list to permit or deny routes based on the prefix.
•
Each access list is a set of permit or deny conditions for routes based on matching a
route’s prefix.
•
Use the
neighbor distribute-list
command to apply the access list to routes received
from or forwarded to a neighbor.
•
Use the
log
keyword to log an Info event in the ipAccessList log whenever an access-list
rule is matched.
•
Use the
no
version to delete an IP access list or the specified entry in the access list.
•
See access-list.
clear access-list
•
Use to clear IP access list counters.
•
Each access list has a counter for its entries.
•
Example
host1#
clear access-list reject1
83
Copyright © 2010, Juniper Networks, Inc.
Chapter 1: Configuring BGP Routing
Содержание 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...