blob: b02ae18fc1476be8aab6203e9414163926669090 (
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
64
65
66
67
68
69
70
71
72
73
74
75
|
!
hostname r4
!
interface r4-eth0
ip address 10.0.3.4/24
ip ospf cost 100
ip ospf hello-interval 1
ip ospf dead-interval 40
!
interface r4-eth1 vrf blue
ip address 10.0.40.4/24
ip ospf hello-interval 1
ip ospf dead-interval 40
!
interface r4-eth2 vrf green
ip address 10.0.94.4/24
ip ospf hello-interval 1
ip ospf dead-interval 40
!
router ospf
ospf router-id 10.0.255.4
distance 20
redistribute bgp route-map costplus
network 10.0.3.0/24 area 0
!
router ospf vrf blue
ospf router-id 10.0.255.4
distance 20
redistribute bgp route-map costplus
network 10.0.40.0/24 area 0
!
router ospf vrf green
ospf router-id 10.0.255.1
distance 20
redistribute bgp route-map costplus
network 10.0.94.0/24 area 0
!
router bgp 99
no bgp ebgp-requires-policy
address-family ipv4 unicast
redistribute connected
redistribute ospf route-map costplus
import vrf route-map rmap
import vrf blue
import vrf green
!
!
router bgp 99 vrf blue
no bgp ebgp-requires-policy
address-family ipv4 unicast
redistribute connected
redistribute ospf
import vrf route-map rmap
import vrf default
import vrf green
!
router bgp 99 vrf green
no bgp ebgp-requires-policy
address-family ipv4 unicast
redistribute connected
redistribute ospf
import vrf route-map rmap
import vrf default
import vrf blue
!
!
route-map rmap permit 10
set metric-type type-1
set metric +1
exit
!
route-map costplus permit 1
set metric-type type-1
set metric +1
exit
|