Rappel Cisco

Embed Size (px)

Citation preview

  • 7/29/2019 Rappel Cisco

    1/4

    o1

    1

    192.168.127

    22

    34

    416

    192.168.1.126D e r r ~ r e : A d r e s s e

    532

    664

    192.168.1.1Premire Adresse

    8 ' 72,56 128

    9512

    192.168.HJ

    So\Js Rseau

    10

    1024

    ~ a s q u e d ~ - s o u s r s ~ a . u et masque i ~ v e r s :h -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 - --- . -

    2 5 5 . 2 4 ~ 0 . 2 - . 255.252.0.0 255.254.0.0 255.255.0.0 255.25U2Jl,&/13 / 1 /1 5 /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 - - ' - '-------- '-- r /19 /20 /21 /22

    -J0.0.63.255' 0.0.31.255 0.0.15.255 0.0.7.255 0.0.3.255

    2 5 5 ~ 2 5 5 . 2 5 4 . 0 255.255.25O' 2 5 5 . 2 5 5 . 2 S S ~ 1 2 g 255.255.255.192 255.255.255.224/23 /24 /25 /26 /2 T

    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/24Nombre d'htes: 80 donc 27 =128 -+ 32 7 =25 -+ /25 Masque 255.255.255.128

  • 7/29/2019 Rappel Cisco

    2/4

    Configuration des Ij'ei'ip"hrigues de base:5wi.tchSwitch>enableSwitchltconf tEnter 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/noip domain-Iooku pSl(config)#line con 0Sl(config-line)#password [Pass]SI(config-line)#loginSI(config-line)!Iine vty a 4SI(config-line)/tpassword [Pass]Sl(config-line)#loginSl(config-line)/texitSI (config)#service pa ssword-encryption51(config)#intervlan [W]SI(config-if}#ip address [IP] [Masque]

    .SI(config-if}/tno shutdown ...S1(co.nfig-if)/texitSl(config)#ip @fault-gateway [Passerelle]SI(config)l/end51/t copy run startDestination filename [startup-config]?Building configurat ion ...[OK] 51#Router;Router>enableRouter/tconf terminaConfigurfng from t e r m i ~ a J , memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config}/thostname RIRl(config)#banner motd # [Texte] #Rl(conf ig)/tenable secret [pass]Rl(config)#no ip domain-IookupRl(config)#line con 0RI(config-li ne }#passw,o rd [Pass]Rl(confjg-line)#line vty 04Rl(config-Iine)#password [Pass]RI(config-li ne )#IoginRI(config-Iine}/texitRI (config)ltservice pa ssward-encrypt ionRl(config}#end%SYS-S-G9NFIGJ Configured from console by consoleRl#copy run start

    ..Rl#

  • 7/29/2019 Rappel Cisco

    3/4

    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 accessS 2 ( ~ o n f i g - i f ) # s w i t c h p o r t access vlan {W]52(config-if)#no shutdown52( config-if)#exitS2#copy run start

    Configuration du protocole STP :A faire pour chaque Vlan:S3#conf tEnter configuration commands, on"e per line. End with CNTL/Z.S3(config)#spanning-tree vlan {W] priority 4096S3(config)tfendS3#copy run startDestination filena me [startup-config]?Building configuration ... r{OK]53#

  • 7/29/2019 Rappel Cisco

    4/4

    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 pass53(config)#VTP password fPass]Setting device VLAN database passward ta pass53(config}#endS3#copy run start53#

    Mode client:Sl#conftSl(config)#Vtp mode client5etting device to VTP CLIENT mode.Sl(config)#vtp damain [Pass]Changing VTP domain name fram NULL to pass51(config)#vtp password [Pass]Setting device VLAN data base password to pa.ss51(config)#end51#copy run start51#

    configuration de l'agrgation:51#conftConfiguring 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 trunkS1(config-if-range}#switchport trunk native vian-[N0]SI(config-if-range)#no shutdown51(config-if-range)#endSl#copy run start

    Configuration des rseux locux virtuels:A faire pour chaque VLAN53#conftS3(canfig)#vlan [N"]S3(config-vlan)#name [Nom]53 (config-vian)#exit53# copy run start