Devices

Cisco IOS Supported Commands: Switches

This page lists all IOS commands for switches supported in Packet Tracer 3.2.

User Mode commands:

- enable
- exit
- logout
- ping WORD
- show
  - history
  - interfaces
    - Ethernet <0-9> <0-0> [switchport]
    - FastEthernet <0-9> <0-0> [switchport]
    - GigabitEthernet <0-9> <0-0> [switchport]
    - Vlan <1-1005>
  - ip interface brief
  - mac-address-table
  - version
  - vlan
- traceroute WORD

Enable Mode commands:

- configure
  - terminal
- copy
  - running-config startup-config
  - startup-config running-config
- disable
- enable
- erase startup-config
- exit
- logout
- ping WORD
- reload
- show
  - arp
  - cdp
    - entry
      - * [version | protocol]
      - WORD [version | protocol]
    - interface [ Ethernet <0-9> <0-0> | FastEthernet <0-9> <0-0> | GigabitEthernet <0-9> <0-0> | Serial <0-9> <0-0> ]
    - neighbors [detail]
  - history
  - interfaces
    - Ethernet <0-9> <0-0> [switchport]
    - FastEthernet <0-9> <0-0> [switchport]
    - GigabitEthernet <0-9> <0-0> [switchport]
    - Vlan <1-1005>
  - ip interface brief
  - mac-address-table
  - port-security
    - Ethernet <0-9> <0-0> [address]
    - FastEthernet <0-9> <0-0> [address]
    - GiabitEthernet <0-9> <0-0> [address]
  - running-config
  - startup-config
  - version
  - vlan
- traceroute [WORD]
- vlan database
- write { erase | memory | terminal }

Global Mode commands:

- cdp run
- end
- exit
- hostname WORD
- interface
  - Ethernet <0-9> <0-0>
  - FastEthernet <0-9> <0-0>
  - GigabitEthernet <0-9> <0-0>
  - Vlan <1-1005>
- ip default-gateway A.B.C.D
- line console <0-0>
- no
  - cdp run
  - hostname
  - interface
    - Ethernet <0-9> <0-0>
    - FastEthernet <0-9> <0-0>
    - GigabitEthernet <0-9> <0-0>
    - Vlan <1-1005>
  - ip default-gateway
  - vlan WORD
- vlan WORD

Ethernet / FastEthernet / GigabitEthernet Interface Mode commands:

- cdp enable
- description LINE
- duplex {auto | full | half }
- exit
- ip
  - access-group {<1-199> | WORD} {in | out}
  - address A.B.C.D A.B.C.D
  - nat {inside | outside}
- mac-address H.H.H
- no
  - cdp enable
  - description
  - duplex
  - mac-address
  - shutdown
  - switchport
    - access vlan
    - mode
    - port-security [mac-address| maximum || violation]
    - trunk allowed vlan
- shutdown
- speed { 10 | 100 | 1000 | auto} (100 and 1000 subcommands only available for FastEthernet and GigabitEthernet ports respectively)
- switchport
  - access vlan <1-1005>
  - mode {access | trunk}
  - port-security [mac-address H.H.H | maximum <1-132> | violation shutdown]
  - trunk allowed vlan
    - add <1-1005>
    - all
    - except <1-1005>
    - remove <1-1005>

VLAN Interface Mode commands:

- description LINE
- exit
- ip
  - address A.B.C.D A.B.C.D
- mac-address H.H.H
- no
  - description
  - ip address
  - mac-address
  - shutdown
- shutdown

VLAN Configuration Mode commands:

- exit
- name WORD
- no name

VLAN Database Mode commands:

- exit
- no vlan <1-1005> [WORD]
- show
- vlan <1-1005> [name WORD]