[c-nsp] Help on redistribute OSPF/BGP

Muhammad Atif Jauhar atif.jauhar at gmail.com
Thu Aug 30 12:37:53 EDT 2012


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