You are on page 1of 15

Comandos Bsicos Cisco IOS XE

Preparado por LOGICALIS para

ENTEL Per

26/07/2015

Insert client logo here


If there is no client logo,
delete this area
Como ingresar por consola al
router

1.- Protocol Serial. Ver figura 1

2.- Port ( Inicio , Equipo , Propiedades, Administrador de dispositivos , Puertos ).

Figura 1

Logicalis 2015| 2
Figura 2

Logicalis 2015| 3
Como ingresar por telnet al
router
Configurar el protocolo Telnet y colocar la IP del equipo a conectar , para el ejemplo : 192.168.1.2.

Logicalis 2015| 4
Comandos Cisco IOS XE
Comando Modo No Privilegiado

Show versin

Ver modelo equipo


cisco ISR4331/K9 {1RU} processor with 1680894K/6147K bytes of memory.

Ver nmero de serie del equipo


Processor board ID FLM1920W0NN

Ver versin software del equipo


System image file is "bootflash:isr4300-universalk9.03.14.02.S.155-1.S2-std.SPA.bin"

Ver hace cuando el equipo esta encendido.


Router uptime is 59 minutes

Ver causa del ltimo reinicio. { Ejemplo de reinicio por enega }.


Last reload reason: PowerOn

Ver registro del router { permite ver en que modo el router bootea al encender , el valor correcto
es 0x2102 0x102

Configuration register is 0x2102

Comando Modo Privilegiado

Router> enable

Logicalis 2015| 5
Por default no pide password si estas en consola, si esta conectado por Telnet si solicita un password.

Ingresar a modo configuracin

Router#configure terminal
Luego de se aprecia lo siguiente :

Router{config}#
Crear un password modo enable

Router{config}#enable password {palabra }

Crear un password secreto al modo enable

Router{config}#enable secret {palabra }

Crear un usuario local

Router{config}#username {palabra } password {palabra }

Ejemplo :

Router{config}#username entel password entel

Logicalis 2015| 6
Como ver la configuracin del router
Router#show running-config

Como cambiar el nombre de un equipo


Router{config}#hostname {palabra }

Ver el estado de las interfaces de red del router { UP,


DOWN, IP ADDRESS }

Router#show ip interface brief

Ver la descripcin de las interfaces de red del router,


adicionalmente se ve el estado { UP/DOWN }

Router#show interfaces description

Ver el estado de una interface

Router#show interfaces { nombre de la interface }


Por ejemplo

Router#show interfaces GigabitEthernet0/0/0


GigabitEthernet0/0/0 is up, line protocol is up { Estado de Puerto capa 1 y line protocol Capa 2}

Logicalis 2015| 7
Hardware is ISR4331-3x1GE, address is 54a2.7430.f670 {bia 54a2.7430.f670}

Description: WIFI

Internet address is 192.168.1.2/24

MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive not supported

Full Duplex, 100Mbps, link type is auto, media type is RJ45 { Ver modo de operacin y velocidad del Puerto y
media type de interface ptica elctrica }

output flow-control is on, input flow-control is on

ARP type: ARPA, ARP Timeout 04:00:00

Last input 00:09:36, output 00:00:36, output hang never

Last clearing of "show interface" counters never

Input queue: 0/375/0/0 {size/max/drops/flushes}; Total output drops: 0

Queueing strategy: fifo

Output queue: 0/40 {size/max}

5 minute input rate 4000 bits/sec, 8 packets/sec { Trfico del puerto }

5 minute output rate 2000 bits/sec, 4 packets/sec

28858 packets input, 2055948 bytes, 0 no buffer

Received 114 broadcasts {0 IP multicasts}

0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored { Errores en el puerto, fsicos y/o lgicos }

0 watchdog, 209 multicast, 0 pause input

18199 packets output, 1476955 bytes, 0 underruns

0 output errors, 0 collisions, 1 interface resets { Errores en el puerto, fsicos y/o lgicos }

0 unknown protocol drops

0 babbles, 0 late collision, 0 deferred

1 lost carrier, 0 no carrier, 0 pause output

Logicalis 2015| 8
0 output buffer failures, 0 output buffers swapped out

Ingresar modo configuracin de una interface

Router{config}#interface { interface }
Router{config-if}

Ejemplo Configurar interface GigabitEthernet0/0/1


Router{config}#interface GigabitEthernet0/0/1

Ingresar la descripcin de una interface

Router{config-if}# description{ nombre }

Ingresar la velocidad de una interface

Router{config-if}#speed 100 { Puede ser 10 , 1000 }

Ingresar la modo de operacin de la interface

Router{config-if}#duplex full { Puede ser half-duplex }

Logicalis 2015| 9
Ingresar la direccin IP a la interface

Router{config-if}#ip address { direccin IP , mascara de red } Ejemplo :

Router{config-if}#ip address 3.3.3.3 255.255.255.0

Habilitar una interface

Router{config-if}#no shutdown

Ingresar modo automatico de operacin

Router{config-if}#negotiation auto

Retirar modo automatico de operacin

Router{config-if}#no negotiation auto

Logicalis 2015| 10
Configurar una interface con sub interfaces VLAN

Por ejemplo configurar la interface G0/0/1 con sub interfaces G0/0/1.1000, G0/0/1.2000, G0/0/1.3000
con Vlans 100, 200, 300.

ID : 1000, 2000, 3000


VLANs : 100, 200. 300
Direccin IP /Mascara de red : 1.1.1.1 / 24

Configure terminal

interface GigabitEthernet0/0/1.{ID INTERFAZ}


encapsulation dot1q {VLAN_VALUE}

ip address { direccin IP , mascara de red }


description {Nombre}

Ejemplo :

interface GigabitEthernet0/0/1.1000

description Gestion

encapsulation dot1Q 100


ip address 1.1.1.1 255.255.255.0

Logicalis 2015| 11
Como veo la tabla de rutas de un router

Router#show ip route

Como veo las VRF creadas en un router

Router#show ip vrf

Como veo la tabla de rutas de un router virtual

Router#show ip route vrf { nombre de la VRF } Por ejemplo si la vrf se llama Datos

Router#show ip route vrf Datos

Configurar Consola y Acceso Remoto por Telnet

1ero : Crear Usuario

Router{config}#username entel password entel

2do : Configurar lo siguiente :

Configure terminal

line vty 0
no activation-character

login local

transport preferred none

Logicalis 2015| 12
transport input all

stopbits 1

line vty 1 4
login local

transport input all


end

Grabar configuracin en el equipo

Router#copy running-config startup-config

Router#write

Como borro la configuracin de un equipo

Router#erase startup-config
Luego deben dar : Enter

Luego dar un reinicio del equipo


Router#reload

Luego dar : Enter

Logicalis 2015| 13
Como veo los Logs en el equipo

Router#show logging

Como realizo pruebas de conectividad

Router#ping { direccin IP }

Router#ping vrf { direccin IP }


Por ejemplo

Router#ping 192.168.1.2
Router#ping vrf Datos 172.16.1.2

Logicalis 2015| 14
Logicalis 2015| 15

You might also like