Upgrade Cisco 9200 switch step by step

Here is a step-by-step guide to upgrading a Cisco Catalyst 9200 switch in Install Mode:

  1. Clean up inactive installations:
    Use the command install remove inactive to clean up and remove any inactive software images from the switch flash.



  2. Copy the new image to the switch:
    Download the desired IOS XE image from Cisco's official website, then copy it to the switch flash. For example:
    copy tftp://<tftp_server_ip>/cat9k_lite_iosxe.x.x.x.bin flash:
    or if using USB:
    copy usbflash0:cat9k_lite_iosxe.x.x.x.bin flash:

  3. Verify the new image on the flash:
    Use dir flash: to confirm the image is present on the switch.
    Optionally verify integrity with checksums such as MD5.

  4. Set the boot variable to the package configuration file:
    Enter global config mode and set the boot variable to the package file:

    configure terminal no boot manual boot system flash:packages.conf end write memory
  5. Install and activate the new image:
    Use the install command to add, activate, and commit the new image:
    install add file flash:cat9k_lite_iosxe.x.x.x.bin activate commit

  6. Approve the switch reload prompt:
    After the image installation, approve the reload when prompted so the switch reboots with the new IOS.

  7. Verify the upgrade:
    After reload, check the running version with:
    show version
    Confirm the switch is running the new software.

  8. Clean up again:
    Optionally, run install remove inactive to remove old images and free flash space.

This procedure minimizes downtime and ensures the switch boots the new image in install mode correctly. The entire process typically takes about 15-20 minutes for a single switch.

CDP and LLDP Protocols: From Definition to Real-world Configuration

What Are CDP and LLDP?

  • CDP (Cisco Discovery Protocol):

    • A proprietary Layer 2 protocol developed by Cisco.

    • Purpose: Discover and share information about directly connected Cisco devices. It’s enabled by default on Cisco devices.

    • Shares: Device IDs, IP addresses, interface info, and capabilities.

    • Only works between Cisco devices.

  • LLDP (Link Layer Discovery Protocol):

    • IEEE 802.1AB standard (vendor-neutral).

    • Purpose: Discover and advertise connected device info on the local network segment.

    • Works across most vendors (Cisco, Juniper, Huawei, etc.).

    • Shares similar details to CDP: system name, interface, platform, capabilities.

    • Essential for multi-vendor environments.


Why Use CDP/LLDP?

  • To map physical network topology quickly.

  • To document port connections.

  • For troubleshooting and effective Layer 2 management.

  • For building complex, multi-vendor networks.


Small Network Topology Example

Simple Topology:


[Switch1]---[Switch2] | | [Router] [Host]
  • Switch1: Cisco

  • Switch2: Juniper

  • Router: Huawei

Ports:

  • Switch1 (G0/1) ⇄ Switch2 (G0/1)

  • Switch1 (G0/2) ⇄ Router (G0/0)

The above topology allows you to demonstrate CDP (between Cisco devices) and LLDP (between Cisco, Juniper, and Huawei).


Lab Diagram (Reference)


Network topology diagrams typically show direct links between switches and routers. Each device’s interface can be labeled for clarity (e.g., Switch1 G0/1 → Switch2 G0/1).


Port Connectivity Table

DeviceLocal InterfaceConnected DeviceRemote Interface
Switch1G0/1Switch2G0/1
Switch1G0/2RouterG0/0
Switch2G0/1Switch1G0/1
RouterG0/0Switch1G0/2

Configuration: CDP and LLDP

1. Cisco Switch (CDP and LLDP)

Enable CDP Globally: (usually on by default)


Switch(config)# cdp run

Enable CDP on an Interface:


Switch(config-if)# cdp enable

Enable LLDP Globally:


Switch(config)# lldp run

Enable LLDP on an Interface:


Switch(config-if)# lldp transmit Switch(config-if)# lldp receive

Verify:


Switch# show cdp neighbors Switch# show lldp neighbors

2. Juniper Switch (LLDP Only)

Enable LLDP Globally:


set protocols lldp interface all commit

To enable on one interface:

set protocols lldp interface ge-0/0/1 commit

Verify:

show lldp neighbors

3. Huawei Switch (LLDP Only)

Enable LLDP Globally:

[Switch] lldp enable

Configure Transmission Interval, Delay, Hold:

[Switch] lldp message-transmission interval 30 [Switch] lldp message-transmission delay 2 [Switch] lldp message-transmission hold-multiplier 4

Verify:


[Switch] display lldp neighbor

Best Practices and Lab Demo

  • Use discovery protocols only on network-facing interfaces, never outward-facing ones (e.g., internet-facing ports) for security.

  • Always document port connectivity for future troubleshooting.

  • In lab environments, use Packet Tracer or eNSP to visualize device neighbor tables and network topology as discovered by CDP/LLDP.

  • After enabling protocols, use “show” commands to validate topology discovery and document real port connectivity.


By following these steps, you get both vendor-specific and vendor-neutral topology discovery, accurate documentation, and robust troubleshooting capability for modern networks.


To illustrate the CDP and LLDP protocols and their discovery capabilities in a small lab, here’s a sample topology diagram—with practical descriptions, port connectivity, and best-practice labeling.


Sample CDP/LLDP Lab Topology and Port Map

Simple Network Topology Diagram

Below is a typical small lab setup (text version for clarity):

text
+---------+ | Router | | Huawei | | G0/0 | +----+----+ | | (G0/2) +----+----+ | Cisco | | Switch1 | | G0/1 | +----+----+ | | (G0/1) +----+----+ | Juniper | | Switch2 | | G0/1 | +---------+
  • Connections:

    • Router (Huawei, G0/0) ⇄ Switch1 (Cisco, G0/2)

    • Switch1 (Cisco, G0/1) ⇄ Switch2 (Juniper, G0/1)

This diagram can be easily recreated in tools like Cisco Packet Tracer, Huawei eNSP, or GNS3.


Port Connectivity Table

DeviceLocal InterfaceConnected DeviceRemote Interface
Huawei RouterG0/0Cisco Switch1G0/2
Cisco Switch1G0/2Huawei RouterG0/0
Cisco Switch1G0/1Juniper Switch2G0/1
Juniper Switch2G0/1Cisco Switch1G0/1

Lab Notes

  • CDP will function between Cisco devices. In this topology, that means only Cisco Switch1 would show CDP neighbors if directly connected to another Cisco device.

  • LLDP will function between all devices due to its vendor-neutral standard. In this setup, Juniper, Huawei, and Cisco can discover each other via LLDP as long as it’s enabled on connecting ports.

  • These diagrams and port maps are helpful for quick troubleshooting, validating cabling, and confirming neighbor discovery outputs.


Best Practices for Using Lab Topologies

  • Clearly label all physical and logical interfaces in diagrams.

  • Map uplinks/downlinks with accurate port names (i.e., G0/1, G0/2).

  • Use “show cdp neighbors” on Cisco, “show lldp neighbors” on Cisco/Juniper/Huawei to validate live topology.

  • Save or screenshot your topology views in your simulation tool for documentation.

Upgrade Cisco 9200 switch step by step

Here is a step-by-step guide to upgrading a Cisco Catalyst 9200 switch in Install Mode: Clean up inactive installations : Use the command  i...