blob: 995958132c93828772e3b83e2087e81d20e26af5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
!
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
!
|