-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPE2_avec_comms.txt
175 lines (174 loc) · 2.98 KB
/
PE2_avec_comms.txt
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
!
! Last configuration change at 22:22:37 CET Mon Jun 7 2021
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname PE2
!
!!Configuration du routeur PE2. Il est directement connecté au routeur CE2 via un réseau d'interconnexion
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone CET 1 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!!Création de la VRF pour le site 2 du client 1. Les valeurs de RT concordent avec celles de la VRF
!! C1-site2 présentes sur le routeur distant PE1
ip vrf C1-site2
rd 700:2
route-target export 700:200
route-target import 700:200
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!!Declaration de l'interface pour le réseau d'interconnexion avec CE2 et identitié de service. Gestion de l'interface vers les routeurs P en activant mpls.
interface Loopback0
no shutdown
ip address 22.22.22.22 255.255.255.255
!
interface Loopback1
no shutdown
no ip address
!
!!Interface vers le backbone MPLS
interface Ethernet0/0
no shutdown
ip address 172.16.2.2 255.255.255.252
mpls ip
!
interface Ethernet0/1
no shutdown
ip vrf forwarding C1-site2
ip address 10.2.0.1 255.255.255.252
!
interface Ethernet0/2
no shutdown
no ip address
shutdown
!
interface Ethernet0/3
no shutdown
no ip address
shutdown
!
interface Serial1/0
no shutdown
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
no shutdown
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no shutdown
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no shutdown
no ip address
shutdown
serial restart-delay 0
!
!!!Protocole de routage backbone MPLS
router ospf 1
network 22.22.22.22 0.0.0.0 area 0
network 172.16.2.0 0.0.0.3 area 0
!
!!Protocole de routage présent sur le réseau d'interconnexion, permettant à la VRF C1-site2 de connaitre les réseau de CE2
!!(Rip V2)
router rip
!
address-family ipv4 vrf C1-site2
network 10.0.0.0
no auto-summary
version 2
exit-address-family
!
!!Mise en place de MP-BGP avec PE1 (seulement, car Hub & Spoke)
router bgp 700
bgp log-neighbor-changes
neighbor 11.11.11.11 remote-as 700
neighbor 11.11.11.11 update-source Loopback0
!
!!Instance permettant de négocier les labels entre VRF
address-family vpnv4
neighbor 11.11.11.11 activate
neighbor 11.11.11.11 send-community extended
exit-address-family
!
!!Instance permettant le transport les annonces de routage
address-family ipv4 vrf C1-site2
redistribute rip
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
!
end