Está en la página 1de 3

(default user:Cisco pass:Cisco)

#NOTAS
######
Puedes usar el <tab> para autocompletar los comandos.
Usa <ctrl+z> para volver al modo basico.
No hace falta escribir el comando por completo, e.g: 'sh' en lugar de 'show'
Las mac de cisco empiezan por 00:10

#Interface Number
#################
Gi1/0/23: Switch 1 (por si estuvieran en clúster) boca 23, conexión a 1Gbps
Te2/1: Switch 2 boca 1, conexión a 10Gbps (TEngigabit).
Fa0/12: Switch 0 boca 12 conexión 100Mbps (FAstethernet).
Po1: Es un Etherchannel, tendrás que usar 'sh etherchannel summary'
Por norma general, los switches se conectan por conexiones rápidas Gi o Te.
Los ordenadores se conectan por Fa.

#AYUDA
######
?
help
<comando> ?
show c?

#VER NÚMERO DE SERIE Y MODELO


#############################
show version

#INFORMACIÓN DE UNA IP - MAC


################################
show ip arp [ip]
show ip arp [mac]

#INFORMACIÓN DE UNA MAC (Nº DE BOCA)


####################################
show mac-address-table
show mac-address-table address 00:ab:cd:ef:55:66

#OTROS CISCOS DIRECTAMENTE CONECTADOS


#####################################
show cdp neighbors
show cdp neighbors [Iface#] detail
show cdp entry <neighbor-name>
show cdp entry <neightbor-name> protocol #Get only the IP
#<neighbor-name>: you can use * in the neighbor name, e.g: * or mypc* or myPC*
#CDP: Cisco Discovery Protocol

#INFORMACIÓN DE UN PUERTO (BOCA)


################################
show ip interface brief #todas las bocas
show interface [Gi1/24]
show ip interface [Gi1/24]
show ip interface [Gi1/24] brief

#INFORMACIÓN DE UN ETHERCHANNEL (Po1)


#####################################
show etherchannel summary

#MODIFICAR Y GUARDAR LA CONFIGURACIÓN


#####################################
> show running-configuration
> show startup-configuration
> copy running-configuration startup-configuration
# write memory #Copy running configuration to configuration file

#CAPTURAR TRÁFICO (PORT MIRRORING ~ SPAN ~ Switched Port ANalyzer)


##################################################################
1.Set the Source Interface/Vlan to SPAN from Global Configuration mode:
(config)# monitor session 1 source interface fa0/1 (both|rx|tx)
2.Set the Destination Interface for the SPAN
(config)# monitor session 1 destination interface fa0/2
3.Check the SPAN
# show monitor session 1 [detail]
4.End the SPAN
(config)# no monitor session 1

#CHANGE MODE
############
Prompts:
> (Exec/User mode)
# (Privileged Mode, can't make changes)
(config)# (Configuration Mode, can change global parameters)
(config-if)# (Interface Configuration Mode, can change
parameters of interface Fa1/12)

Commands:
>enable (To Privileged Mode)
#config terminal (To Configuration Mode)
(config)#interface Fa1/12 (To Interface Configuration)
(config)#router <protocol> (To Router Configuration Mode)
<ctrl+z> (Exit from config mode)
#disable (Exit from Enabled mode)

Configuration commands:
(config)# enable secret <passwd> #User Mode passwd
(config)# enable password <passwd> #Privileged Mode passwd

(config)# line vty 0 15


(config-line)# password <passwd> #VTY connection password
(config-line)# login

(config)# line con 0


(config-line)# password <passwd> #Console connection password

(config)# hostname <hostname>


(config-if)# ip address <ip> <netmask> #after (config)#interface vlan1
(config)# show config #get the ip
(config-if)# shutdown
(config-if)# no shutdown

#CONTINUOSLY PING (TO GET AN ALWAYS UPDATE ARP TABLE)


#####################################################
NOTE: in CiscoIOS < 12.3 use "rtr" command instead of "ip sla"
1st) Configure ping command:
ip sla 100
icmp-echo 172.16.1.2
timeout 500
frequency 3

2nd) Launch ping command:


ip sla schedule 100 life forever start-time now

3rd) Stop ping command:


no ip sla schedule 100

#NTP
####
ntp clock-period 17179864
ntp server 10.10.2.50
clock timezone CET 1
clock summer-time CET recurring last Sun Mar 2:00 last Sun Oct 3:00

#SSH
####
router(config)#hostname myrouter
myrouter(config)#ip domain-name mydomain.com
myrouter(config)#crypto key generate rsa general-keys modulus 2048
myrouter(config)#username myuser password 0 mypasswd
myrouter(config)#line vty 0 4
myrouter(config-line)#login local

#SPANNING-TREE
##############
(config)#spanning-tree vlan 1 priority <0-61440> (allowed only increments of 4096)
Default value is 32768. Lower value - higher priority to be the root bridge

#REINICIAR/REBOOT
#################
#reload <reason>

#OTHER COMMANDS
###############
show ip route
debug (MUCHO CUIDADO! uso intensivo de la CPU del cisco que puede colapsarlo)

#MORE HELP
##########
http://www.cisco.com/en/US/docs/ios/12_0/configfun/command/reference/frmonitr.html
#wp1019273
http://vampnight.spaces.live.com/blog/cns!7442CF3A1CD131E5!667.entry

También podría gustarte