BGP Advanced

1.Change the advertised Local Preference

 

1.Create a Route map to change the local preference to 100 (for ISP you want to prefer)

R2(config)#route-map LOCALPREF-BB1

R2(config-route-map)#set local-preference 100

R2(config-route-map)#exit

 

2.Create a Route map to change the local preference to 200 (for the 2nd ISP)

R2(config)#route-map LOCALPREF-BB2

R2(config-route-map)#set local-preference 200

R2(config-route-map)#exit

 

3.Configure the Route Map under the BGP process

R2(config)#router bgp 65001

R2(config-router)#neighbor 172.16.1.1 route-map LOCALPREF-BB1 in//I (R1) will set any routes coming from you(BB1:172.16.1.1) as it has local preference of 100

 

R2(config-router)#neighbor 172.16.2.2 route-map LOCALPREF-BB2 in //I (R2) will set any routes coming from you(BB2:172.16.2.2) as it has local preference of 200

R2(config-router)#exit

 

 

2.Chnage the Actual AS hops

 

1.Create a new route map that will fake the number of AS

R2(config)#route-map ASPATH 10

R2(config-route-map)#set as-path prepend 65001 65001 //advertise your routes with two AS added to the real AS

R2(config-route-map)#exit

 

2.Apply it on bgp

R2(config)#router bgp 65001

R2(config-router)#neighbor 172.16.1.1 route-map ASPATH out //advertise your AS to neighbor 172.16.1.1 and add two fake AS

R2(config-router)#end

Advertisements

Share you opinion to benefit others :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s