7.3 Configure and verify device management

7.3.a Backup and restore device configuration

Backups can be configured using multiple sources:

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#archive 
Router(config-archive)#path ?
 bootflash: Write archive on bootflash: file system
 disk0: Write archive on disk0: file system
 disk1: Write archive on disk1: file system
 flash: Write archive on flash: file system
 ftp: Write archive on ftp: file system
 http: Write archive on http: file system
 https: Write archive on https: file system
 pram: Write archive on pram: file system
 rcp: Write archive on rcp: file system
 scp: Write archive on scp: file system
 slot0: Write archive on slot0: file system
 slot1: Write archive on slot1: file system
 tftp: Write archive on tftp: file system

Router(config-archive)#path tftp://192.168.0.10/
Router(config-archive)#time-period 1440
Router(config-archive)#write-mem
Router(config-archive)#write-memory 
Router(config-archive)#^Z
Router#

Then we simple run “archive config” in enable mode to archive config.

Router#show archive
The maximum archive configurations allowed is 14.
The next archive file will be named tftp://192.168.0.10/-4
 Archive # Name
 1 :Error - no archive file was created 
 2 tftp://192.168.0.10/-1 
 3 tftp://192.168.0.10/-2 
 4 tftp://192.168.0.10/-3 <- Most Recent
 5 
 6 
 7 
 8 
 9 
 10

To restore config:

Router#configure replace tftp://192.168.0.10/-1

7.3.b Using Cisco Discovery Protocol or LLDP for device discovery

Cisco Discovery Protocol is enabled by default on Cisco devices. I created a Three Layer network using switched and enabled all necessary ports.

 

To access CDP:

Router#show cdp neighbors 
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
 S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, 
 D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID Local Intrfce Holdtme Capability Platform Port ID
Router Eth 0/1 177 R B Linux Uni Eth 0/0
Router Eth 0/0 158 R B Linux Uni Eth 0/0

Total cdp entries displayed : 2

Router#show cdp neighbors detail 
-------------------------
Device ID: Router
Entry address(es): 
Platform: Linux Unix, Capabilities: Router Source-Route-Bridge 
Interface: Ethernet0/1, Port ID (outgoing port): Ethernet0/0
Holdtime : 147 sec

Version :
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.4(1)T, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 03:28 by prod_rel_team

advertisement version: 2
Duplex: half

-------------------------
Device ID: Router
Entry address(es): 
Platform: Linux Unix, Capabilities: Router Source-Route-Bridge 
Interface: Ethernet0/0, Port ID (outgoing port): Ethernet0/0
Holdtime : 179 sec
 
Version :
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.4(1)T, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 03:28 by prod_rel_team

advertisement version: 2
Duplex: half
Total cdp entries displayed : 2

To enable Link Layer Discover Protocol:

Router#conf t 
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#lldp run
Router(config)#^Z
Router#show lldp

Global LLDP Information:
 Status: ACTIVE
 LLDP advertisements are sent every 30 seconds
 LLDP hold time advertised is 120 seconds
 LLDP interface reinitialisation delay is 2 seconds
Router#show lldp ?
 entry Information for specific neighbor entry
 errors LLDP computational errors and overflows
 interface LLDP interface status and configuration
 neighbors LLDP neighbor entries
 traffic LLDP statistics
 | Output modifiers
 <cr>
