01-10-2014 03:51 AM - edited 03-04-2019 10:02 PM
Hello,
i have some issues with routes learned over a mpls backbone. The setup is like this
Switch1 ---------- Switch2
| |
Router 1 Router2
| |
------ MPLS --------
|
Router3
|
Switch3
i have on switch3 the network 10.0.0.0/24 which is learned by Router 1 and Router 2 and know as
show ip bgp vpnv4 vrf NCS 10.0.0.0
BGP routing table entry for 65000:100:10.0.0.0/24, version 64
Paths: (1 available, best #1, table NCS)
Advertised to update-groups:
2
Local, (Received from a RR-client)
172.16.128.252 (metric 5) from 172.16.128.252 (172.16.128.252)
Origin incomplete, metric 11, localpref 100, valid, internal, best
Extended Community: RT:65000:1000 OSPF DOMAIN ID:0x0005:0x000000640200
OSPF RT:0.0.0.0:3:0 OSPF ROUTER ID:172.22.0.241:0
mpls labels in/out nolabel/19
after enabling a ospf process between R1-S1 and S1-S2 and S2-R2 the route is learned on R1 as
R1#show ip bgp vpnv4 vrf NCS 10.0.0.0
BGP routing table entry for 65000:100:10.0.0.0/24, version 70
Paths: (2 available, best #1, table NCS)
Advertised to update-groups:
4
Local
172.22.8.6 from 0.0.0.0 (172.16.138.252)
Origin IGP, metric 1, localpref 100, weight 32768, valid, sourced, best
Extended Community: RT:65000:1000 OSPF DOMAIN ID:0x0005:0x000000640200
OSPF RT:0.0.0.0:5:1 OSPF ROUTER ID:172.22.8.241:0
mpls labels in/out 47/nolabel
Local, (Received from a RR-client)
172.16.128.252 (metric 5) from 172.16.128.252 (172.16.128.252)
Origin incomplete, metric 11, localpref 100, valid, internal
Extended Community: RT:65000:1000 OSPF DOMAIN ID:0x0005:0x000000640200
OSPF RT:0.0.0.0:3:0 OSPF ROUTER ID:172.22.0.241:0
mpls labels in/out 47/19
and R1 installs the OSPF learned route in the routing table of R1 vrf NCS
i changed the config on the routers R1 and R2 to set the weight for the routes from R3 to 32769 and changed the ospf distance for external routes to 250 but still the routes are not correct installed in my routing table.
here is the config
router ospf 100 vrf NCS
router-id 172.22.8.241
auto-cost reference-bandwidth 1000
capability vrf-lite
redistribute bgp 65000 subnets
network 172.22.2.232 0.0.0.7 area 0
network 172.22.8.0 0.0.0.7 area 0
network 172.22.8.241 0.0.0.0 area 0
default-information originate
distance ospf external 250
router bgp 65000
bgp router-id 172.16.138.252
bgp log-neighbor-changes
neighbor RR-WBN2 peer-group
neighbor RR-WBN2 remote-as 65000
neighbor RR-WBN2 update-source Loopback1
neighbor 172.16.128.252 peer-group RR-WBN2
neighbor 172.16.135.252 peer-group RR-WBN2
!
address-family ipv4
neighbor 172.16.128.252 activate
neighbor 172.16.128.252 weight 32769
neighbor 172.16.135.252 activate
neighbor 172.16.135.252 weight 32769
exit-address-family
!
address-family vpnv4
neighbor RR-WBN2 send-community both
neighbor RR-WBN2 route-reflector-client
neighbor 172.16.128.252 activate
neighbor 172.16.128.252 weight 32769
neighbor 172.16.135.252 activate
neighbor 172.16.135.252 weight 32769
exit-address-family
!
address-family ipv4 vrf NCS
redistribute connected
redistribute ospf 100 match internal external 1 external 2
default-information originate
exit-address-family
somehow the weight statement is not working
R1#show ip bgp vpnv4 vrf NCS
BGP table version is 70, local router ID is 172.16.138.252
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-external, f RT-Filter
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 65000:100 (default for vrf NCS)
*> 10.0.0.0/24 172.22.8.6 1 32768 i
* i 172.16.128.252 11 100 0 ?
*> 10.0.8.0/24 172.22.8.6 11 32768 ?
any ideas
thanks in advanced
Alex
01-10-2014 05:54 AM
Hello
This seems confusing to me on what your intensions are?
Are you trying to manipulate outbound route path for a specific network ( 10.0.0./24) which is advertised from for example sake - Site A - over mpls into - site B?
res
Paul
Please don't forget to rate any posts that have been helpful.
Thanks.
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