11-01-2020 09:54 AM
I am trying to redistribute ospf routes from service vpn to bgp which is in transport vpn in a lab but routes are not getting redistributed. Is there any special configuration needed or I am missing something ?
Sample configuration:
Vedge_2# show run vpn 0
vpn 0
ecmp-hash-key layer4
router
bgp 65103
router-id 10.1.103.2
address-family ipv4-unicast
network 3.3.103.3/32
redistribute ospf
!
neighbor 10.1.103.1
description MPLS_PE_Neighbor
no shutdown
remote-as 65000
next-hop-self
address-family ipv4-unicast
!
Solved! Go to Solution.
11-03-2020 03:30 PM
Hi,
this config redistributes OSPF routes from VPN 0 but you want to do from service side (which is neither 0 nor 512). I haven't seen service-transport routing protocol redistribution anywhere. Seems, no support.
Just question, why do you want that? Because service VPN is for end user trafic, but transport VPN just connecting routers to others/controllers. Explain, the requirement/issue may be there is another way.
HTH,
11-03-2020 03:30 PM
Hi,
this config redistributes OSPF routes from VPN 0 but you want to do from service side (which is neither 0 nor 512). I haven't seen service-transport routing protocol redistribution anywhere. Seems, no support.
Just question, why do you want that? Because service VPN is for end user trafic, but transport VPN just connecting routers to others/controllers. Explain, the requirement/issue may be there is another way.
HTH,
11-05-2020 06:34 AM
Hi,
I got your point. As I was doing this in a lab and I didnt noticed that I am trying to redistributed ospf routes of other vpn into bgp of another vpn.
There is no requirement, it is just my lab setup.
11-10-2020 04:45 PM
try adding match command or route map
redistribute ospf 100 match external 2
! or
redistribute ospf 100 route-map OSPF2BGP
11-19-2020 07:53 AM
Hi,
Really sorry for late reply
I tried as follow:
vEdge2-2# show running-config policy
policy
lists
prefix-list OSPF_TO_BGP
ip-prefix 0.0.0.0/0 le 32
!
!
route-policy REDISTRIBUTE_OSPF_TO_BGP
sequence 1
match
address OSPF_TO_BGP
!
action accept
!
!
default-action accept
!
!
vEdge2-2# show run vpn 0 router bgp
vpn 0
router
bgp 65102
address-family ipv4-unicast
redistribute ospf route-policy REDISTRIBUTE_OSPF_TO_BGP
!
neighbor 10.1.102.1
no shutdown
remote-as 65000
address-family ipv4-unicast
!
!
!
!
!
but it is not working.
this is my ospf routing table:
vEdge2-2# show ip route ospf
Codes Proto-sub-type:
IA -> ospf-intra-area, IE -> ospf-inter-area,
E1 -> ospf-external1, E2 -> ospf-external2,
N1 -> ospf-nssa-external1, N2 -> ospf-nssa-external2,
e -> bgp-external, i -> bgp-internal
Codes Status flags:
F -> fib, S -> selected, I -> inactive,
B -> blackhole, R -> recursive, L -> import
PROTOCOL NEXTHOP NEXTHOP NEXTHOP
VPN PREFIX PROTOCOL SUB TYPE IF NAME ADDR VPN TLOC IP COLOR ENCAP STATUS
---------------------------------------------------------------------------------------------------------------------------------------------
10 10.2.102.0/24 ospf IA ge0/2 10.3.102.1 - - - - F,S
10 10.3.102.0/24 ospf IA ge0/2 - - - - - -
10 10.60.1.1/32 ospf IA ge0/2 10.3.102.1 - - - - F,S
10 10.60.2.1/32 ospf IA ge0/2 10.3.102.1 - - - - F,S
10 10.60.3.1/32 ospf IA ge0/2 10.3.102.1 - - - - F,S
10 10.60.4.0/24 ospf E2 ge0/2 10.3.102.1 - - - - F,S
10 10.60.5.0/24 ospf E2 ge0/2 10.3.102.1 - - - - F,S
10 10.60.6.0/24 ospf E2 ge0/2 10.3.102.1 - - - - F,S
vEdge2-2#
and this is bgp
vEdge2-2# show bgp route
% No entries found.
vEdge2-2#
and also I am not receiving route on bgp on other side.
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