Router#show lldp neighbors 
Capability codes:
 (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
 (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other

Device ID Local Intf Hold-time Capability Port ID
Router Et0/1 120 R Et0/0

Total entries displayed: 1


Router#show lldp entry Router

Capability codes:
 (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
 (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
------------------------------------------------
Chassis id: aabb.cc00.0300
Port id: Et0/0
Port Description: Ethernet0/0
System Name: Router

System Description: 
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.4(1)T, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 03:28 by prod_rel_tea

Time remaining: 93 seconds
System Capabilities: B,R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type - not advertised
Vlan ID: - not advertised

Total entries displayed: 1

7.3.c Licensing

7.3.d Logging

Use the show logging commands to verify system logging.

One can also use the debug command to debug certain processes inside IOS:

Router#debug cdp events 
CDP events debugging is on
Router#debug cdp ad
Router#debug cdp adjacency 
CDP neighbor info debugging is on
Router#debug cdp packets 
CDP packet info debugging is on
Router#debug cdp ip 
CDP IP info debugging is on
Router#debug cdp test
CDP Test cli debugging is on

Router#
Feb 19 06:15:12.600: CDP-PA: Packet received from Router on interface Ethernet0/1
Feb 19 06:15:12.600: **Entry found in cache**
Feb 19 06:15:12.600: CDP-EV: Packet Received from Router with capability = 5 and Platform string = Linux Unix on interface Ethernet0/1
Router#
Feb 19 06:15:16.208: In cdp_check_test_cli_configured()
Feb 19 06:15:16.208: Sending TLV for testing 
Feb 19 06:15:16.208: CDP-IP: Cannot find stub network
Feb 19 06:15:16.208: cdp_check_test_cli_configured() from insert_native
Feb 19 06:15:16.208: CDP-PA: version 2 packet sent out on Ethernet0/1
Router#
Feb 19 06:15:21.253: CDP-PA: Packet received from Router on interface Ethernet0/0
Feb 19 06:15:21.253: **Entry found in cache**
Feb 19 06:15:21.253: CDP-EV: Packet Received from Router with capability = 5 and Platform string = Linux Unix on interface Ethernet0/0
Router#
Feb 19 06:15:53.184: In cdp_check_test_cli_configured()
Feb 19 06:15:53.184: Sending TLV for testing 
Feb 19 06:15:53.184: CDP-IP: Cannot find stub network
Feb 19 06:15:53.184: cdp_check_test_cli_configured() from insert_native
Feb 19 06:15:53.184: CDP-PA: version 2 packet sent out on Ethernet0/0
Router#
Feb 19 06:16:07.496: In cdp_check_test_cli_configured()
Feb 19 06:16:07.496: Sending TLV for testing 
Feb 19 06:16:07.496: CDP-IP: Cannot find stub network
Feb 19 06:16:07.496: cdp_check_test_cli_configured() from insert_native
Feb 19 06:16:07.496: CDP-PA: version 2 packet sent out on Ethernet0/1
Router#
Feb 19 06:16:11.850: CDP-PA: Packet received from Router on interface Ethernet0/1
Feb 19 06:16:11.850: **Entry found in cache**
Feb 19 06:16:11.851: CDP-EV: Packet Received from Router with capability = 5 and Platform string = Linux Unix on interface Ethernet0/1
Router#
Feb 19 06:16:20.938: CDP-PA: Packet received from Router on interface Ethernet0/0
Feb 19 06:16:20.938: **Entry found in cache**
Feb 19 06:16:20.938: CDP-EV: Packet Received from Router with capability = 5 and Platform string = Linux Unix on interface Ethernet0/0

7.3.e Timezone

Setting the time and timezone can be done with these commands:

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#clock timezone AEST -8
Router(config)#
*Feb 18 12:40:07.908: %SYS-6-CLOCKUPDATE: System clock has been updated from 22:40:07 AEST Sun Feb 18 2018 to 04:40:07 AEST Sun Feb 18 2018, configured from console by console.
Router(config)#^Z
*Feb 18 12:40:16.772: %SYS-5-CONFIG_I: Configured from console by console
Router#clock set 22:10:00 18 February 2018
Router#
*Feb 19 06:10:00.069: %SYS-6-CLOCKUPDATE: System clock has been updated from 04:40:45 AEST Sun Feb 18 2018 to 22:10:00 AEST Sun Feb 18 2018, configured from console by console.
Router#

7.3.f Loopback

A loopback is configured to overcome errors with interfaces going down or changing IP addresses.

Router#conf t 
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface loopback 0
Feb 19 06:18:24.884: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Router(config-if)#ip address 10.0.0.99 255.255.255.0
Router(config-if)#^Z
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s