diff --git a/docs/procedure-reseau.md b/docs/procedure-reseau.md index 1abf7e97c8ee5ba94861ed1bbba4bf4b49104376..586aea68dc26fc4552a349b57e2adda71c4ed9da 100644 --- a/docs/procedure-reseau.md +++ b/docs/procedure-reseau.md @@ -22,10 +22,10 @@ Nommer switch S1(config)#exit S1# -Sécuriser avec mot de passe sur switch : +Sécuriser avec un mot de passe sur switch : S1#conf t - S1(config)#enable password "mot de passe" + S1(config)#enable password peter S1(config)#exit Création des VLANs: @@ -94,42 +94,56 @@ Configuration trunk inter-vlan : ## Routeur : +Nommer le routeur + + Router>enable + Router#conf t + Router(config)#hostname R1 + R1(config)#exit + R1# + +Sécuriser avec un mot de passe sur routeur : + + R1#conf t + R1(config)#enable password peter + R1(config)#exit + Creation sous-interface VLAN 2 (ROUTEUR) - S1#conf t - S1(config)#interface gig 0/0.3 - S1(config-if)#encapsulation dot1Q 2 - S1(config-subif)#ip address 192.168.40.254 255.255.255.0 - S1(config-subif)#ip helper-address 192.168.40.150 - S1(config-subif)#no shutdown - S1(config-subif)#exit + R1#conf t + R1(config)#interface gig 0/0.3 + R1(config-if)#encapsulation dot1Q 2 + R1(config-subif)#ip address 192.168.40.254 255.255.255.0 + R1(config-subif)#ip helper-address 192.168.40.150 + R1(config-subif)#no shutdown + R1(config-subif)#exit Création sous-interface VLAN 3 (ROUTEUR) - S1(config)#interface gig 0/0.1 - S1(config-if)#encapsulation dot1Q 3 - S1(config-subif)#ip address 192.168.50.254 255.255.255.0 - S1(config-subif)#ip helper-address 192.168.40.150 - S1(config-subif)#no shutdown - S1(config-subif)#exit + R1(config)#interface gig 0/0.1 + R1(config-if)#encapsulation dot1Q 3 + R1(config-subif)#ip address 192.168.50.254 255.255.255.0 + R1(config-subif)#ip helper-address 192.168.40.150 + R1(config-subif)#no shutdown + R1(config-subif)#exit Création sous-interface VLAN 4 (ROUTEUR) - S1(config)#interface gig 0/0.2 - S1(config-if)#encapsulation dot1Q 4 - S1(config-subif)#ip address 192.168.60.254 255.255.255.0 - S1(config-subif)#ip helper-address 192.168.40.150 - S1(config-subif)#no shutdown - S1(config-subif)#exit + R1(config)#interface gig 0/0.2 + R1(config-if)#encapsulation dot1Q 4 + R1(config-subif)#ip address 192.168.60.254 255.255.255.0 + R1(config-subif)#ip helper-address 192.168.40.150 + R1(config-subif)#no shutdown + R1(config-subif)#exit Activation interface gig0/0 - S1(config)#interface gig0/0 - S1(config-subif)#ip helper-address 192.168.40.150 - S1(config-subif)no shutdown + R1(config)#interface gig0/0 + R1(config-subif)#ip helper-address 192.168.40.150 + R1(config-subif)no shutdown Test : @@ -138,65 +152,65 @@ Test : ## Configuration table de routage // procédure à faire sur le routeur 1 - S1#conf t - S1(config)#router rip - S1(config-router)#version 2 - S1(config-router)#network 10.0.0.0 - S1(config-router)#network 192.168.40.0 - S1(config-router)#network 192.168.50.0 - S1(config-router)#network 192.168.60.0 - S1(config-router)#exit + R1#conf t + R1(config)#router rip + R1(config-router)#version 2 + R1(config-router)#network 10.0.0.0 + R1(config-router)#network 192.168.40.0 + R1(config-router)#network 192.168.50.0 + R1(config-router)#network 192.168.60.0 + R1(config-router)#exit ### Activation de l'interface gig0/1 - S1(config)#interface gig0/1 - S1(config-if)#ip address 10.0.0.1 255.0.0.0 - S1(config-if)#no shutdown + R1(config)#interface gig0/1 + R1(config-if)#ip address 10.0.0.1 255.0.0.0 + R1(config-if)#no shutdown ## Configuration table de routage // procédure à faire sur le routeur 2 (deuxième groupe) - S2#conf t - S2(config)#router rip - S2(config-router)#version 2 - S2(config-router)#network 10.0.0.0 - S2(config-router)#network 192.168.10.0 - S2(config-router)#network 192.168.20.0 - S2(config-router)#network 192.168.30.0 - S2(config-router)#exit + R2#conf t + R2(config)#router rip + R2(config-router)#version 2 + R2(config-router)#network 10.0.0.0 + R2(config-router)#network 192.168.10.0 + R2(config-router)#network 192.168.20.0 + R2(config-router)#network 192.168.30.0 + R2(config-router)#exit ### Activation de l'interface gig0/1 - S2(config)#interface gig0/1 - S2(config-if)#ip address 10.0.0.2 255.0.0.0 - S2(config-if)#no shutdown + R2(config)#interface gig0/1 + R2(config-if)#ip address 10.0.0.2 255.0.0.0 + R2(config-if)#no shutdown ## NAT - Sur routeur : + Sur routeur 1 : - S1#conf t - S1(config)#ip nat inside source static 192.168.10.254 10.0.0.1 + R1#conf t + R1(config)#ip nat inside source static 192.168.10.254 10.0.0.1 ### A faire sur chaque sous-interface Vlan: - S1#conf t - S1(config)#interface gig0/0.1 - S1(config-if)#ip nat inside - S1#(config-if)#exit + R1#conf t + R1(config)#interface gig0/0.1 + R1(config-if)#ip nat inside + R1#(config-if)#exit - S1#conf t - S1(config)#interface gig0/0.2 - S1(config-if)#ip nat inside - S1#(config-if)#exit + R1#conf t + R1(config)#interface gig0/0.2 + R1(config-if)#ip nat inside + R1#(config-if)#exit - S1#conf t - S1(config)#interface gig0/0.3 - S1(config-if)#ip nat inside - S1#(config-if)#exit + R1#conf t + R1(config)#interface gig0/0.3 + R1(config-if)#ip nat inside + R1#(config-if)#exit ### A faire sur l'interface extérieur routeur : - S1#conf t - S1(config)#interface GigaEthernet 0/1 - S1(config-if)#ip nat ouside - S1(config-if)#exit \ No newline at end of file + R1#conf t + R1(config)#interface gig0/1 + R1(config-if)#ip nat ouside + R1(config-if)#exit \ No newline at end of file