API Guide

Core 1 has both OSPF and BGP configured. Core 1 has OSPF neighbor adjacency with Core 2 and BGP neighbor adjacency with
BR. The iBGPtoOSPF prefix-list is configured and applied to a route-map. The match ip address prefix-list
iBGPtoOSPF command processes the iBGP-learned routes.
ip prefix-list iBGPtoOSPF seq 15 permit 192.168.100.0/24
route-map iBGPtoOSPF permit 20
match ip address prefix-list iBGPtoOSPF
!
interface ethernet1/1/1
no shutdown
no switchport
ip address 10.10.30.2/24
ip router ospf 10 area 0.0.0.0
!
interface ethernet1/1/2
no shutdown
no switchport
ip address 10.10.9.2/24
!
router ospf 10
router-id 2.2.2.2
redistribute bgp 20 route-map iBGPtoOSPF
!
router bgp 20
neighbor 10.10.9.1
remote-as 20
address-family ipv4 unicast
allowas-in 1
Configuration on Core 2
Core 2 has OSPF configured which forms neighbor adjacency with Core 1.
interface ethernet1/1/1
no shutdown
no switchport
ip address 10.10.30.3/24
ip router ospf 10 area 0.0.0.0
no shutdown
!
!
router ospf 10
router-id 3.3.3.3
Sample IPv6 configuration
The following sample topology has two switches, Core 1 and Core 2, that are connected to each other and share routes using
OSPF. A border router BR is connected to Core 1 and shares routes using BGP. Core 1 redistributes the routes that are learned
by iBGP to OSPF and shares to other routers. This network uses IPv6 addressing.
Configuration on BR
BR has BGP configured which forms BGP neighbor adjacency with Core 1.
interface Loopback0
ipv6 address 2020::1/64
!
interface ethernet1/1/1
no switchport
ip address 2030::1/64
!
!
address-family ipv6 unicast
router bgp 20
neighbor 2030::2 remote-as 20
Configuration on Core 1
604
Layer 3