Switches: IOS


Packet Tracer uses a simplified model of the Cisco IOS. Click on the CLI tab in the switch configuration window to access the Cisco IOS command line interface for the switch. Use the Copy and Paste buttons to copy and paste text to and from the command line. This page lists the Cisco IOS command tree for Packet Tracer switches. For the Cisco Catalyst 3560-PS switch with Layer 3 capabilities, refer to the "Router IOS" page for additional commands. The tree contains only Cisco IOS command chains that are supported in Packet Tracer.

 

User Mode

  • <1-99>
  • connect
  • disconnect
  • enable
  • exit
  • logout
  • ping WORD
  • resume [ <1-16> | WORD ]
  • show
    • cdp
      • entry
        • * [ protocol | version ]
        • WORD [ protocol | version ]
      • interface
        • Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
        • FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
        • GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
      • neighbors [ detail ]
    • clock
    • dtp
    • etherchannel
      • load-balance
      • port-channel
      • summary
    • flash:
    • history
    • interfaces
      • Ethernet <0-9>/<0-24> [ switchPort ]
      • FastEthernet <0-9>/<0-24> [ switchPort ]
      • GigabitEthernet <0-9>/<0-24> [ switchPort ]
      • Vlan <1-1005>
      • Switchport
      • trunk
    • ip interface
      • Vlan <1-1005>
      • brief
    • mac-address-table
      • dynamic
      • interfaces
        • Ethernet IEEE 802.3
        • FastEthernet IEEE 802.3
        • GigaBitEthernet IEEE 802.3z
        • Port-channel Ethernet channel port interface
      • static
    • mls
      • qos
        • interface
        • FastEthernet IEEE 802.3
    • privilege
    • sessions
    • tcp
        • brief
    • terminal
    • users
    • version
    • vlan
      • brief
      • id <1-1005> ISL VLAN IDs 1-1005
      • name WORD A VTP VLAN name
    • vtp
      • counters
      • status
  • telnet [ WORD ]
  • traceroute WORD

Enable Mode

  • <1-99>
  • clear
    • arp-cache
    • cdp table
    • mac-address-table dynamic
    • port-security
    • vtp counters
  • clock set hh:mm:ss [ <1-31> MONTH <1993-2035> | MONTH <1-31> <1993-2035> ]
  • configure terminal
  • connect [ WORD ]
  • copy
    • running-config
      • startup-config
      • tftp:
      • flash:
      • ftp
    • startup-config
      • running-config
      • tftp:
      • flash
      • ftp:
    • tftp:
      • flash:
      • running-config
      • startup-config
    • ftp
      • flash:
      • running-config
      • startup-config
  • debug sw-vlan
    • packets
    • vtp
      • events
  • delete [ WORD | flash: ]
  • dir [ flash: ]
  • disable
  • disconnect <1-16>
  • enable
  • erase startup-config
  • exit
  • logout
  • no debug
    • all
    • sw-vlan
      • packets
      • vtp
        • events
  • ping [ WORD ]
    • [ Protocol ] [ Target IP address ] [ Repeat count ] [ Datagram size ] [ Timeout in seconds ] [ Extended commands ] [ Sweep range of sizes ]
  • reload
  • resume [ <1-16> | WORD ]
  • setup
  • show
    • access-lists
    • arp
    • boot
    • cdp
      • entry
        • * [ protocol | version ]
        • WORD [ protocol | version ]
      • interfaces
        • Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
        • FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
        • GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
      • neighbors [ detail ]
    • clock
    • dtp
    • etherchannel [load-balance | port-channel | summary ]
    • flash:
    • history
    • hosts
    • interfaces
      • Ethernet <0-9>/<0-24> [ switchport ]
      • FastEthernet <0-9>/<0-24> [ switchport ]
      • GigabitEthernet <0-9>/<0-24> [ switchport ]
      • Vlan <1-1005>
      • etherchannel
      • switchport
      • trunk
    • ip interface
      • Vlan <1-1005>
      • brief
    • logging
    • mac-address-table
      • static
      • dynamic
      • interfaces
        • Ethernet <0-9>/<0-24>
        • FastEthernet <0-9>/<0-24>
        • GigabitEthernet <0-9>/<0-24>
    • mls qos interface [ FastEthernet <0-9>/<0-24> ]
    • port-security
      • address
      • interface
        • Ethernet <0-9>/<0-24>
          • address
            • |
              • begin LINE
              • exclude LINE
              • include LINE
          • |
            • begin LINE
            • exclude LINE
            • include LINE
        • FastEthernet <0-9>/<0-24>
          • address
            • |
              • begin LINE
              • exclude LINE
              • include LINE
          • |
            • begin LINE
            • exclude LINE
            • include LINE
        • GigabitEthernet <0-9>/<0-24>
          • address
            • |
              • begin LINE
              • exclude LINE
              • include LINE
          • |
            • begin LINE
            • exclude LINE
            • include LINE
    • |
      • begin LINE
      • exclude LINE
      • include LINE
    • privilege
    • processes
    • running-config
    • sessions
    • snmp
    • spanning-tree
      • vlan WORD
      • detail
      • active
      • interface
        • FastEthernet <0-9>/<0-24> [ portfast ]
        • GigabitEthernet <0-9>/<0-24> [ portfast ]
        • port-channel <1-6>
        • Vlan WORD [ portfast ]
      • summary [totals]
    • startup-config
    • storm-control broadcast
    • tcp [ brief ]
    • tech-support
    • terminal
    • users
    • version
    • vlan [ brief | id <1-1005> | name WORD ]
    • vtp
      • counters
      • password
      • status
  • telnet [ WORD ]
  • terminal history size <0-256>
  • traceroute [ WORD ]
    • [ Protocol ] [ Target IP address ] [ Source address ] [ Numeric display ] [ Timeout in seconds ] [ Probe count ] [ Minimum Time to Live ] [ Maximum Time to Live ]
  • undebug
    • all
    • sw-vlan
      • packets
      • vtp
        • events
  • vlan database
  • write [ erase | memory | terminal ]

