Escolar Documentos
Profissional Documentos
Cultura Documentos
1/12
2. Comandos show
2.1. Visualizar configurao corrente
=> Modo enable
Router# show running-config
2.2. Visualizar configurao de inicializao
=> Modo enable
Router# show startup-config
2.3. Visualizar resumo das interfaces IP
=> Modo enable
Router# show ip interface brief
2.4. Visualiza configurao de boot
=> Modo enable
Router# show startup-config
2/12
3. Hostname
=> Modo enable
Router# config t
Router(config)# hostname Todd
Todd(config)# hostname Atlanta
Atlanta(config)#
4. Description de interfaces
=> Modo enable
Router# config t
Router(config)# int f0/1
Router(config-if)# description Link-To-WAN
5. Endereo IP
=> Modo enable
Router# config t
Router(config)# int f0/1
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shut
de destino
rede de destino
7. Banner
=> Modo enable
Router# config t
Router(config)# banner motd #
Enter the text followed by the '#' to finish
Esse e o meu primeiro banner.
#
3/12
9. SENHAS
9.1. DEFINIR SENHAS
9.1.1. Modo USER (telnet e console)
- console
Router# config t
Router(config)# line console 0
Router(config-line)# password Entrar
Router(config-line)# login
- telnet
Router# config t
Router(config)# line vty 0 4
Router(config-line)# password Entrar
Router(config-line)# login
9.1.2. Modo ENABLE
Router(config)# enable secret Cisco
4/12
ou
switch(config)# vlan 2
switch(config-vlan)# name Adm
switch(config)# vlan 3
switch(config-vlan)# name Com
ou
11.2. VTP
=> Modo enable
switch(vlan)# vtp domain LAB
switch(vlan)# vtp server
11.4. Definir modo ACCESS PORT (associar uma vlan a uma porta)
=> Modo Interace
switch# config t
switch(config)# int f0/1
switch(config-if)# description PC-1
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan 3
5/12
15. RIP
O comando router rip habilita o RIP como o protocolo de roteamento. Comando semelhante usado para habilitar outros
protocolos de roteamento.
O comando network x.x.x.x usado em seguida para divulgar as rotas relativas aquela rede
15.1. Habilitar o RIP
=> Modo Global
Router# config t
Router(config)# router rip
Router(config-router)# network 172.16.0.0
15.2. Desabilitar o RIP
=> Modo Global
Router# config t
Router(config)# no router rip
16. IGRP
16.1. Habilitar o IGRP
=> Modo Global
Router# config t
Router(config)# router igrp <n>
Router(config-router)# network 192.168.1.0
16.2. Desabilitar o IGRP
=> Modo Global
Router# config t
Router(config)# no router igrp <n>
6/12
17. EIGRP
17.1. Habilitar o EIGRP
=> Modo Global
Router# config t
Router(config)# router eigrp <n>
Router(config-router)# network 192.168.10.0
Router(config-router)# network 192.168.20.0
Router(config-router)# exit
17.2. Desabilitar o EIGRP
=> Modo Global
Router# config t
Router(config)# no router eigrp <n>
Descrio
18. OSPF
18.1. Habilitar o OSPF
=> Modo Global
Router# config t
Router(config)# router ospf <n>
Router(config-router)# network 172.16.2.1 0.0.0.0 area 0
Router(config-router)# network 192.168.1.0 0.0.0.255 area 1
Router(config-router)# exit
Descrio
19. HDLC
=> Modo global
RouterA# config t
RouterA(config)# int s0
RouterA(config-if)# encapsulation hdlc
RouterA(config-if)# exit
7/12
20. PPP
20.1 Configurao
=> Modo global
Router(config)# int s0/0
Router(config-if)# ip address 10.1.1.1 255.255.255.252
Router(config-if)# encapsulation ppp
Router(config-if)# clock rate 64000 <---- valor em bps (DCE)
Router(config-if)# bandwidth 64
<---- valor em kbps (metrica de roteamento)
20.2 Autenticao
=> Modo global
R-01(config)#username R-02 password dois
R-01(config)#int s0/0
R-01(config-if)#ppp authentication chap
21. FRAME-RELAY
21.1. Single Interface
=> Modo global
R-01(config)# interface Serial1/0
R-01(config-if)# ip address 10.1.1.2 255.255.255.0
R-01(config-if)# encapsulation frame-relay
R-01(config-if)# frame-relay interface-dlci 201
21.2. Sub-interface (Multipoint)
=> Modo global
R-01(config)# interface Serial1/0
R-01(config-if)# no ip address
R-01(config-if)# encapsulation frame-relay
R-01(config)# interface Serial1/0.1 point-to-point
R-01(config-if)# ip address 10.1.1.1 255.255.255.0
R-01(config-if)# frame-relay interface-dlci 102
R-01(config)# interface Serial1/0.2 point-to-point
R-01(config-if)# ip address 10.2.2.1 255.255.255.0
R-01(config-if)# frame-relay interface-dlci 103
22. ACLs
22.1. Standard Access List
=> Modo global
Router# config t
Router(config)# access-list 1 deny host 172.16.48.15
Router(config)# access-list 1 permit any
Router(config)# interface f0/0
Router(config-if)# ip access-group 1 out
22.2. Extended Access List
=> Modo global
Router# config t
Router(config)# access-list 110 deny tcp any 172.16.48.0 0.0.15.255 eq 23
Router(config)# access-list 110 deny tcp any 172.16.192.0 0.0.63.255 eq 23
Router(config)# access-list 110 permit ip any any
Router(config)# interface f0/0
Router(config-if)# ip access-group 110 out
Router(config-if)# interface f0/1
Router(config-if)# ip access-group 110 out
8/12
24. NAT
24.1. NAT Esttico
Passo 1: Configurar as interfaces que estaro na parte interna do design do NAT usando o subcomando de
interface ip nat inside.
router# config t
router(config)# interface ethernet0/0
router(config-if)# ip address 10.1.1.3 255.255.255.0
router(config-if)# ip nat inside
Passo 2: Configurar as interfaces que estaro na parte externa do design do NAT usando o subcomando de
interface ip nat outside.
router# config t
router(config)# interface Serial0/0
router(config-if)# ip address 200.1.1.251 255.255.255.0
router(config-if)# ip nat outside
Passo 3: Configurar os mapeamentos estticos usando o comando global de configurao ip nat inside source
static inside-local inside-global.
router# config t
router(config)# ip nat inside source static 10.1.1.2 200.1.1.2
router(config)# ip nat inside source static 10.1.1.1 200.1.1.1
9/12
10/12
25. IPv6
25.1. Configurao esttica do endereo IPv6 em uma interface
=> Modo global
router# config t
router(config)# int f0/0
router(config-if)# ipv6 address 2001:3::1/64
router(config-if)# no shut
25.2. Configurao esttica no formato EUI-64 do endereo IPv6 em uma interface
=> Modo global
router# config t
router(config)# int f0/0
router(config-if)# ipv6 address 2001:3::/64 eui-64
router(config-if)# no shut
25.3. Configurao do RIPng
=> Modo global
router# config t
router(config)# ipv6 unicast-routing
router(config)# ipv6 router rip LanUniversity
router(config-rtr)# exit
router(config)# int f0/0
router(config-if)# ipv6 rip LanUniversity enable
router(config-if)# ^Z
25.4. Configurao do IPv6 NAT-PT
25.4.1. IPv4 => IPv6
Pool - nome: faixa-v6
Pool - endereos: de 2010::10/96 at 2010::20/96
ACL - nome: 1
ACL - regra: permitir rede 10.0.0.0/24
router# config t
router(config)# access-list 1 permit 10.0.0.0 0.0.0.255
router(config)# ipv6 nat v4v6 pool faixa-v6 2010::10 2010::20 prefix-length 96
router(config)# ipv6 nat v4v6 source list 1 pool faixa-v6
11/12
26.3. Ciscopedia
Ciscopedia uma dicionrio de comandos Cisco. Inclui informaes sobre onde, quando porque e como usar os
comando Cisco, alm de exemplos de configuraes.
12/12