-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIGW.txt
148 lines (147 loc) · 2.68 KB
/
IGW.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
!
! Last configuration change at 20:54:50 CET Wed Jun 9 2021
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname IGW
!!Configuration du PE permettant l'accès à internet pour les sites du client1. Ce routeur est directement connecté au réseau internet.
!
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
!
!
!
!!VRF qui va recevoir la route par défaut vers internet, et qui recevra une adresse grace au service DHCP du router "internet"
ip vrf internet
rd 700:700
route-target export 700:700
route-target import 700:700
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!Déclaration de l'identité de service, de l'interface connecté aux routeurs P (MPLS et négociation de label), et de l'interface recevant une adresse via DHCP
!!Mise en place du NAT
!!Inside : l'interface reliée au backbone MPLS
!!Outside : l'interface reliée à la VRF internet, et donc à internet
interface Loopback0
no shutdown
ip address 100.100.100.100 255.255.255.255
!
interface Loopback1
no shutdown
no ip address
!
interface Ethernet0/0
no shutdown
ip address 172.16.0.2 255.255.255.252
ip nat inside
ip virtual-reassembly in
mpls ip
!
interface Ethernet0/1
no shutdown
ip vrf forwarding internet
ip address dhcp
ip nat outside
ip virtual-reassembly in
!
interface Ethernet0/2
no shutdown
no ip address
shutdown
!
interface Ethernet0/3
no shutdown
no ip address
shutdown
!
!!Protocole de routage du bacbone MPLS
router ospf 1
network 100.100.100.100 0.0.0.0 area 0
network 172.16.0.0 0.0.0.3 area 0
!
!!Mise en place de MP-BGP avec PE1
router bgp 700
bgp log-neighbor-changes
neighbor 11.11.11.11 remote-as 700
neighbor 11.11.11.11 update-source Loopback0
!
address-family vpnv4
neighbor 11.11.11.11 activate
neighbor 11.11.11.11 send-community both
exit-address-family
!
!!Redistribution de la route par défaut obtenue grâce à DHCP
address-family ipv4 vrf internet
redistribute static
default-information originate
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!!Regle de translation d'adresse permettant de joindre internet
ip nat inside source list 10 interface Ethernet0/1 vrf internet overload
!
access-list 10 permit any
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
!
end