Global Mode

  • access-list <1-99>IP standard access list | <100-199> IP extended access list
  • banner motd LINE
  • boot system flash WORD
  • cdp run
  • clock timezone WORD <-23 - 23> [ <0-59> ]
  • do LINE Exec Command
  • enable
    • password
      • 7 WORD
      • LINE
      • level Set exec level password
    • secret [ 0 | 5 ] LINE
  • end
  • exit
  • hostname WORD
  • interface
    • Ethernet <0-9>/<0-24>
    • FastEthernet <0-9>/<0-24>
    • GigabitEthernet <0-9>/<0-24>
    • Port-channel <1-6> Port-channel interface number
    • Vlan <1-1005>
    • range interface range command
      • Ethernet IEEE 802.3
      • FastEthernet FastEthernet IEEE 802.3
      • GigabitEthernet GigabitEthernet IEEE 802.3z
      • Vlan Vlan interface
  • ip
    • access-list Named access-list
      • extended Extended Access List WORD name
      • standard Standard Access List WORD Access-list name
    • default-gateway A.B.C.D
    • domain IP DNS Resolver
    • domain-lookup
    • host WORD A.B.C.D [ A.B.C.D ] [ A.B.C.D ]
    • name-server A.B.C.D
  • line
    • <0-16> [ <1-16> ]
    • console <0-0>
    • vty <0-15> [ <1-15> ]
  • logging
    • A.B.C.D
    • buffered <4096-2147483647> Logging buffer size
    • console
    • host A.B.C.D IP address of the syslog server
    • on
    • trap debugging Debugging messages (severity=7)
  • mac-address-table static H.H.H vlan <1-1005> interface
    • Ethernet <0-9>/<0-24>
    • FastEthernet <0-9>/<0-24>
    • GigabitEthernet <0-9>/<0-24>
  • no
    • access-list <1-99>IP standard access list | <100-199> IP extended access list
    • banner motd
    • boot system flash WORD
    • cdp run
    • clock timezone
    • enable
      • password [ 7 WORD ]
      • secret
    • hostname
    • interface Vlan <1-1005>
    • ip
      • default-network A.B.C.D
      • domain-lookup
      • host WORD [ A.B.C.D ] [ A.B.C.D ] [ A.B.C.D ]
      • name-server
    • logging
      • A.B.C.D
      • buffered
      • console
      • host A.B.C.D IP address of the syslog server
      • on
      • trap debugging Debugging messages (severity=7)
    • mac-address-table static H.H.H vlan <1-1005> int
      • Ethernet <0-9>/<0-24>
      • FastEthernet <0-9>/<0-24>
      • GigabitEthernet <0-9>/<0-24>
    • port-channel
      • load-balance Load Balancing method
    • privilege
      • configure Global configuration mode
        • LINE
        • all All suboption will be set to the samelevel
          • LINE
          • level <0-15> Privilege level
        • level <0-15> Privilege level
      • exec Exec mode
        • LINE
        • all All suboption will be set to the samelevel
          • LINE
          • level <0-15> Privilege level
        • level <0-15> Privilege level
      • interface Interface configuration mode
        • LINE
        • all All suboption will be set to the samelevel
          • LINE
          • level <0-15> Privilege level
        • level <0-15> Privilege level
      • line Line configuration mode
        • LINE
        • all All suboption will be set to the samelevel
          • LINE
          • level <0-15> Privilege level
        • level <0-15> Privilege level
      • router Router configuration mode
        • LINE
        • all All suboption will be set to the samelevel
          • LINE
          • level <0-15> Privilege level
        • level <0-15> Privilege level
    • service
      • password-encryption
      • time stamps
        • debug datetime Timestamp with date and time
        • log datetime Timestamp with date and time
    • snmp-server community Enable SNMP; set community string and access privs
    • spanning-tree vlan WORD [priority | root [primary | secondary]]
    • username
    • vlan <1-1005>
    • vtp [ mode | password | version <1-2> ]
  • port-channel
  • privilege
  • service password-encryption
  • snmp-server
  • spanning-tree vlan WORD [priority <0-61440> | root [primary | secondary]]
  • spanning-tree mode [ pvst | rapid-pvst ]
  • spanning-tree portfast default
  • username WORD User name
  • vlan <1-1005>
  • vtp
    • domain WORD
    • mode
      • client
      • server
      • transparent
    • password WORD
    • version <1-2>

