Network Cisco Fundamentals
Network Cisco Fundamentals
FUNDAMENTALS
TOPICS
• Basic Cisco commands
• IOS and IOS XE update
• Configuration upload
• SSH access
• Switch stack member replacement
• Password Recovery
• Engineering WIKI
• Competency Test
Expected knowledge from Engineers
• Copy of IOS image and config from:
- TFTP
- FTP
- HTTP
- USB
• Making sure that SSH will work after copying the configuration
• Generate crypto key with the following command
Note: use the command ‘show file system’ to determine the USB device.
XMODEM COPY
If you have older Cisco switch that has a corrupted IOS and does not support USB, you can upload a new version via XModem.
PROCEDURE:
• Download something like HyperTerminal or Tera Term that support sending files via XModem
• Connect to the console port of the switch using the Cisco console cable and set your baud rate to 9600
• Optional: you may want to "format flash:" to make sure you have enough free space. Note, this will delete your startup-config
and any vlan’s you have configured
• Type in switch: set BAUD 115200
• Disconnect your console session and reconnect with with a baud rate of 115200
• Note: some USB to serial adapters have problems with this. If 115200 doesn’t work, try 57600
• type in "copy xmodem: flash:{Cisco IOS .bin file}"
• Example: copy xmodem: flash:c3750e-universalk9-mz.152-4.E2.bin
• In your terminal software (HyperTerminal) start sending the file via XModem
• After the upload is done, type in switch: set BAUD 9600
• Disconnect your console session and reconnect with a baud rate of 9600
• Type in switch: boot flash:c3750e-universalk9-mz.152-4.E2.bin
IOS XE MODE
• BUNDLE MODE • INSTALL MODE
• Like traditional IOS images • Default IOS XE from Cisco
• Boot variable pointing to flash:<IOS>.bin • Boot variable pointing to flash:packages.conf
• File is extracted to RAM upon reload • File is extracted in flash upon install
• Save configuration
Router# reload
Convert from BUNDLE to INSTALL
• Expand the .bin file using the command:
https://content.cisco.com/chapter.sjs?uri=%2Fsearchable%2Fchapter%2Fc%2Fen%2Fus%2Ftd%2Fdocs%2Fswit
ches%2Flan%2FDenali_16-
1%2FConfigExamples_Technotes%2FConfig_Examples%2FMisc%2Fqos%2Fm_install_vs_bundle.html.xml&platf
orm=Cisco%20Catalyst%203850%20Series%20Switches&release=IOS%20XE%20Denali%2016.1.x
LAB EXERCISES
Copy IOS XE file from engineering vault to switch/router
1. Connect device to engineering network
2. Obtain IP address through DHCP
3. Check connectivity (both IP and domain name)
4. Copy IOS XE using http or ftp from vault.l to flash:
SWITCH# show switch detail command will show stacking port status and neighbor switches
Switch Stack Member Replacement Procedure
• Offsite preparation
• Install the same IOS version to the replacement switch
• Change switch stack number to match the faulty switch
SWITCH# switch <current> renumbered <new>
• Onsite Replacement
• Remove the faulty switch
• Install the replacement switch, DO NOT apply power yet
• Insert stackwise cable and apply power
• Wait for the switch to boot
Auto Upgrade in Stack
• When enabled, switches will automatically upgrade IOS in reference to the master switch
• Global configuration
Press and hold MODE button for 20-30 seconds to interrupt boot process
switch: flash_init
switch: dir flash:
switch: rename flash:config.text flash:config.old
switch: boot
……………..
……………..
Switch#
Switch # copy flash:config.old running-config
Switch # configure terminal
Switch(config)# username <user> password <new_password>
Switch(config)# enable secret <new_password>
Switch(config)# exit
Switch# write memory
Password Recovery Procedure – SWITCH (IOS XE)
Turn power ON or reload the router
Press and hold MODE button for about 20 seconds to interrupt boot process
switch: flash_init
switch: SWITCH_IGNORE_STARTUP_CFG=1
switch: boot
……………………………………………………………..
……………………………………………………………..
Switch#
Switch # copy startup-config running-config
Switch # configure terminal
Switch(config)# username <user> password <new_password>
Switch(config)# enable secret <new_password>
Switch(config)# no system ignore startupconfig switch all
Switch(config)# exit
Switch# write memory
LAB Exercise: Password Recovery
Type the following to set enable password
https://wiki.interactive.com.au/index.php/Password_Recovery
THANK YOU
END OF COURSE