Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NetworkAndCo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Lacherez
NetworkAndCo
Commits
3c7a7b80
Commit
3c7a7b80
authored
2 years ago
by
Al Massati Bilal
Browse files
Options
Downloads
Patches
Plain Diff
v7 04/01 final version
parent
457fd342
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/procedure-reseau.md
+79
-65
79 additions, 65 deletions
docs/procedure-reseau.md
with
79 additions
and
65 deletions
docs/procedure-reseau.md
+
79
−
65
View file @
3c7a7b80
...
...
@@ -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)
S
1#conf t
S
1(config)#interface gig 0/0.3
S
1(config-if)#encapsulation dot1Q 2
S
1(config-subif)#ip address 192.168.40.254 255.255.255.0
S
1(config-subif)#ip helper-address 192.168.40.150
S
1(config-subif)#no shutdown
S
1(config-subif)#exit
R
1#conf t
R
1(config)#interface gig 0/0.3
R
1(config-if)#encapsulation dot1Q 2
R
1(config-subif)#ip address 192.168.40.254 255.255.255.0
R
1(config-subif)#ip helper-address 192.168.40.150
R
1(config-subif)#no shutdown
R
1(config-subif)#exit
Création sous-interface VLAN 3 (ROUTEUR)
S
1(config)#interface gig 0/0.1
S
1(config-if)#encapsulation dot1Q 3
S
1(config-subif)#ip address 192.168.50.254 255.255.255.0
S
1(config-subif)#ip helper-address 192.168.40.150
S
1(config-subif)#no shutdown
S
1(config-subif)#exit
R
1(config)#interface gig 0/0.1
R
1(config-if)#encapsulation dot1Q 3
R
1(config-subif)#ip address 192.168.50.254 255.255.255.0
R
1(config-subif)#ip helper-address 192.168.40.150
R
1(config-subif)#no shutdown
R
1(config-subif)#exit
Création sous-interface VLAN 4 (ROUTEUR)
S
1(config)#interface gig 0/0.2
S
1(config-if)#encapsulation dot1Q 4
S
1(config-subif)#ip address 192.168.60.254 255.255.255.0
S
1(config-subif)#ip helper-address 192.168.40.150
S
1(config-subif)#no shutdown
S
1(config-subif)#exit
R
1(config)#interface gig 0/0.2
R
1(config-if)#encapsulation dot1Q 4
R
1(config-subif)#ip address 192.168.60.254 255.255.255.0
R
1(config-subif)#ip helper-address 192.168.40.150
R
1(config-subif)#no shutdown
R
1(config-subif)#exit
Activation interface gig0/0
S
1(config)#interface gig0/0
S
1(config-subif)#ip helper-address 192.168.40.150
S
1(config-subif)no shutdown
R
1(config)#interface gig0/0
R
1(config-subif)#ip helper-address 192.168.40.150
R
1(config-subif)no shutdown
Test :
...
...
@@ -138,65 +152,65 @@ Test :
## Configuration table de routage // procédure à faire sur le routeur 1
S
1#conf t
S
1(config)#router rip
S
1(config-router)#version 2
S
1(config-router)#network 10.0.0.0
S
1(config-router)#network 192.168.40.0
S
1(config-router)#network 192.168.50.0
S
1(config-router)#network 192.168.60.0
S
1(config-router)#exit
R
1#conf t
R
1(config)#router rip
R
1(config-router)#version 2
R
1(config-router)#network 10.0.0.0
R
1(config-router)#network 192.168.40.0
R
1(config-router)#network 192.168.50.0
R
1(config-router)#network 192.168.60.0
R
1(config-router)#exit
### Activation de l'interface gig0/1
S
1(config)#interface gig0/1
S
1(config-if)#ip address 10.0.0.1 255.0.0.0
S
1(config-if)#no shutdown
R
1(config)#interface gig0/1
R
1(config-if)#ip address 10.0.0.1 255.0.0.0
R
1(config-if)#no shutdown
## Configuration table de routage // procédure à faire sur le routeur 2 (deuxième groupe)
S
2#conf t
S
2(config)#router rip
S
2(config-router)#version 2
S
2(config-router)#network 10.0.0.0
S
2(config-router)#network 192.168.10.0
S
2(config-router)#network 192.168.20.0
S
2(config-router)#network 192.168.30.0
S
2(config-router)#exit
R
2#conf t
R
2(config)#router rip
R
2(config-router)#version 2
R
2(config-router)#network 10.0.0.0
R
2(config-router)#network 192.168.10.0
R
2(config-router)#network 192.168.20.0
R
2(config-router)#network 192.168.30.0
R
2(config-router)#exit
### Activation de l'interface gig0/1
S
2(config)#interface gig0/1
S
2(config-if)#ip address 10.0.0.2 255.0.0.0
S
2(config-if)#no shutdown
R
2(config)#interface gig0/1
R
2(config-if)#ip address 10.0.0.2 255.0.0.0
R
2(config-if)#no shutdown
## NAT
Sur routeur :
Sur routeur
1
:
S
1#conf t
S
1(config)#ip nat inside source static 192.168.10.254 10.0.0.1
R
1#conf t
R
1(config)#ip nat inside source static 192.168.10.254 10.0.0.1
### A faire sur chaque sous-interface Vlan:
S
1#conf t
S
1(config)#interface gig0/0.1
S
1(config-if)#ip nat inside
S
1#(config-if)#exit
R
1#conf t
R
1(config)#interface gig0/0.1
R
1(config-if)#ip nat inside
R
1#(config-if)#exit
S
1#conf t
S
1(config)#interface gig0/0.2
S
1(config-if)#ip nat inside
S
1#(config-if)#exit
R
1#conf t
R
1(config)#interface gig0/0.2
R
1(config-if)#ip nat inside
R
1#(config-if)#exit
S
1#conf t
S
1(config)#interface gig0/0.3
S
1(config-if)#ip nat inside
S
1#(config-if)#exit
R
1#conf t
R
1(config)#interface gig0/0.3
R
1(config-if)#ip nat inside
R
1#(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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment