Resumo Dos Comandos CISCO IOS CCNA - v12
Resumo Dos Comandos CISCO IOS CCNA - v12
Resumo Dos Comandos CISCO IOS CCNA - v12
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
Truques e Dicas..................................................................................................................................2
Portos de Alguns dos Servios mais Comuns ....................................................................................3
VLSM (Sub Class C) .........................................................................................................................3
Sequncia de Teclas teis no CLI .....................................................................................................3
Routers - Geral...................................................................................................................................3
Routers Passwords de Acesso .........................................................................................................4
Routers Mensagem de Login ..........................................................................................................4
Routers Rotas Estticas ...................................................................................................................4
Routers - RIP......................................................................................................................................4
Routers - IGRP...................................................................................................................................5
Routers - EIGRP ................................................................................................................................5
Routers - OSPF ..................................................................................................................................6
Routers - Access Control Lists (ACLs) ............................................................................................7
Routers NAT e PAT........................................................................................................................7
Routers Servidor de DHCP .............................................................................................................7
Routers PPP ....................................................................................................................................8
Routers Frame-Relay ......................................................................................................................8
Routers Servidor SNMP..................................................................................................................9
Routers Cliente DNS.......................................................................................................................9
Switches Geral ................................................................................................................................9
Switches Spanning-Tree (STP) .....................................................................................................10
Switches Port Security ..................................................................................................................10
Switches - VLANs..........................................................................................................................10
Anexo 1 Mapa para SubDiviso de uma Classe C........................................................................12
1. TRUQUES E DICAS
Escape Sequence: <Ctrl><Shift><6> seguindo de x
Router# show ip interface brief
Desactivar o servio de procura remota de comandos desconhecidos
Router(config)# no ip domain lookup
Resolver o erro %Error opening tftp://255.255.255.255/network-confg (Socket error) no arranque dos
routers sem startup-config
Router(config)# no service config
Ver a descrio das interfaces
Router# show interface description
Dar um comando no modo EXEC a partir de qualquer nvel de configurao
Router(config-if)# do show ip int brief
Substituit a running-config pela configurao de um ficheiro na flash
R1# configure replace flash:file
Num sh run de diversos ecrans, ir para a seco desejada
/interface
Filtragem do contedo mostrado
R1# show run | [section|include] interface
Agendar um Reload em 3 minutes (til para a realizao de alteraes remotas)
R1# reload in 3
Cancelar um Reload agendado
R1# reload cancel
Sigla
Protoc.
FTP
TCP
TELNET TCP
SMTP
TCP
DNS
UDP
TFTP
UDP
HTTP
TCP
SNMP
UDP
RIP
UDP
BOOTP
UDP
Porto
21/22
23
25
53
69
80
161/162
520
67/68
254
/24
0
255
126
/25
128
127
62
/26
192
63
30
/27
224
31
14
/28
240
15
6
/29
248
7
2
/30
252
3
Funo
Move o cursor para o incio da linha
Move o cursor para o fim da linha
Rescreve a linha
Apaga a linha
Apaga uma palavra
Salta para o modo privilegiado, executando o comando actual
Salta para o modo privilegiado, sem executar o comando actual
5. ROUTERS - GERAL
Configurao das interfaces
Router(config)# int s0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# clock rate 56000
Router(config-if)# description Rede de Gesto
Router(config-if)# no shut
Ver se uma interface srie DCE ou DTE, e se tem relgio
Router# show controllers s0
Desactivar o teste de hosts ligados a uma porta Ethernet
Router# no keepalives
Definir a menagem do menu inicial
Router# banner motd # message #
Configurar um Servidor de DNS
Router(config)# ip name-server ip_address (garantir ligao ao server)
Router(config)# ip domain-lookup
console 0
password cisco
login
exit
9. ROUTERS - RIP
Configurar o protocolo
Warsaw(config)# router rip
Warsaw(config-router)# network 192.168.2.0
Para uma interface no anunciar rotas
Warsaw(config-router)# passive-interface s0
Propagar Rotas Estticas por RIP
Warsaw(config-router)# redistribute static
Propagar a rota por omisso
Warsaw(config-router)# default-information originate
Autenticao
R1(config)# key chain key-chain-name
R1(config-keychain)# key keyword
R1(config-keychain-key)# key-string key-string
R1(config-keychain-key)# exit
R1(config)# int interface-id
R1(config-if)# ip rip authentication mode md5
R1(config-if)# ip rip authentication key-chain key-chain-name
"
10.ROUTERS - IGRP
Configurar o protocolo
Warsaw(config)# router igrp [AS]
Warsaw(config-router)# network 192.168.2.0
AS network-address
ospf process-id
network 192.168.1.128 0.0.0.63 area 0
network 192.168.15.0 0.0.0.3 area 0
end
&
ietf broadcast
Switch Frame-Relay
R1(config)# frame-relay switching
R1(config)# interface s0
R1(config-if)# no ip address
R1(config-if)# encapsulation frame-relay ietf
R1(config-if)# frame-relay lmi-type ansi
R1(config-if)# frame-relay intf-type dce
R1(config-if)# frame-relay route 100 interface s1 200
R1(config-if)# frame-relay route 101 interface s1 201
R1(config-if)# clockrate 56000
ou
'
()
((
126
/25
128
127
62
/26
192
63
30
/27
224
31
14
/28
240
15
6
/29
248
7
.0 (1-6)
.0 (1-14)
.8 (9-14)
.0 (1-30)
.16 (17-22)
.16 (17-30)
.24 (25-30)
.0 (1-62)
.32 (33-38)
.32 (33-46)
.40 (42-46)
.32 (33-62)
.48 (49-54)
.48 (49-62)
.56 (57-62)
.0 (1-126)
.64 (65-70)
.64 (65-78)
.72 (73-78)
.64 (65-94)
.80 (81-86)
.80 (81.94)
.88 (89-94)
.64 (65-126)
.96 (97-102)
.96 (97-110)
.104 (105-110)
.96 (97-126)
.112 (113-118)
.112 (113-126)
.120 (121-126)
.128 (129-134)
.128 (129-142)
.136 (137-142)
.128 (129-158)
.144 (145-150)
.144 (145-158)
.152 (153-158)
.128 (129-190)
.160 (161-166)
.160 (161-174)
.168 (169-174)
.160 (161-190)
.176 (177-182)
.176 (177-190)
.184 (185-190)
.128 (129-254)
.192 (193-198)
.192 (193-206)
.200 (201-206)
.192 (193-222)
.208 (209-214)
.208 (209-222)
.216 (217-222)
.192 (193-254)
.224 (225-230)
.224 (225-238)
.232 (233-238)
.224 (225-254)
.240 (241-246)
.240 (241-254)
.248 (249-254)
2
/30
252
3
.0 (1-2)
.4 (5-6)
.8 (9-10)
.12 (13-14)
.16 (17-18)
.20 (21-22)
.24 (25-26)
.28 (29-30)
.32 (33-34)
.36 (37-38)
.40 (41-42)
.44 (45-46)
.48 (49-50)
.52 (53-54)
.56 (57-58)
.60 (61-62)
.64 (65-66)
.68 (69-70)
.72 (73-74)
.76 (77-78)
.80 (81-82)
.84 (85-86)
.88 (89-90)
.92 (93-94)
.96 (97-98)
.100 (101-102)
.104 (105-106)
.108 (109-110)
.112 (113-114)
.116 (117-118)
.120 (121-122)
.124 (125-126)
.128 (129-130)
.132 (133-134)
.136 (137-138)
.140 (141-142)
.144 (145-146)
.148 (149-150)
.152 (153-154)
.156 (157-158)
.160 (161-162)
.164 (165-166)
.168 (169-170)
.172 (173-174)
.176 (177-178)
.180 (181-182)
.184 (185-186)
.188 (198-190)
.192 (193-194)
.196 (197-198)
.200 (201-202)
.204 (205-206)
.208 (209-210)
.212 (213-214)
.216 (217-218)
.220 (221-222)
.224 (225-226)
.228 (229-230)
.232 (233-234)
.236 (237-238)
.240 (241-242)
.244 (245-246)
.248 (249-250)
.252 (253-254)