[c-nsp] Help on redistribute OSPF/BGP

Olivier CALVANO o.calvano at gmail.com
Thu Aug 30 13:03:45 EDT 2012


Hi

Thanks,

i have added this into my router:

router bgp xxxx
 address-family ipv4 vrf MYVRF
  redistribute connected
  redistribute static
  redistribute ospf 1 vrf MYVRF match nssa-external 1 nssa-external 2
  no synchronization
 exit-address-family

and now, i see into my BGP the two prefixe:

7301#sh ip route vrf MYVRF ospf

Routing Table: MYVRF

     172.16.0.0/16 is variably subnetted, 17 subnets, 2 masks
O N1    172.16.7.29/32
           [110/40] via 172.16.11.94, 01:37:04, GigabitEthernet0/1.713
O N1    172.16.7.30/32
           [110/40] via 172.16.1.94, 01:38:42, GigabitEthernet0/1.713

on a other router of the MPLS IP VPN:

7204#sh ip route vrf MYVRF | inc /32
B       172.16.7.29/32 [200/40] via xx.xx.xx.xx, 00:07:04
B       172.16.7.30/32 [200/40] via xx.xx.xx.xx, 00:07:04


but now i want sent the BGP routes into the OSPF, i have added:

router ospf 1 vrf MYVRF
 router-id 172.16.1.254
 log-adjacency-changes
 area 30 nssa no-redistribution
 redistribute bgp xxxx subnets



but that's don't sent BGP route to the neighbor ospf (or i don't have
the good command for see
what route are sent ;=>)

Olivier



2012/8/30 Muhammad Atif Jauhar <atif.jauhar at gmail.com>:
> Hi Olivier,
>
> 1. To redistribute OSPF routes in BGP
>      router bgp my-as-number
>      address-family ipv4 vrf MYVRF
>              redistribute ospf 1 vrf MYVRF
>
> 2. To redistribute BGP routes in OSPF
>      router ospf 1 vrf MYVRF
>              redistribute bgp my-as-number subnets
>
> Hopefully this my answer your queries.
>
> Regards,
> Atif.
> On Thu, Aug 30, 2012 at 7:11 PM, Olivier CALVANO <o.calvano at gmail.com>
> wrote:
>>
>> Hi
>>
>> i request a small help on my cisco 7301 because i never used OSPF.
>>
>> I have a OSPF session into a vrf:
>>
>>
>> router ospf 1 vrf MYVRF
>>  router-id 172.16.1.254
>>  log-adjacency-changes
>>  area 30 nssa no-redistribution
>>
>> on the same router, i have my full BGP on my AS:
>>
>> router bgp my-as-number
>>  address-family ipv4 vrf MYVRF
>>   redistribute connected
>>   redistribute static
>>   no synchronization
>>  exit-address-family
>>
>>
>> i see the route:
>>
>> 7301#sh ip route vrf MYVRF
>>
>> Routing Table: MYVRF
>> 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 xx.xx.xx.xx to network 0.0.0.0
>>
>>      172.16.0.0/16 is variably subnetted, 17 subnets, 2 masks
>> B       172.16.6.248/32 [200/0] via 78.41.184.12, 01:30:23
>> B       172.16.6.251/32 [200/0] via 78.41.184.12, 01:30:23
>> B       172.16.6.12/30 [200/0] via 78.41.184.12, 01:30:23
>> O N1    172.16.7.29/32
>>            [110/40] via 172.16.1.94, 00:48:50, GigabitEthernet0/1
>> O N1    172.16.7.30/32
>>
>>
>>
>> What is the configuration
>>
>> for sent to the OSPF all routes of BGP and same, sent into the bgp all
>> route of the OSPF ?
>>
>>
>> thanks
>> Olivier
>> _______________________________________________
>> cisco-nsp mailing list  cisco-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-nsp
>> archive at http://puck.nether.net/pipermail/cisco-nsp


More information about the cisco-nsp mailing list