Switches: IOS

Packet Tracer 5.0 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 5.0 switches. The tree contains only Cisco IOS command chains that are supported in Packet Tracer 5.0.

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 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 version vlan 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: startup-config running-config tftp: tftp: flash: running-config startup-config debug sw-vlan packets vtp events 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 arp 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 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> Switchport trunk ip interface Vlan <1-1005> brief mac-address-table static dynamic interfaces Ethernet <0-9>/<0-24> FastEthernet <0-9>/<0-24> GigabitEthernet <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 running-config sessions 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 tcp [ brief ] users version vlan [ brief | id <1-1005> | name WORD ] vtp counters password status telnet [ WORD ] 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

banner motd LINE boot system flash WORD cdp run clock timezone WORD <-23 - 23> [ <0-59> ] enable password 7 WORD LINE secret [ 0 | 5 ] LINE end exit hostname WORD interface Ethernet <0-9>/<0-24> FastEthernet <0-9>/<0-24> GigabitEthernet <0-9>/<0-24> Vlan <1-1005> ip default-gateway A.B.C.D 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> ] 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 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 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> service password-encryption spanning-tree vlan WORD [priority | root [primary | secondary]] spanning-tree mode spanning-tree portfast default vlan <1-1005> vtp [ mode | password | version <1-2> ] service password-encryption spanning-tree vlan WORD [priority <0-61440> | root [primary | secondary]] spanning-tree mode [ pvst | rapid-pvst ] spanning-tree portfast default vlan <1-1005> vtp domain WORD mode client server transparent password WORD version <1-2>

Ethernet / FastEthernet / GigabitEthernet Interface Mode

cdp enable description LINE duplex [ auto | full | half ] exit mac-address H.H.H no cdp enable description duplex mac-address shutdown spanning-tree portfast link-type vlan WORD port-priority guard speed switchport access vlan mode native vlan nonegotiate port-security mac-address H.H.H sticky [ H.H.H ] maximum violation 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 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 ] mac-address H.H.H no arp timeout description ip address [ dhcp ] mac-address shutdown shutdown

VLAN Configuration Mode

exit no vlan <1-1005> vtp client password transparent v2-mode vlan <1-1005> [ name ] [ WORD ] vtp client domain WORD password WORD server transparent v2-mode

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 ] exit flowcontrol [ NONE | hardware | software ] history size <0-256> login [ local ] motd-banner no [ access-class [ <1-199> | <1300-2699> | WORD ] [ in | out ] | databits | flowcontrol | history size | login | motd-banner | parity | password | session-limit | speed | stopbits ] parity [ even | mark | none | odd | space ] password 7 WORD LINE session-limit <0-4294967295> speed <0-4294967295> stopbits [ 1 | 1.5 | 2 ]

Rommon Mode

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