SlideShare une entreprise Scribd logo
1  sur  4
enable
conf t
hostname   BRANCH
enable secret class
line con 0
password cisco
login
logging sync
exec-timeout 0 0
line vty 0 4
password cisco
login
exit
no ip domain-lookup
banner motd #authorized acces only !#
service password-encryption



enable
conf t
hostname ASW2
enable secret class
line con 0
password cisco
login
logging sync
exec-timeout 0 0
line vty 0 15
password cisco
login
no ip domain-lookup
banner motd # AUTHORIZED ACCESS ONLY! #




show ip interface brief


conf t
interface range fa0/1-24
shutdown
interface range Gi1/1-2
shutdown


vlan   10
name   RESS-HUM
vlan   20
name   FINANCE
vlan   30
name   ING
vlan   40
name   STORAGE
vlan   50
name   WIFI
vlan   99
name   Gestion/Natif


switchport mode access
switchport port-security   maximum 1
switchport port-security violation shutdown
switchport port-security mac-address sticky
switchport port-security

interface fa0/2
switchport mode access
switchport access vlan 99
no shutdown
interface fa0/3
switchport mode access
switchport access vlan 40
no shutdown


interface fa0/10
switchport mode access
switchport access vlan 10
no shutdown
interface fa0/15
switchport mode access
switchport access vlan 20
no shutdown
interface fa0/20
switchport mode access
switchport access vlan 30
no shutdown



interface Vlan99
ip address 10.13.4.2 255.255.255.240
no shutdown
ip default-gateway 10.13.4.1

interface Vlan99
ip address 10.13.4.3 255.255.255.240
no shutdown
ip default-gateway 10.13.4.1

interface Vlan99
ip address 10.13.4.4 255.255.255.240
no shutdown
ip default-gateway 10.13.4.1

interface Vlan99
ip address 10.13.4.5 255.255.255.240
no shutdown
ip default-gateway 10.13.4.1

interface Vlan99
ip address 10.13.4.6 255.255.255.240
no shutdown
ip default-gateway 10.13.4.1




interface Gi1/1
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,30,40,50,99
switchport mode trunk
no shutdown

interface   Gi1/2
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,30,40,50,99
switchport mode trunk
no shutdown


interface FastEthernet0/1
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,30,40,50,99
switchport mode trunk
no shutdown

interface FastEthernet0/2
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20,30,40,50,99
switchport mode trunk
no shutdown




switchport   mode access
switchport   port-security maximum 1
switchport   port-security violation shutdown
switchport   port-security mac-address sticky
switchport   port-security




interface FastEthernet0/0
no ip address
no shutdown
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.13.0.1 255.255.255.0

interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.13.1.1 255.255.255.0

interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 10.13.2.1 255.255.255.0

interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 10.13.4.17 255.255.255.248

interface FastEthernet0/0.50
encapsulation dot1Q 50
ip address 10.13.3.1 255.255.255.0

interface FastEthernet0/0.99
encapsulation dot1Q 99
ip address 10.13.4.1 255.255.255.240


32768

switch(config)#spanning-tree   mode   rapid-pvst
switch(config)#spanning-tree   vlan   <num> priority <num>
switch(config)#spanning-tree   vlan   <num> root primary
switch(config)#spanning-tree   vlan   <num> root secondary
interface range fa 0/10 - 24
switchport mode access
spanning-tree portfast


show spanning-tree summary


vtp mode server
vtp domain BRANCH
vtp password


show vtp status


vtp mode client
vtp domain BRANCH
vtp password


show vtp status

Contenu connexe

Tendances

8 subredesssss
8 subredesssss8 subredesssss
8 subredessssssovon123
 
Basic Cisco Router config
Basic Cisco Router configBasic Cisco Router config
Basic Cisco Router configAndrew Spiker
 
Honeywell alarmnet-compatibility
Honeywell alarmnet-compatibilityHoneywell alarmnet-compatibility
Honeywell alarmnet-compatibilityAlarm Grid
 
Configuring the cisco switch with the cli based setup program
Configuring the cisco switch with the cli based setup programConfiguring the cisco switch with the cli based setup program
Configuring the cisco switch with the cli based setup program3Anetwork com
 
Switching and Port Security
  Switching and Port Security  Switching and Port Security
Switching and Port Securityusman19
 
Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer Selamet Hariadi
 
Configuration steps for the cisco 300 series switches v3
Configuration steps for the cisco 300 series switches v3Configuration steps for the cisco 300 series switches v3
Configuration steps for the cisco 300 series switches v3Conrad Cruz
 
CIsco ACL- Network and host security
CIsco ACL- Network and host securityCIsco ACL- Network and host security
CIsco ACL- Network and host securityShiv Koppad
 
Aeonmike pf clustering doc guide
Aeonmike pf clustering doc guideAeonmike pf clustering doc guide
Aeonmike pf clustering doc guideConrad Cruz
 
AWS VPC by hellocloud.io
AWS VPC by hellocloud.ioAWS VPC by hellocloud.io
AWS VPC by hellocloud.ioHello Cloud
 
How to configure Standard ACL for an ip address
How to configure Standard ACL for an ip addressHow to configure Standard ACL for an ip address
How to configure Standard ACL for an ip addresstcpipguru
 
T R O C A R I D U
T R O C A R  I D UT R O C A R  I D U
T R O C A R I D UFxx
 
Chapter10ccna
Chapter10ccnaChapter10ccna
Chapter10ccnarobertoxe
 
Acn Experiment No 3
Acn Experiment No 3Acn Experiment No 3
Acn Experiment No 3Garima Singh
 

Tendances (19)

8 subredesssss
8 subredesssss8 subredesssss
8 subredesssss
 
Vlans
VlansVlans
Vlans
 
Basic Cisco Router config
Basic Cisco Router configBasic Cisco Router config
Basic Cisco Router config
 
Prueba 2 2015
Prueba 2 2015Prueba 2 2015
Prueba 2 2015
 
Honeywell alarmnet-compatibility
Honeywell alarmnet-compatibilityHoneywell alarmnet-compatibility
Honeywell alarmnet-compatibility
 
Configuring the cisco switch with the cli based setup program
Configuring the cisco switch with the cli based setup programConfiguring the cisco switch with the cli based setup program
Configuring the cisco switch with the cli based setup program
 
Solucion acl examenes
Solucion acl   examenesSolucion acl   examenes
Solucion acl examenes
 
Switching and Port Security
  Switching and Port Security  Switching and Port Security
Switching and Port Security
 
Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer
 
Configuration steps for the cisco 300 series switches v3
Configuration steps for the cisco 300 series switches v3Configuration steps for the cisco 300 series switches v3
Configuration steps for the cisco 300 series switches v3
 
Ejercicio 4 vtp
Ejercicio 4 vtpEjercicio 4 vtp
Ejercicio 4 vtp
 
CIsco ACL- Network and host security
CIsco ACL- Network and host securityCIsco ACL- Network and host security
CIsco ACL- Network and host security
 
Aeonmike pf clustering doc guide
Aeonmike pf clustering doc guideAeonmike pf clustering doc guide
Aeonmike pf clustering doc guide
 
AWS VPC by hellocloud.io
AWS VPC by hellocloud.ioAWS VPC by hellocloud.io
AWS VPC by hellocloud.io
 
Standard Access List
Standard Access ListStandard Access List
Standard Access List
 
How to configure Standard ACL for an ip address
How to configure Standard ACL for an ip addressHow to configure Standard ACL for an ip address
How to configure Standard ACL for an ip address
 
T R O C A R I D U
T R O C A R  I D UT R O C A R  I D U
T R O C A R I D U
 
Chapter10ccna
Chapter10ccnaChapter10ccna
Chapter10ccna
 
Acn Experiment No 3
Acn Experiment No 3Acn Experiment No 3
Acn Experiment No 3
 

Similaire à Cmd

Ccna lab manual 640 802
Ccna lab manual 640 802Ccna lab manual 640 802
Ccna lab manual 640 802manikkan
 
Switch olt config
Switch olt configSwitch olt config
Switch olt configkalel1486
 
Cumulus networks conversion guide
Cumulus networks conversion guideCumulus networks conversion guide
Cumulus networks conversion guideScott Suehle
 
Eincop Netwax Lab: Vlan and Trunking ii
Eincop Netwax Lab: Vlan and Trunking iiEincop Netwax Lab: Vlan and Trunking ii
Eincop Netwax Lab: Vlan and Trunking iiNetwax Lab
 
Huawei AR 150 Series.pptx
Huawei AR 150 Series.pptxHuawei AR 150 Series.pptx
Huawei AR 150 Series.pptxssuser03d8b1
 
Ccna 4 final lab switchi
Ccna 4 final lab switchiCcna 4 final lab switchi
Ccna 4 final lab switchiLeandro Uglar
 
Catalyst Smart Operations : Simplify Your Network
Catalyst Smart Operations : Simplify Your NetworkCatalyst Smart Operations : Simplify Your Network
Catalyst Smart Operations : Simplify Your NetworkCisco Russia
 
correction pratique eff 2021.docx
correction pratique eff 2021.docxcorrection pratique eff 2021.docx
correction pratique eff 2021.docxsalah734578
 
Packet Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 SwitchingPacket Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 SwitchingJohnson Liu
 
Fttx configuration-577 k-_ver_31072011
Fttx configuration-577 k-_ver_31072011Fttx configuration-577 k-_ver_31072011
Fttx configuration-577 k-_ver_31072011Igors Cardoso
 
labffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptxlabffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptxBinyamBekeleMoges
 

Similaire à Cmd (20)

Vo ip avanzado pt
Vo ip avanzado ptVo ip avanzado pt
Vo ip avanzado pt
 
Ccna lab manual 640 802
Ccna lab manual 640 802Ccna lab manual 640 802
Ccna lab manual 640 802
 
Switch olt config
Switch olt configSwitch olt config
Switch olt config
 
Cumulus networks conversion guide
Cumulus networks conversion guideCumulus networks conversion guide
Cumulus networks conversion guide
 
PROYECTO VLANS
PROYECTO VLANSPROYECTO VLANS
PROYECTO VLANS
 
Eincop Netwax Lab: Vlan and Trunking ii
Eincop Netwax Lab: Vlan and Trunking iiEincop Netwax Lab: Vlan and Trunking ii
Eincop Netwax Lab: Vlan and Trunking ii
 
Config sw
Config swConfig sw
Config sw
 
Huawei AR 150 Series.pptx
Huawei AR 150 Series.pptxHuawei AR 150 Series.pptx
Huawei AR 150 Series.pptx
 
Aruba mobility access switch useful commands v2
Aruba mobility access switch useful commands v2Aruba mobility access switch useful commands v2
Aruba mobility access switch useful commands v2
 
portfolio2
portfolio2portfolio2
portfolio2
 
Ccna 4 final lab switchi
Ccna 4 final lab switchiCcna 4 final lab switchi
Ccna 4 final lab switchi
 
Vlan
VlanVlan
Vlan
 
Catalyst Smart Operations : Simplify Your Network
Catalyst Smart Operations : Simplify Your NetworkCatalyst Smart Operations : Simplify Your Network
Catalyst Smart Operations : Simplify Your Network
 
correction pratique eff 2021.docx
correction pratique eff 2021.docxcorrection pratique eff 2021.docx
correction pratique eff 2021.docx
 
Switch security
Switch securitySwitch security
Switch security
 
Configuracao de switch
Configuracao de switchConfiguracao de switch
Configuracao de switch
 
Packet Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 SwitchingPacket Tracer Simulation Lab Layer 2 Switching
Packet Tracer Simulation Lab Layer 2 Switching
 
Day 14.2 configuringvla ns
Day 14.2 configuringvla nsDay 14.2 configuringvla ns
Day 14.2 configuringvla ns
 
Fttx configuration-577 k-_ver_31072011
Fttx configuration-577 k-_ver_31072011Fttx configuration-577 k-_ver_31072011
Fttx configuration-577 k-_ver_31072011
 
labffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptxlabffbhhhhjjjjjjjjj bnbbnv material.pptx
labffbhhhhjjjjjjjjj bnbbnv material.pptx
 

Cmd

  • 1. enable conf t hostname BRANCH enable secret class line con 0 password cisco login logging sync exec-timeout 0 0 line vty 0 4 password cisco login exit no ip domain-lookup banner motd #authorized acces only !# service password-encryption enable conf t hostname ASW2 enable secret class line con 0 password cisco login logging sync exec-timeout 0 0 line vty 0 15 password cisco login no ip domain-lookup banner motd # AUTHORIZED ACCESS ONLY! # show ip interface brief conf t interface range fa0/1-24 shutdown interface range Gi1/1-2 shutdown vlan 10 name RESS-HUM vlan 20 name FINANCE vlan 30 name ING vlan 40 name STORAGE vlan 50 name WIFI vlan 99 name Gestion/Natif switchport mode access switchport port-security maximum 1
  • 2. switchport port-security violation shutdown switchport port-security mac-address sticky switchport port-security interface fa0/2 switchport mode access switchport access vlan 99 no shutdown interface fa0/3 switchport mode access switchport access vlan 40 no shutdown interface fa0/10 switchport mode access switchport access vlan 10 no shutdown interface fa0/15 switchport mode access switchport access vlan 20 no shutdown interface fa0/20 switchport mode access switchport access vlan 30 no shutdown interface Vlan99 ip address 10.13.4.2 255.255.255.240 no shutdown ip default-gateway 10.13.4.1 interface Vlan99 ip address 10.13.4.3 255.255.255.240 no shutdown ip default-gateway 10.13.4.1 interface Vlan99 ip address 10.13.4.4 255.255.255.240 no shutdown ip default-gateway 10.13.4.1 interface Vlan99 ip address 10.13.4.5 255.255.255.240 no shutdown ip default-gateway 10.13.4.1 interface Vlan99 ip address 10.13.4.6 255.255.255.240 no shutdown ip default-gateway 10.13.4.1 interface Gi1/1 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,40,50,99 switchport mode trunk no shutdown interface Gi1/2
  • 3. switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,40,50,99 switchport mode trunk no shutdown interface FastEthernet0/1 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,40,50,99 switchport mode trunk no shutdown interface FastEthernet0/2 switchport trunk native vlan 99 switchport trunk allowed vlan 10,20,30,40,50,99 switchport mode trunk no shutdown switchport mode access switchport port-security maximum 1 switchport port-security violation shutdown switchport port-security mac-address sticky switchport port-security interface FastEthernet0/0 no ip address no shutdown interface FastEthernet0/0.10 encapsulation dot1Q 10 ip address 10.13.0.1 255.255.255.0 interface FastEthernet0/0.20 encapsulation dot1Q 20 ip address 10.13.1.1 255.255.255.0 interface FastEthernet0/0.30 encapsulation dot1Q 30 ip address 10.13.2.1 255.255.255.0 interface FastEthernet0/0.40 encapsulation dot1Q 40 ip address 10.13.4.17 255.255.255.248 interface FastEthernet0/0.50 encapsulation dot1Q 50 ip address 10.13.3.1 255.255.255.0 interface FastEthernet0/0.99 encapsulation dot1Q 99 ip address 10.13.4.1 255.255.255.240 32768 switch(config)#spanning-tree mode rapid-pvst switch(config)#spanning-tree vlan <num> priority <num> switch(config)#spanning-tree vlan <num> root primary switch(config)#spanning-tree vlan <num> root secondary
  • 4. interface range fa 0/10 - 24 switchport mode access spanning-tree portfast show spanning-tree summary vtp mode server vtp domain BRANCH vtp password show vtp status vtp mode client vtp domain BRANCH vtp password show vtp status