04-01-2018 12:03 AM - edited 03-05-2019 10:11 AM
we would like to perform load balance in edge routers connected to same ISP.
the edge routers are running IBGP between them using IGP protocols as OSPF.
the Edge routers connected to ISP are running EBGP.
i am trying to follow the example in the link given below
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13762-40.html#anc15
but not able to achive the results.
any one can help me out.
R3 configuration:
router bgp 2
no synchronization
bgp log-neighbor-changes
network 3.3.3.3 mask 255.255.255.255
redistribute ospf 100
neighbor 4.4.4.4 remote-as 2
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 next-hop-self
neighbor 4.4.4.4 soft-reconfiguration inbound
neighbor 172.16.35.5 remote-as 1
neighbor 172.16.35.5 soft-reconfiguration inbound
neighbor 172.16.35.5 route-map R3-R5 out
no auto-summary
route-map R3-R5 permit 10
match ip address 2
set as-path prepend 2 2 2
route-map R3-R5 permit 20
match ip address 1
Router#sho run | i acce
access-list 1 permit 10.10.10.0
access-list 2 permit 20.20.20.0
Router#sho ip bgp neighbors 172.16.35.5 advertised-routes
Total number of prefixes 0
Router#
===============================================================
Router#sho ip bgp
BGP table version is 93, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i0.0.0.0 4.4.4.4 0 100 0 1 i
*> 172.16.35.5 0 0 1 i
* i1.1.1.1/32 4.4.4.4 11 100 0 ?
*> 10.1.13.1 11 32768 ?
* i2.2.2.2/32 4.4.4.4 11 100 0 ?
*> 10.1.23.2 2 32768 ?
* i3.3.3.3/32 4.4.4.4 21 100 0 ?
*> 0.0.0.0 0 32768 i
* i4.4.4.4/32 4.4.4.4 0 100 0 ?
*> 10.1.23.2 12 32768 ?
*> 5.5.5.5/32 172.16.35.5 0 0 1 ?
r>i6.6.6.6/32 4.4.4.4 0 100 0 1 ?
r 172.16.35.5 21 0 1 ?
* i7.7.7.7/32 4.4.4.4 11 100 0 1 ?
*> 172.16.35.5 11 0 1 ?
* i10.1.12.0/24 4.4.4.4 1510 100 0 ?
*> 10.1.23.2 1501 32768 ?
--More--
===============================================================
Router#sho ip bgp neighbors 172.16.35.5 received-routes
BGP table version is 93, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 0.0.0.0 172.16.35.5 0 0 1 i
*> 5.5.5.5/32 172.16.35.5 0 0 1 ?
r 6.6.6.6/32 172.16.35.5 21 0 1 ?
*> 7.7.7.7/32 172.16.35.5 11 0 1 ?
*> 10.1.57.0/24 172.16.35.5 0 0 1 ?
r 10.1.67.0/24 172.16.35.5 20 0 1 ?
Total number of prefixes 6
===============================================================
Router#sho ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 172.16.35.5 to network 0.0.0.0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 10.1.13.1, 00:26:05, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 10.1.23.2, 00:26:05, FastEthernet1/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/12] via 10.1.23.2, 00:26:05, FastEthernet1/0
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.20 [110/11] via 10.1.13.1, 00:26:06, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
B 5.5.5.5 [20/0] via 172.16.35.5, 00:24:41
6.0.0.0/32 is subnetted, 1 subnets
O E2 6.6.6.6 [110/1] via 10.1.23.2, 00:24:35, FastEthernet1/0
172.16.0.0/24 is subnetted, 2 subnets
S 172.16.46.0 [1/0] via 4.4.4.4
C 172.16.35.0 is directly connected, FastEthernet0/0
7.0.0.0/32 is subnetted, 1 subnets
B 7.7.7.7 [20/11] via 172.16.35.5, 00:24:41
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
O IA 10.10.10.10/32 [110/11] via 10.1.13.1, 00:26:06, FastEthernet0/1
O 10.1.14.0/24 [110/21] via 10.1.23.2, 00:26:06, FastEthernet1/0
C 10.1.13.0/24 is directly connected, FastEthernet0/1
O 10.1.12.0/24 [110/1501] via 10.1.23.2, 00:26:06, FastEthernet1/0
O 10.1.24.0/24 [110/11] via 10.1.23.2, 00:26:06, FastEthernet1/0
C 10.1.23.0/24 is directly connected, FastEthernet1/0
B 10.1.57.0/24 [20/0] via 172.16.35.5, 00:24:41
O E2 10.1.67.0/24 [110/1] via 10.1.23.2, 00:24:35, FastEthernet1/0
B* 0.0.0.0/0 [20/0] via 172.16.35.5, 00:25:31
R4 configuration:
router bgp 2
no synchronization
bgp log-neighbor-changes
redistribute ospf 100
neighbor 3.3.3.3 remote-as 2
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 3.3.3.3 soft-reconfiguration inbound
neighbor 172.16.46.6 remote-as 1
neighbor 172.16.46.6 soft-reconfiguration inbound
neighbor 172.16.46.6 route-map R4-R6 out
no auto-summary
route-map R4-R6 permit 10
match ip address 2
set as-path prepend 2 2 2
route-map R4-R6 permit 20
match ip address 1
Router#sho run | i acce
access-list 1 permit 20.20.20.0
access-list 2 permit 10.10.10.0
Router#
Router#sho ip bgp neighbors 172.16.46.6 advertised-routes
Total number of prefixes 0
===============================================================
Router#sho ip bgp
BGP table version is 52, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i0.0.0.0 3.3.3.3 0 100 0 1 i
* i1.1.1.1/32 3.3.3.3 11 100 0 ?
*> 10.1.14.1 11 32768 ?
* i2.2.2.2/32 3.3.3.3 2 100 0 ?
*> 10.1.24.2 11 32768 ?
* i3.3.3.3/32 3.3.3.3 0 100 0 i
*> 10.1.14.1 21 32768 ?
* i4.4.4.4/32 3.3.3.3 12 100 0 ?
*> 0.0.0.0 0 32768 ?
r 5.5.5.5/32 172.16.46.6 21 0 1 ?
r>i 3.3.3.3 0 100 0 1 ?
*> 6.6.6.6/32 172.16.46.6 0 0 1 ?
*> 7.7.7.7/32 172.16.46.6 11 0 1 ?
* i 3.3.3.3 11 100 0 1 ?
* i10.1.12.0/24 3.3.3.3 1501 100 0 ?
*> 10.1.14.1 1510 32768 ?
* i10.1.13.0/24 3.3.3.3 0 100 0 ?
Network Next Hop Metric LocPrf Weight Path
*> 10.1.14.1 20 32768 ?
* i10.1.14.0/24 3.3.3.3 21 100 0 ?
*> 0.0.0.0 0 32768 ?
* i10.1.23.0/24 3.3.3.3 0 100 0 ?
*> 10.1.14.1 21 32768 ?
* i10.1.24.0/24 3.3.3.3 11 100 0 ?
*> 0.0.0.0 0 32768 ?
r 10.1.57.0/24 172.16.46.6 20 0 1 ?
r>i 3.3.3.3 0 100 0 1 ?
*> 10.1.67.0/24 172.16.46.6 0 0 1 ?
* i10.10.10.10/32 3.3.3.3 11 100 0 ?
*> 10.1.14.1 11 32768 ?
* i20.20.20.20/32 3.3.3.3 11 100 0 ?
*> 10.1.14.1 11 32768 ?
===============================================================
Router#sho ip bgp neighbors 172.16.46.6 received-routes
BGP table version is 53, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 0.0.0.0 172.16.46.6 0 0 1 i
r 5.5.5.5/32 172.16.46.6 21 0 1 ?
*> 6.6.6.6/32 172.16.46.6 0 0 1 ?
*> 7.7.7.7/32 172.16.46.6 11 0 1 ?
r 10.1.57.0/24 172.16.46.6 20 0 1 ?
*> 10.1.67.0/24 172.16.46.6 0 0 1 ?
Total number of prefixes 6
===============================================================
Router#sho ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 172.16.46.6 to network 0.0.0.0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 10.1.14.1, 00:25:44, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 10.1.24.2, 00:25:44, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/21] via 10.1.14.1, 00:25:44, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
C 4.4.4.4 is directly connected, Loopback0
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.20 [110/11] via 10.1.14.1, 00:25:45, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O E2 5.5.5.5 [110/1] via 10.1.14.1, 00:24:27, FastEthernet0/1
6.0.0.0/32 is subnetted, 1 subnets
B 6.6.6.6 [20/0] via 172.16.46.6, 00:24:24
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.46.0 is directly connected, FastEthernet1/0
7.0.0.0/32 is subnetted, 1 subnets
B 7.7.7.7 [20/11] via 172.16.46.6, 00:24:24
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
O IA 10.10.10.10/32 [110/11] via 10.1.14.1, 00:25:48, FastEthernet0/1
C 10.1.14.0/24 is directly connected, FastEthernet0/1
O 10.1.13.0/24 [110/20] via 10.1.14.1, 00:25:48, FastEthernet0/1
O 10.1.12.0/24 [110/1510] via 10.1.24.2, 00:25:48, FastEthernet0/0
[110/1510] via 10.1.14.1, 00:25:48, FastEthernet0/1
C 10.1.24.0/24 is directly connected, FastEthernet0/0
O 10.1.23.0/24 [110/21] via 10.1.14.1, 00:25:48, FastEthernet0/1
O E2 10.1.57.0/24 [110/1] via 10.1.14.1, 00:24:30, FastEthernet0/1
B 10.1.67.0/24 [20/0] via 172.16.46.6, 00:24:24
B* 0.0.0.0/0 [20/0] via 172.16.46.6, 00:00:17
Router#
the routes are not being advertised to ISP. can any one help me to fix the problem
Solved! Go to Solution.
04-02-2018 01:44 AM - edited 04-02-2018 01:45 AM
i don'tthink there should be any difference in running ibgp , any way R5 and R6 is considered as ISP in our topology , so we can run ibgp but the most important thing is that R5,R6 & R7 should routes of internal for reachability.
since we already have the routes, we need to find the way to divert the traffic as requested earlier.
04-03-2018 04:09 AM
Hello,
I am still working on this, unfortunately without the desired result.The example document you provided uses BGP only routes, so my guess is that the problem is that the redistributed routes are O and not B routes (OSPF and not BGP). What do the routing tables on your R3 and R4 router look like for 10.10.10.10/32 and 20.20.20.20/32 ?
04-04-2018 03:30 PM
04-05-2018 05:25 AM
Hello,
I am not sure where the discrepancy is with your and my config. Can you post the output of 'sh ip route' from both R5 and R6, and the current full config of R3 and R4 ?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide