Zusammenfassung der Ressource
Comandos
Config Router
Anmerkungen:
- en
conf t
hostname R1
en secret class
line con 0
password cisco
login
exit
line vty 0 4
password cisco
login
exit
service password-encryption
banner motd #Authorization Access Only!#
exit
copy running-config start-config
- Show
- #show ip interface brief
- Visualizar tabela roteamento
#show ip route
- #show version
- #show interfaces
- #show interface gigabitEthernet 0/0
- R1# show flash
- Router# show startup-config
- R1# show arp
- R1#show protocols
- R1#show cdp neighbors
- R1#show cdp neighbors details
- Config Básicas
- Comando p/ config Router
- Router# configure terminal
- Router (config)# hostname R1
- Config. senha "class"
como secreta
- R1(config)# enable secret class
- Config. "cisco" senha linha
console e exija login
- R1(config)# line console 0
- R1(config-line)# password cisco
- R1(config-line)# login
- Config. vty senha "cisco" e exija login
- R1(config)# line vty 0 4
- R1(config-line)# password cisco
- R1(config-line)# login
- Criptografe todas as
senhas texto claro
- R1(config)# service password-encryption
- Config. Banner
- R1(config)# banner motd #Authorization Access Only!#
- Salva a
configuração
- R1# copy running-config start-config
- Copy
- R1# copy startup-config flash
- Config. Interface
IPv4
- R1(config)#int g0/1
- R1(config-if)# ip add 192.168.1.1 255.255.255.0
- R1(config-if)# description link to LAN-10
- R1(config-if)# no shut
- R1(config)#int loopback 0 <IP> <MASK>
- DCE clock rate default
- #clock rate 64000
- IPv6
Anmerkungen:
- R1(config)# interface g0/0
R1(config-if)# ipv6 address 2001:db8:acad:a::1/64
R1(config-if)# no shutdown
R1(config-if)# interface g0/1
R1(config-if)# ipv6 address 2001:db8:acad:1::1/64
R1(config-if)# no shutdown
R1(config-if)# end
- permiti o roteador encaminhe pacotes
IPv6: R1(config)#ipv6 unicast-routing
- Conf. Int:
- R1(config-if)#ipv6 address 2001:DB8:1:1::1/64
- R1(config-if)#ipv6 address FE80::1 link-local
- Comandos Segurança
- #security passwords min-length 8
- #login block-for 120 attempts 3 within 60
- #line vty 0 4
#exec-timeout
10
- Hora
- R1#clock set 08:10:00 dia 01 January 2016
- SSH
Anmerkungen:
- figure o roteador para o acesso SSH
#hostname R1
#ip domain-name ccna-lab.com
#crypto key generate rsa
#username admin privilege 15 secret adminpass
#line vty 0 4
#transport input ssh
#login local
- #hostname R1
- #ip domain-name ccna-lab.com
- #crypto key generate rsa
- #username admin privilege 15 secret adminpass
- #line vty 0 4
- #transport input ssh
- #login local
- DNS pesquisa
- Ctrl + Shift + 6
- #no ip domain-lookup
- Modo ROMmon
Anmerkungen:
- Recuperar Senha Router CISCO
Packet Tracer
Desliga/liga o Router
ctrl + pause (break)
rommon 1 > confreg 0x2142 (ignora a RAM)
rommon 2 > reset
Iniciado o Router:
Router>conf t
Router(config)#config-register 0x2102 (lê config)
Router# copy startup-config running-config
Apos isto configurar as senhas e up as interfaces.
- ctrl + pause ######
- CDP
- R1(config)#no cdp run
- R1(config-if)#no cdp enable