BGP Lab 12 BGP Local preference (CCNP Level)
Download Lab: GNS3
Lab tasks:
Policy: All internal routers in the AS250 have to access networks of AS101 exclusively via edge router ER1, while router ER2 will serve as the gateway for all other destinations. To accomplish this, the network team has a BGP local preference as a tool to implement the policy.
1. Configure router ER1 to set local preference for 50.0.0.0/20 of 500, the rest of the routes should stay with the default parameters.
2. Configure router ER2 to keep the default local preference for 50.0.0.0/20 network but for the rest of the bgp table entries set local preference to 600.
Configuration example:
!
ER1(config)# ip prefix-list AS101_PREFIX permit 50.0.0.0/20
!
ER1(config)# route-map SET_LC_PREF permit 10
ER1(config-route-map)# match ip address prefix-list AS101_PREFIX
ER1(config-route-map)# set local-preference 500
ER1(config-route-map)# exit
!
ER1(config)# router bgp 250
ER1(config-router)#neighbor 50.0.0.100 route-map SET_LC_PREF in
ER1(config-router)# exit
!
ER1# clear ip bgp 50.0.0.100 soft in
Topology:
Comments
Post a Comment