Vous êtes sur la page 1sur 4

o

1 2
1
192.168.127
2
2
3
4
4
16
192.168.1.126

5
32
6
64
192.168.1.1
Premire Adresse
8' 7
2,56 128
9
512
192.168.HJ
So\Js Rseau
10
1024
et masque :
-L
->
255.0.00 255.128.0,0 255.192.0.0 - 255.224.0.0 255.240.0.0
/8 /9 _/10 /11 /12
0.255.255,255 0.1;;7.255.255 0.63.255.255 0.31.255.255
_ l----.
-
255.252.0.0 255.254.0.0 255.255.0.0 255.25U2Jl,&
/13

/15 /16 /17
J

0.7.255.255 0.3.255.255 0.1.255.25 0.0.255.255 0.0.127.255
-
-
..
255.255.192.0 255.255.224.0 255.255.240.0 255.255.248.0 255.255.2?2.0
/18
-
-
' -'--------'--
/19 /20 /21 /22
-J
0.0.63.255' 0.0.31.255 0.0.15.255 0.0.7.255 0.0.3.255
255.255.25O' 255.255.255.192 255.255.255.224
/23 /24 /25 /26 /2T
0.0.1.255 0.0.0.255 0.0.0.127: 0.0.0.63 0.0.0.31
255.255.255.240 255.255.255.248 255. 255c255c252 255.255.255.254 255.255.255.255
/28 /29 /30- /31 /32
0.0.0.15 0.0.0.7 0.0.0.3 0.0.0.0.0
Tableau biniare :
Calcul de masque:
Ip: 192.168.1.0/24
Nombre d'htes: 80 donc 2
7
=128 -+ 32 7 =25 -+ /25 Masque 255.255.255.128
Configuration des Ij'ei'ip"hrigues de base:
5wi.tch
Switch>enable
Switchltconf t
Enter configurationommands, one per line. End with CNTL/Z.
Switch('Cnfig}/thostname [Nom]
SI(config}ltbanner motd #"[texte] 1/.
Sl(config)ltenable secret [Pass ]
51(config)l/noi p domain-Iooku p
Sl(config)#line con 0
Sl(config-line)#password [Pass]
SI(config-line)#login
SI(config-line)!Iine vty a4
SI(config-line)/tpassword [Pass]
Sl(config-line)#login
Sl(config-line)/texit
SI (config)#service password-encrypt ion
51(config)#intervlan [W]
SI(config-if}#ip address [IP] [Masque]
.SI(config-if}/tno shutdown ...
S1(co.nfig-if)/texit
Sl(config)#ip @fault-gateway [Passerelle]
SI(config)l/end
51/t copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
51#
Router;
Router>enable
Router/tconf termina
Configurfng from memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config}/thostname RI
Rl(config)#banner motd # [Texte] #
Rl(config)/tenable secret [pass]
Rl(config)#no ip domain-Iookup
Rl(config)#line con 0
RI (config-li ne}#passw,ord [Pass]
Rl(confjg-line)#line vty 04
Rl(config-Iine)#password [Pass]
RI (config-li ne)#Iogin
RI (config-Iine}/texit
RI (config)ltservice passward-encrypt ion
Rl(config}#end
%SYS-S-G9NFIGJ Configured from console by console
Rl#copy run start
..Rl#
A faire pour chaque Vlan :' .
S2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#inter fa [W)
__ S2(config-if)#switchport mode access
access vlan {W]
52(config-if)#no shutdown
52( config-if)#exit
S2#copy run start
Configuration du protocole STP :
A faire pour chaque Vlan:
S3#conf t
Enter configuration commands, on"e per line. End with CNTL/Z.
S3(config)#spanning-tree vlan {W] priority 4096
S3(config)tfend
S3#copy run start
Destination filena me [startup-config]?
Building configuration... r
{OK]
53#
Configuration du protocole vrp:
Mode server :
53#conf t ~ ~ .
Entrconfiguration commands, one per line. End wTth CNTL/Z.
~ S3(config)#VTP mode server
- Deviee mode already VTP 5ERVER.
5-3(config)#V-TP domain fPass]
Changing VTP domain name from NUll=-to pass
53(config)#VTP password fPass]
Setting device VLAN database passward ta pass
53(config}#end
S3#copy run start
53#
Mode client:
Sl#conft
Sl(config)#Vtp mode client
5etting device to VTP CLIENT mode.
Sl(config)#vtp damain [Pass]
Changing VTP domain name fram NULL to pass
51(config)#vtp password [Pass]
Setting device VLAN database password to pa.ss
51(config)#end
51#copy run start
51#
configuration de l'agrgation:
51#conft
Configuring from terminal, memory, or n_etwork [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
51(canfig)#interface range fa[WJ - fa[W]
Sl(config-if-range}#switchpart mode trunk
S1(config-if-range}#switchport trunk nat ive vian-[N0]
SI(config-if-range)#no shutdown
51(config-if-range)#end
Sl#copy run start
Configuration des rseux locux virtuels:
A faire pour chaque VLAN
53#conft
S3(canfig)#vlan [N"]
S3(config-vlan)#name [Nom]
53 (config-vian)#exit
53# copy run start

Vous aimerez peut-être aussi