Академический Документы
Профессиональный Документы
Культура Документы
ndice
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
Jorge Martins
Truques e Dicas..................................................................................................................................2
Portos de Alguns dos Servios mais Comuns ....................................................................................3
VLSM (Sub Class C) .........................................................................................................................3
Routers - Geral...................................................................................................................................3
Routers - Access Control Lists (ACLs) ............................................................................................3
Routers Rotas Estticas ...................................................................................................................4
Router RIP .........................................................................................................................................4
Router IGRP ......................................................................................................................................4
Router EIGRP ....................................................................................................................................4
Router OSPF ......................................................................................................................................5
Routers NAT e PAT........................................................................................................................6
Routers DHCP ................................................................................................................................7
Routers PPP ....................................................................................................................................7
Routers Frame-Relay ......................................................................................................................7
Routers SNMP ................................................................................................................................8
Switches Geral ................................................................................................................................8
Switch Port Security........................................................................................................................9
Switches - VLANs............................................................................................................................9
Anexo 1 Mapa para SubDiviso de uma Classe C........................................................................10
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
Jorge Martins
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
4. 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
{ip|icmp}
host
172.30.16.0
Jorge Martins
7. ROUTER 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
8. ROUTER IGRP
Configurar o protocolo
Warsaw(config)#router igrp [AS]
Warsaw(config-router)#network 192.168.2.0
9. ROUTER EIGRP
Incluir sub redes
R1(config-router)# network 192.168.10.4 0.0.0.3
Desligar a sumarizao automtica de rotas
router(config-router)# no auto-summary
Desligar as mensgens de warning
Router(config-router)# no eigrp log-neighbor-warnings
Ver a configurao do eigrp
R1# show ip eigrp interfaces [interface-id] [AS]
Ver a vizinhana de Routers
R1#show ip eigrp neighbors [interface-id]
Jorge Martins
eigrp
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
Jorge Martins
Jorge Martins
Jorge Martins
Amsterdam#configure terminal
Amsterdam(config)#interface serial 0
Amsterdam(config-if)#encapsulation frame-relay ietf
Amsterdam(config-if)#frame-relay lmi-type ansi
Amsterdam(config-if)#no shutdown
Amsterdam(config-if)#interface serial 0.102 point-to-point
Amsterdam(config-if)#ip address 192.168.4.1 255.255.255.0
Amsterdam(config-if)#frame-relay interface-dlci 102
Switch Frame-Relay
Router(config)#frame-relay switching
Router(config)#interface s0
Router(config-if)#no ip address
Router(config-if)#encapsulation frame-relay ietf
Router(config-if)#frame-relay lmi-type ansi
Router(config-if)#frame-relay intf-type dce
Router(config-if)#frame-relay route 100 interface s1 200
Router(config-if)#frame-relay route 101 interface s1 201
Router(config-if)#clockrate 56000
ou
Jorge Martins
dir flash:
rename flash:config.text flash:config.old
boot
Apagar a Tabela de Endereos MAC
ALSwitch#clear mac-address-table dynamic
Jorge Martins
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)