8/16/2019 Comandos Parcial 2
1/12
COMANDOS PARCIAL 2
1 COMANDOS CONFIGURACIÓN BÁSICA 1
2 COMANDOS IP 2
3 COMANDOS SHOW 3
4 COMANDOS CONFIGURACIÓN DE PUERTOS SWITCH 4
5 COMANDOS SEGURIDAD DE PUERTOS 56 COMANDOS VLAN 5
7 COMANDOS SSH 7
8 COMANDOS DHCP 10
COMANDOS IPV6 10
1 COMANDOS CONFIGURACIÓN BÁSICA
• C!"#$%&'(' )* "!+,') -)* S.$/0
S.$/00!"#$% !/"(+) S1
• A$%"(' 0!"/'()( -) C!"!*(
S10!"#$% *$") 0!"!*)
S10!"#$%*$") 9(.!'- 0$0!
S10!"#$%*$") *!%$"
• A$%"(' 0!"/'()( -) VT:
S10!"#$% *$") ;/< 15
S10!"#$%*$") 9(.!'- 0$0!
S10!"#$%*$") *!%$"
• A$%"(' 0!"/'()( -) E=EC P'$;$*)%$(-!
S10!"#$% )"(,*) )0')/ 0*(
• E"0'$9/(' 0!"/'()(
8/16/2019 Comandos Parcial 2
2/12
S10!"#$% )';$0) 9(.!'-)"0'?&)-( -)* DNS
R10!"#$% "! $9 -!+($"*!!@&9
• B("")' -) ("&"0$!
R10!"#$%,("")' +!/- R!&/)' -) 9'!9$)-(- 9'$;(-( 9'!$,$-! )* $"%')!
• L$+9$(' /(,*( -) -$')00$!") MAC
S2 0*)(' +(0 (--')/(,*) -
8/16/2019 Comandos Parcial 2
3/12
• C!"#$%&'(' IP
R10!"#$% $"/)'#(0) F(/E/)'")/ 1
R10!"#$%$# $9 (--') 1216811 255255255
R10!"#$%$# "! &/
3 COMANDOS SHOW
• M!/'(' -$')00$" F$0( -)* S.$/0
S1 !. $"/)'#(0) F1
• M!/'(' /(,*( -) -$')00$!") MAC
S2 !. +(0 (--')/(,*)
• SHOW VLAN
Depuración
8/16/2019 Comandos Parcial 2
4/12
Trunk
4 COMANDOS CONFIGURACIÓN DE PUERTOS SWITCHDuplex, seed, mdix auto
8/16/2019 Comandos Parcial 2
5/12
5 COMANDOS SEGURIDAD DE PUERTOS
-Seguridad de puertos
S1(conf!"inter#ace #0$1
S1(conf%i#!"s&itc'port mode access
S1(conf%i#!"s&itc'port port%securit
S1(conf%i#!"s&itc'port port%securit maximum 1
S1(conf%i#!"s&itc'port port%securit violation restrict
S1(conf%i#!"s&itc'port port%securit mac-address sticky dir-mac
S1(conf%i#!"exit
- Deshabilitar el resto de puertos
S1(conf!"inter#ace rane #0$5%24
S1(conf%i#%rane!"s'utdo&n
S1(conf%i#%rane!"exit
S1(conf!"inter#ace rane 1$1%2
S1(conf%i#%rane!"s'utdo&n
S1(conf%i#%rane!"exit
- Perímetro de PVLA ! Puerto protegido
8/16/2019 Comandos Parcial 2
6/12
6 COMANDOS VLAN
Si&tc'port, mode )ccess, )ccess *lan, s'o& *lan inter#aces
+rear *arias -)./ S1(config)# vlan 100,102,105-107
8/16/2019 Comandos Parcial 2
7/12
"LA#" $%&#AL
8/16/2019 Comandos Parcial 2
8/12
7 COMANDOS SSH
-#on'guraci(n pool)vlan*
s1(conf!"ipdhcp excluded-address 222222222223
s1(conf!"ipdhcp pool pool-vlan*
s1(d'cp%conf!"de+ault-router 222222222254
s1(d'cp%conf!"dns-server 222222222222
s1(d'cp%conf!"net,ork 2222222220 2552552550
s1(d'cp%conf!"exit
-#on'guraci(n VLA * y
s1(conf!"inter#ace *lan2
s1(conf%i#!"ip address 2222222221 2552552550
s1(conf%i#!"description SV. de la -). 2
s1(conf%i#!"no s'utdo&n
s1(conf%i#!"exit
- De'nir inter+aces para las VLA
s1(conf!"inter#ace rane #a 0$10%1
s1(conf%i#%rane!"s,itchport access vlan
-.%5%+).6D/ nter#ace lan3, c'aned state to up
s1(conf%i#%rane!"description 8uerto de la -). 3
s1(conf%i#%rane!"no s'utdo&n
8/16/2019 Comandos Parcial 2
9/12
-#on'gurar SS/ 0Secci(n **1* de #.S#&2
s1"sho, ipssh
s1(conf!"ip domain-name universalcom
s1(conf!"crypto key generate rsa
T'e name #or t'e kes &ill 9e/ s1uni*ersalcom
+'oose t'e si:e o# t'e ke modulus in t'e rane o# 3;0 to 204< #or our
6eneral 8urpose es +'oosin a ke modulus reater t'an 512 ma take
a #e& minutes
o& man 9its in t'e modulus =512>/ 13*4
6eneratin 1024 9it ?S) kes, kes &ill 9e non%exporta9le=@>
s1(conf!"username admin pass,ord ccna
Amar 1 0/31/5
8/16/2019 Comandos Parcial 2
10/12
s1Fen
8ass&ord/ (cisco!
s1"
-#on'guraci(n router para comunicar VLA * y VLA
?1(conf!"inter+ace +a373
?1(conf%i#!"ip address **********54 *55*55*553
?1(conf%i#!"description a 'acia la -). 2
?1(conf%i#!"no s'utdo&n
?1(conf%i#!"exit
-8a9ar archivos con servidor con $:$P
s1"copy t+tp;
8/16/2019 Comandos Parcial 2
11/12
8 COMANDOS DHCP
COMANDOS IPV6
nicast global
?1(conf!" inter#ace 0$0
?1(conf%i#!" ip*; address 2001/d9
8/16/2019 Comandos Parcial 2
12/12