Saturday, October 8, 2011

LAB: BGP - Filtering with Standard Access list

- Configure a standard access-list on R2 so that it does not accept any prefix with the address 222.22.2.0 from BB2; this access-list should be applied directly to the neighbor.
- Configure a standard access-list on R4 so that it does not accept any prefixes with an odd number in the first octet; this access-list should be applied through a route-map to the neighbor.

configuration:

R2:
ip access-list standard BLOCK_222
deny 22.22.2.0
permit any
!
router bgp 200
no neighbor 192.10.1.254 prefix-list BLOCK_222 in
neighbor 192.10.1.254 distribute-list BLOCK_222 in
R4:
ip access-list standard ODD_FIRST_OCTET
permit 1.0.0.0 254.255.255.255
!
no route-map FROM_BB3
!
route-map FROM_BB3 permit 100
match ip address ODD_FIRST_OCTET
!
router bgp 100
neighbor 204.12.1.254 route-map FROM_BB3 in

No comments:

Post a Comment