Cisco troubleshooting commands

Display live syslog messages SW1# terminal monitor SW1# terminal no monitor Show log SW1# show logging SW1# show logging history Show IP address of each interface SW1# show ip int br SW1# show ip interface brief Show route SW1# show ip route Show IP address of vlan 172 SW1# show ip int br...

Backup Cisco running-config via SSH

Copy running config R#copy running-config scp:\\192.168.1.2Address or name of remote host ? 192.168.1.2Destination username ? kimDestination filename ? R.txtWriting MOLR.txtPassword: Sink: C0644 3655 MOLR.txt!3655 bytes copied in 8.548 secs (428 bytes/sec) Config file will be stored at user’s home directory    Other methods of copying running-config MOLR#copy running-config ?archive: Copy to archive: file systemflash:...

Apply Cisco license

Apply license Router# copy tftp flash: Address or name of remote host ? 192.168.1.200 Source filename ? uck9_license.lic Destination filename ? Accessing tftp://192.168.1.200/uck9_license.lic… Loading uck9_license.lic from 192.168.1.200 (via GigabitEthernet0/1.192): ! 1161 bytes copied in 0.059 secs (19678 bytes/sec)   Router# license install flash:uck9_license.lic Installing licenses from “flash:uck9_license.lic” Installing…Feature:uck9…Successful:Supported...

Configure clock time on Cisco device

Manually set clock time Step 1. Router(config)# clock timezone GMT 8 Step 2. Configure Daylight Saving time Router(config)# clock summer-time GMT recurring Step 3. #in Privileged mode not Global Configuration Mode Router# clock set 17:47:00 JUN 14 2016 Verify time Router# show clock #Set Cisco time with NTP (Network Time Protocol) Router(config)# ntp server...

Healthy Cisco router config with VLAN, DHCP, NAT, SSH, Port Forwarding

clock timezone KXXTime 8 0 ip dhcp excluded-address 172.168.1.1 172.168.1.110 !ip dhcp pool vlan172network 172.168.1.0 255.255.255.0default-router 172.168.1.252dns-server 192.168.1.x 8.8.8.8domain-name xxx.com.sglease 0 0 30!ip dhcp pool vlan172-static-laptophost 172.168.1.111 255.255.255.0client-identifier 01xx.02xx.03xx.xxclient-name laptop172default-router 172.168.1.252dns-server 192.168.1.x 8.8.8.8domain-name xxx.com.sglease 0 0 10!ip dhcp pool vlan172-static-hosthost 172.168.1.112 255.255.255.0client-identifier 01xx.15xx.01xx.xxclient-name hostxxxdefault-router 172.168.1.252dns-server 192.168.1.x 8.8.8.8domain-name xxx.com.sglease 0 0 10!!!no ipv6 cefmultilink bundle-name...

Setup Cisco router on a stick

Configuration vlan interfaces on switch interface vlan 172ip address 172.168.1.253 255.255.255.0exitinterface vlan 192ip address 192.168.1.253 255.255.255.0exitinterface van 10 ip address 10.0.0.253 255.255.255.0 exit Setup trunk from Switch to router SW1(config)# interface Gix/x/xSW1(config-if)# description "trunk to router"SW1(config-if)# switchport mode trunkSW1(config-if)# spanning-tree portfast trunk Configuration on router R1# conf tR1(config)# interface Gi0/xR1(config-if)# no ip addressR1(config-if)# duplex...

Multiple Gateway of last resort for backup internet connection on Cisco router

First remove any existing Gateway of last resort no ip route 0.0.0.0 0.0.0.0 Add gateway of last resort (Primary) ip route 0.0.0.0 0.0.0.0 1.1.1.1 1 track 1 Add secondary gateway (backup line) ip route 0.0.0.0 0.0.0.0 2.2.2.2 2 name DSL_Backup //Setup unrechability detection for redundancy//Setup monitoring of Primary line with ping to 8.8.8.8 ip...

Quick steps to configure a Cisco router, up and running in no time!

Configure IP for WAN & LAN interfaces ip address 202.xxx.xxx.x 255.255.255.240ip address 192.168.100.1 255.255.255.0 Define outside interface for NAT (WAN) R1(config)#interface serial0/xR1(config-if)# ip nat outside Define inside interface for NAT (LAN) R1(config)#interface gi0/xR1(config-if)# ip nat inside Create an Access Control List (ACL) that will include local (private) hosts or network(s) to be translated R1(config)#access-list 100...

Configure SSH on cisco router or switch

  Router# conf t Router(config)# ip ssh version 2 Change your Router name or else you will get below error later “Please define a hostname other than Router” Router(config)# hostname R Configure DNS domain name: R(config)# ip domain-name example.com Generate a certificate that will be used to encrypt the SSH packets R(config)# crypto key...

Scroll to top