Sei sulla pagina 1di 6

TABLA DE COMANDOS PARA CONFIGURAR RUTERS Y REDES

COMANDOS
show versin config enable hostname enable secret line console password login exit line vty banner motd interface ip address description no shutdown clock rate copy runningconfig startupconfig show runningconfig

SINTAXIS
Router# show versin Router# config name Router>enable Router(config)# hostname name Router(config)# enable secret password Router(config)# line console numero de linea Router(config-line)# password password Router(config-line)# login Router(config-line)# exit Router(config)# line vty numero de linea Router(config)# banner motd # message # Router(config)# interface type number Router(config-if)# ip address address mask Router(config-if)# description description Router(config-if)# no shutdown Router(config-if)# clock rate numero Router# copy running-config startupconfig Router# show running-config

EJEMPLO
Nos muestra la versin del router donde estamos trabajando. Router# config t Router>enable Ruter # Router(config)# hostname Redes Redes(config)# Router(config)# enable secret clase Router(config)# line console 0 Router(config-line)# password cisco Router(config-line)# login (verifica contrasea) Router(config-line)# exit Router(config)# line vty 0 4 Router(config)# banner motd # Bienvenido a Redes # Router(config)# interface Serial0/0/ Router(config-if)# ip address 192.168.2.1 255.255.255.0 Router(config-if)# description Link to R2 Router(config-if)# no shutdown (Es como encender la interfaz) Router(config-if)# clock rate 64000 Router# copy running-config startup-config (guarda el running-config en el startup-config como archivo de configuracin permanente) Router# show running-config ! versin 12.3

show startupconfig

Router# show startup-config

show ip route

Router# show ip route

! hostname R1 ! interface FastEthernet0/0 description R1 LAN ip address 192.168.1.1 255.255.255.0 ! interface Serial0/0/0 description Link to R2 ip address 192.168.2.1 255.255.255.0 clock rate 64000 (Muestra la configuracin actual en ejecucin almacenada en la RAM) Router# show startup-config Using 728 bytes ! versin 12.3 ! hostname R1 ! interface FastEthernet0/0 description R1 LAN ip address 192.168.1.1 255.255.255.0 ! interface Serial0/0/0 description Link to R2 ip address 192.168.2.1 255.255.255.0 clock rate 64000 (Muestra el archivo de configuracin de inicio almacenado en la NVRAM). Router# show ip route Codes: C connected, S static, I IGRP, R RIP, M mobile, B BGP D EIGRP, EX EIGRP external, O OSPF, IA OSPF inter area N1 OSPF NSSA external type 1, N2 OSPF NSSA external type 2 E1 OSPF external type 1, E2 OSPF external type 2, E EGP i IS-IS, L1 IS-IS level-1, L2 IS-IS level-2, ia IS-IS inter area * - candidate default, U per-user static route, o ODR P periodic downloaded static route

Gateway of last resort is not set C C 192.168.1.0 / 24 is directly connected, FastEthernet0 / 0 192.168.2.0 / 24 is directly connected, Serial0 / 0 / 0

show interfaces

Router# show interfaces

(Muestra la tabla de enrutamiento que est usando el IOS actualmente para elegir el mejor camino hacia sus redes de destino) Router# show interfaces FastEthernet0 / 0 is up, line protocol is up (connected) Hardware is Lance, addres is 0007.eca7.1511 (bia 00e0.f7e4.e47e) Description: R1 LAN Internet address is 192.168.1.1 / 24 MTU 1500 bytes, BW 100000 kbit, DLY 100 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00, Last input 00:00:08, output 00:00:05, output hang never Last clearing of show interface counters never Queueing strategy: fifo Output queue :0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec (Muestra todos los parmetros y estadsticas de configuracin de la interfaz) Router# show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.1.1 YES manual up up FastEthernet0/1 unassigned YES manual administratively down down Serial0/0/0 192.168.2.1 YES manual up up Serial0/0/1 unassigned YES manual administratively down down Vlan1 unassigned YES manual administratively down down (Muestra informacin abreviada de configuracin de la interfaz, como por ejemplo la direccin IP y el estado de la interfaz) Router(config-line)# logging synchronous (Nos ayuda a mantener los resultados no solicitados separados de sus

show ip interface brief

Router# show ip interface brief

logging synchronous

Router(config-line)# logging synchronous

show controllers

Router# show controllers type number

entradas) Router# show controllers serial 0/0/0 Router# debug ip routing IP rputing debugging is on R2 (config)# int fa0/0 R2 (config-if)# ip address 172.16.1.1 255.255.255.0 R2 (config-if)# no shutdown %LINK-3-UPDOWN: Interface FactEthernet0/0, changed state to up ( nos permitir ver cualquier cambio que realice el router al agregar o eliminar rutas) Router# undebug all All possible debugging has been turned off ! or ! Router# undebug ip routing IP routing debugging is off Router# (Se utiliza para desactivar el commando debug ip routing) Router(config-if)# shutdown

debug ip routing Router# debug ip routing

undebug ip routing o undebug all

Router# undebug ip routing Router# undebug all

shutdown no ip address end ping show cdp

Router(config-if)# shutdown (Se utiliza para desactivar interfaces) Router(config-if)# no ip address Router(config-if)# no ip address (Se utiliza para eliminar la direccin IP de la interfaz) Router(config-if)# end Router(config-if)# end Router# ping address Router# show cdp neighbors (Finalizar) Router# ping 172.16.3.1 Router# show cdp neighbors

neighbors

Capability Codes: R - Router, T Trans Bridge, B Source Route Bridge S Switch, H Host, I IGMP, r Repeater, P Phone

Device ID Local Intrfce Holdtme S3 Fas 0 / 0 151 R2 Ser 0 / 0 / 1 125 Router# show cdp neighbors detail

Capability Platform SI WS-C2950 R 1841

Port ID Fas 0 / 6 Ser 0 /0 /1

show cdp neighbors detail

Router# show cdp neighbors detail

ip route no ip route

Router(config)# ip route prefix mask network-address subnet-mask {ipaddress | exit-interface } Router(config)# no ip route prefix mask network-address subnet-mask {ip-address | exit-interface }

Device ID: R2 Entry address : 192.168.1.2 Platform: Cisco 1841, Capabilities: Router Switch IGMP Interface: Serial 0/ 0 /1, Port ID (outgoing port): Serial 0/ 0/ 1 Holdtime: 161 sec Router(config)# ip route 172.16.1.0 255.255.255.0 172.16.2.2

Router(config)# no ip route 172.16.1.0 255.255.255.0 172.16.2.2