Chapter5BGPConguration
Figure5-13SelectRoutebyUsingLOCAL_PREFAttribute
CongurationonS1:
S1(config)#routerbgp600
S1(config-bgp)#nosynchronization
S1(config-bgp)#neighbor172.16.1.2remote-as300
S1(config-bgp)#neighbor172.16.1.2activate
S1(config-bgp)#neighbor192.168.1.9remote-as600
S1(config-bgp)#neighbor192.168.1.9activate
S1(config-bgp)#neighbor192.168.1.9next-hop-self
S1(config-bgp)#neighbor192.168.1.5remote-as600
S1(config-bgp)#neighbor192.168.1.5activate
S1(config-bgp)#neighbor192.168.1.5next-hop-self
S1(config-bgp)#neighbor172.16.1.2route-mapLocal_Prefin
S1(config-bgp)#exit
S1(config)#ipv4-access-list1
S1(config-ipv4-acl)#permitany
S1(config)#route-mapLocal_Prefpermit10
S1(config-route-map)#matchipaddress1
S1(config-route-map)#setlocal-preference200
CongurationonS2:
S2(config)#routerbgp600
S2(config-bgp)#nosynchronization
S2(config-bgp)#neighbor172.16.0.2remote-as300
S2(config-bgp)#neighbor172.16.0.2activate
S2(config-bgp)#neighbor192.168.1.1remote-as600
5-37
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential