Juniper JUNOSE 11.2.X IP SERVICES Configuration Manual page 51

For e series broadband services routers - ip services configuration
Table of Contents

Advertisement

access-list
Copyright © 2010, Juniper Networks, Inc.
host1(config)#router bgp 293
host1(config-router)#network 192.168.5.0 mask 255.255.255.0
host1(config-router)#neighbor 10.2.2.4 remote-as 17
host1(config-router)#neighbor 10.2.2.4 weight 150
host1(config-router)#neighbor 10.2.2.4 route-map 1 in
host1(config-router)#exit
host1(config-router)#neighbor 10.5.5.2 remote-as 32
host1(config-router)#neighbor 10.5.5.2 weight 50
host1(config-router)#neighbor 10.5.5.2 route-map 2 in
host1(config)#route-map 1 permit 1
host1(config-route-map)#match as-path 1
host1(config-route-map)#set weight 25
host1(config-route-map)#exit
host1(config)#ip as-path access-list 1 permit [ 32 837 ]
host1(config)#route-map 2 permit 1
host1(config-route-map)#match as-path 2
host1(config-route-map)#set weight 175
host1(config-route-map)#exit
host1(config)#ip as-path access-list 2 permit [ 74 ]
The result of this configuration is that router Chicago prefers routes learned through
router Boston (weight 150) over routes learned through router NY (weight 50), except
that:
Router Chicago prefers routes learned via router NY that passed through AS 837 or AS
32 (weight 50) over the same routes learned via router Boston (weight 25 according
to route map 1).
Router Chicago prefers routes originating in AS 74 learned via router NY that passed
through AS 837 and AS 32 (weight 175 according to route map 2) over the same routes
learned via router Boston (weight 150).
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.
A zero in the wildcard mask means that the corresponding bit in the address must be
exactly matched by the route. A one in the wildcard mask means that the corresponding
bit in the address does not have to be matched by the route.
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.
Example
host1(config)#access-list bronze permit ip host any 228.0.0.0 0.0.0.255
Chapter 1: Configuring Routing Policy
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.2.x

Table of Contents