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
978e2f60
Commit
978e2f60
authored
2 years ago
by
Antonin Renier
Browse files
Options
Downloads
Patches
Plain Diff
V-finale-25/11
parent
058b5aa2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
configs/config_router
+0
-0
0 additions, 0 deletions
configs/config_router
procedure.md
+110
-102
110 additions, 102 deletions
procedure.md
with
110 additions
and
102 deletions
configs/config_
du_
router
→
configs/config_router
+
0
−
0
View file @
978e2f60
File moved
This diff is collapsed.
Click to expand it.
procedure.md
+
110
−
102
View file @
978e2f60
# Proc
e
dure
# Proc
é
dure
## Architecture :
## Architecture :
Routeur 1 (Interface GE 0/1) à Routeur 2( Interface GE 0/1)
Switch 1 ( interface fa0/48) à Routeur 1 (interface gig0/0)
Switch 1 ( interface GE 0/0 ) à Routeur 1 ( interface GE 0/0 )
Switch 2 ( interface GE 0/0 ) à Routeur 2 ( interface GE 0/0 )
Switch 2 ( interface fa0/48) à Routeur 2 (interface gig0/0)
Routeur 1 (interface gig0/1) à Routeur 2 (interface gig0/1)
## Switch :
## Switch :
...
@@ -18,147 +16,157 @@ Switching (Version : Switch 2960) :
...
@@ -18,147 +16,157 @@ Switching (Version : Switch 2960) :
Nommer switch
Nommer switch
hostname S1Adressage VLAN: //à faire pour chaque VLAN(exemple VLAN 3 ci-dessous) :
#conf t
(config)#hostname S1
conf t
S1(config)#exit
(config)interface vlan 3
S1#
(conf-if)ip address 192.168.50.3 255.255.255.0
exit
Sécurisé avec mot de passe sur switch :
Sécurisé avec mot de passe sur switch :
conf t
#conf t
(config)enable password "mot de passe"
(config)#enable password "mot de passe"
exit
(config)#exit
Création des VLANs:
Création VLAN 2:
#conf t
(config)#vlan 2
(config-vlan)#name Admin
(config-vlan)#exit
(
conf
ig)vlan 2
#
conf
t
(config
-
vlan
)name Admin
(config
)#
vlan
3
ex
it
(config-vlan)#name Comptabil
it
e
Adressage VLAN: //à faire pour chaque VLAN(exemple VLAN 3 ci-dessous) :
(config-vlan)#exit
conf t
#conf t
(config)interface vlan 3
(config)#vlan 4
(conf-if)ip address 192.168.50.3 255.255.255.0
(config-vlan)#name Production
exit
(config-vlan)#exit
Création VLAN 3:
(config) vlan 3
Adressage VLANs :
(config-vlan)name Comptabilite
exit
Création VLAN 4:
#conf t
(config)#interface vlan 2
(config-if)#ip address 192.168.40.3 255.255.255.0
(config-if)#exit
(config)vlan 4
#conf t
(config-vlan) name Production
(config)#interface vlan 3
exit
(config-if)#ip address 192.168.50.3 255.255.255.0
(config-if)#exit
#conf t
(config)#interface vlan 4
(config-if)#ip address 192.168.60.3 255.255.255.0
(config-if)#exit
Organisation interface vlan 2 :
Organisation interface vlan 2 :
conf t
#
conf t
(config)vlan 2
(config)
#
vlan 2
(config-vlan)interface fa 0/25
(config-vlan)
#
interface fa 0/25
(config-if-range)switchport acces vlan 2
(config-if-range)
#
switchport acces vlan 2
exit
(config)#
exit
Organisation interface vlan 3 :
Organisation interface vlan 3 :
conf t
#
conf t
(config)vlan 3
(config)
#
vlan 3
(config-vlan)interface range fa 0/1 - 12
(config-vlan)
#
interface range fa 0/1 - 12
(config-if-range)switchport acces vlan 3
(config-if-range)
#
switchport acces
s
vlan 3
exit
(config)#
exit
Organisation interface vlan 4 :
Organisation interface vlan 4 :
conf t
#
conf t
(config)vlan 4
(config)
#
vlan 4
(config-vlan)interface range fa 0/13 - 24
(config-vlan)
#
interface range fa 0/13 - 24
(config-if-range)switchport acces vlan 4
(config-if-range)
#
switchport acces
s
vlan 4
exit
(config)#
exit
Configuration trunk inter-vlan :
Configuration trunk inter-vlan :
conf t
#
conf t
(config)interface fa 0/48 1 (Interface GE 0/0) à Routeur
(config)
#
interface fa 0/48 1 (Interface GE 0/0) à Routeur
(config-if)
switchport mode trunk
(config-if)
#
switchport mode trunk
(config-if)no shutdown
(config-if)
#
no shutdown
exit
(config-if)#
exit
## Routeur :
## Routeur :
Creation sous-interface VLAN 2 (ROUTEUR)
Creation sous-interface VLAN 2 (ROUTEUR)
enable
>enable
conf t
#conf t
(config)interface gig 0/0.3
(config)#interface gig 0/0.3
(config-if)encapsulation dot1Q 2
(config-if)#encapsulation dot1Q 2
(config-if)ip address 192.168.40.254 255.255.255.0
(config-subif)#ip address 192.168.40.254 255.255.255.0
(config-if)no shutdown
(config-subif)#ip helper-address 192.168.40.150
exit
(config-subif)#no shutdown
(config-subif)#exit
Cr
e
ation sous-interface VLAN 3 (ROUTEUR)
Cr
é
ation sous-interface VLAN 3 (ROUTEUR)
enable
#conf t
conf
t
(
conf
ig)#interface gig 0/0.1
(config
)interface gig 0/0.1
(config
-if)#encapsulation dot1Q 3
(config-
if)encapsulation dot1Q 3
(config-
subif)#ip address 192.168.50.254 255.255.255.0
(config-if)ip address 192.168.
5
0.
254 255.255.255.
0
(config-
sub
if)
#
ip
helper-
address 192.168.
4
0.
15
0
(config-if)no shutdown
(config-
sub
if)
#
no shutdown
exit
(config-subif)#
exit
Cr
e
ation sous-interface VLAN 4 (ROUTEUR)
Cr
é
ation sous-interface VLAN 4 (ROUTEUR)
enable
#conf t
conf
t
(
conf
ig)#interface gig 0/0.2
(config
)interface gig 0/0.2
(config
-if)#encapsulation dot1Q 4
(config-
if)encapsulation dot1Q 4
(config-
subif)#ip address 192.168.60.254 255.255.255.0
(config-if)ip address 192.168.
6
0.
254 255.255.255.
0
(config-
sub
if)
#
ip
helper-
address 192.168.
4
0.
15
0
(config-if)no shutdown
(config-
sub
if)
#
no shutdown
exit
(config-subif)#
exit
Activation interface
Activation interface
gig0/0
interface giga 0/1
(config)#interface gig0/0
(config-if)no shutdown
(config-subif)#ip helper-address 192.168.40.150
(config-subif)no shutdown
Test :
Test :
Ping inter vlan
Ping inter vlan
## Configuration
inter-
routage // procédure à faire sur le routeur 1
## Configuration
table de
routage // procédure à faire sur le routeur 1
conf
ig
t
#
conf t
(config)router rip
(config)
#
router rip
(config-router)version 2
(config-router)
#
version 2
(config-router)network 10.0.0.0
(config-router)
#
network 10.0.0.0
(config-router)network 192.168.40.0
(config-router)
#
network 192.168.40.0
(config-router)network 192.168.50.0
(config-router)
#
network 192.168.50.0
(config-router)network 192.168.60.0
(config-router)
#
network 192.168.60.0
(config-router)exit
(config-router)
#
exit
(config)interface gig0/1
(config)
#
interface gig0/1
(config-if)ip address 10.0.0.1 255.0.0.0
(config-if)
#
ip address 10.0.0.1 255.0.0.0
(config-if)no shutdown
(config-if)
#
no shutdown
## Configuration
inter-
routage // procédure à faire sur le routeur 2
## Configuration
table de
routage // procédure à faire sur le routeur 2
(deuxième groupe)
conf
ig
t
#
conf t
(config)router rip
(config)
#
router rip
(config-router)version 2
(config-router)
#
version 2
(config-router)network 10.0.0.0
(config-router)
#
network 10.0.0.0
(config-router)network 192.168.10.0
(config-router)
#
network 192.168.10.0
(config-router)network 192.168.20.0
(config-router)
#
network 192.168.20.0
(config-router)network 192.168.30.0
(config-router)
#
network 192.168.30.0
(config-router)exit
(config-router)
#
exit
(config)interface gig0/1
(config)
#
interface gig0/1
(config-if)ip address 10.0.0.2 255.0.0.0
(config-if)
#
ip address 10.0.0.2 255.0.0.0
(config-if)no shutdown
(config-if)
#
no shutdown
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