See below my solution..
2.7 Advanced BGP
Configure BGP path selection as following requirements
· Redistribute OSPF into BGP on R1 and R2
· R1 should prefer the path pointing to BB1 AS 254,the bgp tie breaker for best path selection has to be “Internal Vs External” Criteria
· R3 should prefer the path through R1 to BB1 for reaching AS 254. This configuration should not affect any other routers in AS YY getting to BGP AS 254
· You are not allowed to change BGP attributes Weight, AS-Path or Local Preference on R4 and R5 to accomplish this task
· You are allowed to change the ospf cost of only one interface.
· R4 should prefer R1 as exit point for reaching AS 254
· R4 should ping a prefix 197.68.1.254 network in learned from BGP AS254
SOLUTION:
On R1
router bgp 5
bgp bestpath as-path ignore
redistribute ospf 5 match internal external 1 external 2
On R2
router bgp 5
redistribute ospf 5 match internal external 1 external 2
On R3
router bgp 5
address-family ipv4
bgp additional-paths install
neighbor 5.5.1.1 activate
neighbor 5.5.1.1 weight 500
neighbor 5.5.4.4 activate
neighbor 5.5.4.4 route-reflector-client
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 route-reflector-client
neighbor 5.5.5.5 advertise diverse-path backup
exit-address-family
interface Serial1/1 **** Going Towards R2
ip ospf cost 1
Output
IOS
Rack05R4#show ver
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.2(2.15)T, ENGINEERING WEEKLY BUILD, synced to V151_4_M3_5
Copyright © 1986-2012 by Cisco Systems, Inc.
Compiled Sun 29-Jan-12 02:33 by
Internal vs External
Rack05R1#sb | in 197|.254
*> 197.68.1.0 150.1.5.254 0 0 254 253 i
*> 197.68.4.0 150.1.5.254 0 0 254 253 i
*> 197.68.5.0 150.1.5.254 0 0 254 253 i
*> 197.68.21.0 150.1.5.254 0 0 254 253 i
*> 197.68.22.0 150.1.5.254 0 0 254 253 i
Rack05R1#sr 197.68.1.0
Routing entry for 197.68.1.0/24
Known via "bgp 5", distance 20, metric 0
Tag 254, type external
Last update from 150.1.5.254 00:44:55 ago
Routing Descriptor Blocks:
* 150.1.5.254, from 150.1.5.254, 00:44:55 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 254
MPLS label: none
Rack05R1(config)#router bgp 5
Rack05R1(config-router)#neighbor 150.1.5.254 shutdown
*Jun 16 16:07:20.081: %BGP-5-ADJCHANGE: neighbor 150.1.5.254 Down Admin. shutdown
*Jun 16 16:07:20.081: %BGP_SESSION-5-ADJCHANGE: neighbor 150.1.5.254 IPv4 Unicast topology base removed from session Admin. Shutdown
(its only for verification after that do "no neighbor 150.1.5.254 shutdown")
Rack05R1#sb | in 197|.254
*>i 197.68.1.0 150.2.5.254 0 100 0 254 i
*>i 197.68.4.0 150.2.5.254 0 100 0 254 i
*>i 197.68.5.0 150.2.5.254 0 100 0 254 i
*>i 197.68.21.0 150.2.5.254 0 100 0 254 i
*>i 197.68.22.0 150.2.5.254 0 100 0 254 i
Rack05R1#sr 197.68.1.0
Routing entry for 197.68.1.0/24
Known via "bgp 5", distance 200, metric 0
Tag 254, type internal
Last update from 150.2.5.254 00:00:11 ago
Routing Descriptor Blocks:
* 150.2.5.254, from 5.5.3.3, 00:00:11 ago
Route metric is 0, traffic share count is 1
AS Hops 1
Route tag 254
MPLS label: none
R3 Following R1 to get BB's routes
Rack05R3#sb | in 197|.254
*>i 197.68.1.0 150.1.5.254 0 100 500 254 253 i
*bi 150.2.5.254 0 100 0 254 i
*>i 197.68.4.0 150.1.5.254 0 100 500 254 253 i
*bi 150.2.5.254 0 100 0 254 i
*>i 197.68.5.0 150.1.5.254 0 100 500 254 253 i
*bi 150.2.5.254 0 100 0 254 i
*>i 197.68.21.0 150.1.5.254 0 100 500 254 253 i
*bi 150.2.5.254 0 100 0 254 i
*>i 197.68.22.0 150.1.5.254 0 100 500 254 253 i
*bi 150.2.5.254 0 100 0 254 i
R5 Following R2 to get BB's routes
Rack05R5#sb | in 197|.254
*>i 197.68.1.0 150.2.5.254 0 100 0 254 i
*>i 197.68.4.0 150.2.5.254 0 100 0 254 i
*>i 197.68.5.0 150.2.5.254 0 100 0 254 i
*>i 197.68.21.0 150.2.5.254 0 100 0 254 i
*>i 197.68.22.0 150.2.5.254 0 100 0 254 i
R4 Following R1 to get BB's routes and ping Successfully.
Rack05R4#sb | in 197|.254
*>i 197.68.1.0 150.1.5.254 0 100 0 254 253 i
*>i 197.68.4.0 150.1.5.254 0 100 0 254 253 i
*>i 197.68.5.0 150.1.5.254 0 100 0 254 253 i
*>i 197.68.21.0 150.1.5.254 0 100 0 254 253 i
*>i 197.68.22.0 150.1.5.254 0 100 0 254 253 i
Rack05R4#ping 197.68.1.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 197.68.1.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 10/10/12 ms
Now i have only this one issue..
Rack05R4#trace 197.68.1.254
Type escape sequence to abort.
Tracing the route to 197.68.1.254
VRF info: (vrf in name/id, vrf out name/id)
1 5.5.34.3 3 msec 1 msec 1 msec
2 5.5.23.2 11 msec 12 msec 12 msec
3 150.2.5.254 10 msec 12 msec *
If i increase the ospf cost on R3 S1/1(R3>>R2) then packet goes to R5 and according to R5 197.68.1.254 route learned via 150.2.5.254 and the best path for it is R3.. so its send back to R3 again.. then loop occurs..
Kindly All experts, I need ur concerntration on this.. We are close to solution.
All Comments and suggestions are welcome..
Edited by crackerjoe69, 29 June 2012 - 07:52 AM.
color edit, red is for moderation use only












