Quantcast
Channel: IEOC - INE's Online Community
Viewing all articles
Browse latest Browse all 10672

Volumn II Lab 7 Task 2.4

$
0
0

The setup:

 

R6  peer with BB1 remote-as 54

R6 peer with BB3 remote-as 54

 

Requirement:

.  All traffic from local AS to prefix originated from AS 54 should go toward BB1

.  All traffic from local AS to prefix originated from the customers of AS 54 should go toward BB3

 

Solution:

 

R6:

router bgp 100
 neighbor 54.1.7.254 route-map BB1 in
 neighbor 204.12.1.254 route-map BB3 in
!
ip as-path access-list 1 permit _54$
!
route-map BB1 permit 10
 match as-path 1
 set local-preference 200
!
route-map BB1 permit 20
!
route-map BB3 permit 10
 match as-path 1
!
route-map BB3 permit 20
 set local-preference 200


I am thinking the route-map BB3 permit 20 does not meet the 2nd requirement about the customers of AS 54.  Instead it will match all prefixes 
other than the ones originated from AS 54, including all prefixes from other AS using AS 54 as the transit.  The correct solution should be creating 
another as-path access-list:
ip as-path access-list 20 permit ^54_([0-9]+)
route-map BB3 permit 20
 match as-path 20
 set local-preference 200
Am I right or wrong on this?

Viewing all articles
Browse latest Browse all 10672

Trending Articles