Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

OSPF to redistribute B-type connected

I have some catalysts switches and need to tune one of them (switch A) for following environment.
Switch A has 2 vrfs, one to connect to other catalysts (vpn_rt) and one to route local subnets (vpn_common). Route leaking is made by bgp.

router bgp 65535
 bgp log-neighbor-changes
 address-family ipv4 vrf vpn_common
  redistribute connected
 address-family ipv4 vrf vpn_rt
  redistribute connected
  redistribute ospf 1730

Inter-catalysts connection is made with OSPF turned on.

router ospf 1730 vrf vpn_rt
 redistribute static
 network area

vpn_common contains one subnet, vpn_rt has route to this subnet:

 sh ip route vrf vpn_rt | b 59 is variably subnetted, 2 subnets, 2 masks
B is directly connected (vpn_common), 1d00h, Vlan59
L is directly connected, Vlan59

I want catalyst A to tell another catalyst that is available via A, but I have no idea how do I redistribute L-type route. Any help is appreciated.

Everyone's tags (1)
Cisco Employee

Hi, I dont have concrete



I dont have concrete update on this, but sharing my initial analysis. Router is not advertising with RD of vrf CUST-B, though route is there is bgp vpnv4 table. Now to resolve your issue, would like to understand your design. Why we are using two vrf? is it mandatory that we advertise prefix from second vrf (vpn_rt). Can not we advertise route directly from vpn_common.


I tried to configure two vrf on a router CUST-A and CUST-B.

CE1----- CUST-A

                                                                   \ PE1 ----mbgp--------------PE2


CE2 ---- CUST-B


when we do vrf leaking by importing RT of CUST-A on vrf CUST-B on PE1, we see below two routes in vpnv4 bgp table


R3#show ip b vpnv4 all
BGP routing table entry for 300:1:, version 5
Paths: (1 available, best #1, table CUST-A)
  Advertised to update-groups:
     1          5         
  Local from (
      Origin incomplete, metric 0, localpref 100, weight 32768, valid, sourced, best
      Extended Community: RT:300:1
      mpls labels in/out 31/nolabel(CUST-A)
BGP routing table entry for 300:2:, version 6
Paths: (1 available, best #1, table CUST-B)
  Not advertised to any peer
  Local, imported path from 300:1:  <<<<< this is imported from RD 300:1 (via CUST-A) from (
      Origin incomplete, metric 0, localpref 100, weight 32768, valid, external, best
      Extended Community: RT:300:1
      mpls labels in/out nolabel/nolabel(CUST-B)


So we have routes in vpnv4 bgp table with RD 300:2 (vrf cust-B) but it is not being advertised as locally imported


Ran debug bgp vpnv4 uni updates and see that route with RD 300:2 is skipped

BGP: TX VPNv4 Unicast Wkr global 4 Cur Processing.
BGP: TX VPNv4 Unicast Wkr global 4 Cur Attr change from 0x0 to 0x508E514.
BGP: TX VPNv4 Unicast Rpl global 4 1 Net 300:1: Set advertised bit (total 1).
BGP: TX VPNv4 Unicast Wkr global 4 Cur Net 300:1: Formatted.
BGP: TX VPNv4 Unicast Wkr global 4 Cur Net 300:2: Skipped.  <<<
BGP: TX VPNv4 Unicast Wkr global 4 Cur Replicating.
BGP: TX VPNv4 Unicast Wkr global 4 Cur Suspending (attr change), processed 1 attr(s), 1/2 net(s), 0 pos.


--Pls rate helpful posts--



New Member

Hello! Every catalyst used



Every catalyst used has some vrfs for customers subnets - different customers need different gateway. Interfaces connecting catalysts are using another vrf. Routes between vrfs are exchanged using BGP.

Every catalyst has a routing interface within same vlan - vlan20 (, links between catalists are trunks (vlan20 is allowed at trunks mentioned). OSPF proccess is running for (it's backbone area). One separate router advertises static routes for every OSPF user.

Currently redundancy (more links between catalysts) is served by MSTP. And we have big broadcast domain spanning whole enterprise (vlan20).


I am planning to change trunks between catalysts to separate routing interfaces and change MSTP-redundancy to some routing redundant features, but i've got a problem - catalyst should advertise route to his subnet by himself. Otherwise if advertising is made by separate router (current situation) I should advertise two routes at the same time and if one route fails no one has an idea about it. And I stumbled upon it - catalyst doesnt want to advertise route he got via bgp leaking. I think i'm missing some bgp tuning because it seems to be kinda easy - force OSPF to redistribute dynamic route.

Or maybe there is some other way to advertise redundant routes.

New Member

Tried adding:router bgp 65535

Tried adding:

router bgp 65535
 bgp redistribute-internal

No effect :(

CreatePlease to create content