Ethernet / FastEthernet / GigabitEthernet Interface Mode

  • cdp enable
  • channel-group <1-6> mode [ active | auto | desirable | on | passive ]
  • channel-protocol [ lacp | bagp ]
  • description LINE
  • duplex [ auto | full | half ]
  • exit
  • mac-address H.H.H
  • mls qos
    • cos <0-7>
    • trust [ cos | device cisco-phone | dscp ]
  • no
    • cdp enable
    • description
    • duplex
    • mac-address
    • mls qos
      • cos <0-7>
      • trust [ cos | device cisco-phone | dscp ]
    • shutdown
    • spanning-tree
      • portfast [disable | trunk]
      • link-type [point-to-point | shared]
      • vlan WORD port-priority <0-240>
      • guard root
      • bpduguard < enable | disable >
    • speed
    • tx-ring-limit
    • storm-control broadcast level
    • switchport
      • access vlan
      • mode
      • native vlan
      • nonegotiate
      • port-security
        • mac-address
          • H.H.H
          • sticky [ H.H.H ]
        • maximum
        • violation
      • priority extend
      • trunk [ allowed | native ] vlan
      • voice vlan
  • shutdown
  • spanning-tree
    • portfast [disable | trunk]
    • link-type [point-to-point | shared]
    • vlan WORD port-priority <0-240>
    • guard root
  • speed [ 10 | 100 | 1000 | auto ] (10/100 options are only available for FastEthernet and GigabitEthernet interfaces and 10/100/1000 options are only available for GigabitEthernet interfaces respectively)
  • switchport
    • access vlan <1-1005>
    • mode
      • access
      • dynamic [ auto | desirable ]
      • trunk
    • native vlan <1-1005>
    • nonegotiate
    • port-security
      • mac-address
        • H.H.H
        • sticky [ H.H.H ]
      • maximum <1-132>
      • violation shutdown
    • priority extend cos <0-7>
    • trunk
      • allowed vlan
        • WORD
        • add <1-1005>
        • all
        • except <1-1005>
        • none
        • remove <1-1005>
      • native vlan <1-1005>
    • voice vlan <1-1005>

VLAN Interface Mode

  • arp timeout <0-2147483>
  • description LINE
  • exit
  • ip address [ A.B.C.D A.B.C.D | dhcp ]
  • ip helper-address A.B.C.D
  • mac-address H.H.H
  • no
    • arp timeout
    • description
    • ip address [ dhcp ]
    • mac-address
    • shutdown
  • shutdown

VLAN Configuration Mode

  • exit
  • name WORD The ascii name for the VLAN
  • no
    • name Ascii name of the VLAN

Line Configuration Mode

  • access-class [ <1-199> | <1300-2699> | WORD ] [ in | out ]
  • databits [ 5 | 6 | 7 | 8 ]
  • default [ databits | flowcontrol | history size | parity | speed | stopbits ]
  • exec-timeout <0-35791> Timeout in minutes
  • exit
  • flowcontrol [ NONE | hardware | software ]
  • history size <0-256>
  • ipv6 access-class Filter connections based on an IPv6 access list
  • logging synchronous Synchronized message output
  • login [ local ]
  • motd-banner
  • no [ access-class [ <1-199> | <1300-2699> | WORD ] [ in | out ] | databits | flowcontrol | history size | ipv6 | login | motd-banner | parity | password | speed | stopbits ]
  • parity [ even | mark | none | odd | space ]
  • password
    • 7 WORD
    • LINE
  • privilege level Assign default privilege level for line
  • speed <0-4294967295>
  • stopbits [ 1 | 1.5 | 2 ]
  • transport output Define which protocols to use for outgoing connections

Rommon Mode

  • boot
  • dir flash:
  • flash_init
  • help
  • reset
  • set
  • unset variable
  • variable=value