!
hostname r1
password zebra
log file /tmp/r1-frr.log
!
interface r1-eth0
 ip address 10.0.1.1/24
 ip ospf hello-interval 1
 ip ospf dead-interval 4
!
interface r1-eth1
 ip address 10.0.20.1/24
 ip ospf hello-interval 1
 ip ospf dead-interval 4
!
interface r1-eth2 vrf neno
 ip address 10.0.30.1/24
 ip ospf hello-interval 1
 ip ospf dead-interval 4
!
ip forwarding
!
router ospf
  ospf router-id 10.0.255.1
  redistribute bgp
  network 10.0.1.0/24 area 0
  network 10.0.20.0/24 area 0
!
router ospf vrf neno
  ospf router-id 10.0.255.1
  redistribute bgp
  network 10.0.30.0/24 area 0
!
!
router bgp 99
  no bgp ebgp-requires-policy
  address-family ipv4 unicast
    redistribute connected
    redistribute ospf
    import vrf neno
  !
!
router bgp 99 vrf neno
  no bgp ebgp-requires-policy
  address-family ipv4 unicast
    redistribute connected
    redistribute ospf
    import vrf route-map rmap
    import vrf default
  !
!
!!!!!!!!!!!!!!!!!!!!!
! VRFs neno and ray subnets
ip prefix-list nets seq 5 permit 10.0.3.0/24
ip prefix-list nets seq 10 permit 10.0.30.0/24
ip prefix-list nets seq 15 permit 10.0.4.0/24
ip prefix-list nets seq 20 permit 10.0.40.0/24
ip prefix-list nets seq 25 deny any
!
route-map rmap permit 10
  match ip address prefix-list nets
  exit
!
