Cisco command for CatOS and IOS (cheat sheet)
I summarize the below PowerPoint to a one page command list below.
Source: http://www.cisl.ucar.edu/nets/presentations/training.topics/catos-vs-ios.pdf
For IOS
only:
How to enter config mode and interface mode:
my_switch#Conf
t
my_switch(config)#<…your IOS config command…>
my_switch(config)#interface faste8/1 <-- enter interface mode
my_switch(config-if)#<…your interface mode command…>
my_switch(config-if)#exit <-- leave interface mode
my_switch(config)#<…your IOS config command…>
my_switch(config)#interface faste8/1 <-- enter interface mode
my_switch(config-if)#<…your interface mode command…>
my_switch(config-if)#exit <-- leave interface mode
my_switch(config)#Exit (or [Ctrl-Z] to quit)
my_switch#write
mem <-- write the config permanently to NVRAM
CatOS |
IOS |
|
Config one port |
||
set
port name 8/1 set vlan 8 8/1 |
interface
faste8/1 description switchport access vlan 8 exit |
|
To
configure multiple ports |
||
set
port auxvlan5/1-48 701 |
interface
range faste5/1-48 switchportvoice vlan 701 exit |
|
set
port name 8/1 |
(need interface mode) description |
|
set
trunk 8/1 |
(need interface mode) switchportmode trunk |
|
set
trunk 8/1 on isl |
(need interface mode) switchportmode trunk switchporttrunk encapsulation isl |
|
clear
trunk 8/1 |
(need interface mode) switchporttrunk allowed vlan 1,2,25,700,1002-1005 |
|
set port jumbo 8/1 |
(need interface mode) mtu 9216 |
|
set
port qos8/1 trust trust-cos |
(need interface mode) mlsqostrust cos |
|
Set port speed to auto |
||
set port
speed 4/1 auto set port duplex 4/1 auto |
(need interface mode) no speed no duplex |
|
To add another vlan to the
trunk |
||
set
trunk 8/1 |
(need interface mode) switchporttrunk allowed vlan add |
|
set
vlan |
(need interface mode) switchport switchportmode access switchportaccess vlan <> |
|
set
port 8/1 disable |
(need interface mode) shutdown |
|
set
spantreeportfast |
(need interface mode) spanning-tree portfast |
|
set
qosenable |
(need interface mode) mlsqos |
|
set
port channel |
(need interface mode) channel-group |
|
vlan database command |
||
show
cam dynamic |
show
mac-address-table dynamic |
|
show
channel info or show port channel |
show
etherchannelsummary |
|
show
mac |
show
interface counters [errors | trunk] |
|
show
port |
show
interface show run interface |
|
show
logging buffer |
show
log |
|
show
modules |
show
modules |
|
show
version |
show
version |
|
show
port inline power |
show
power inline |
|
show
environment power |
show
power |
|
show
environment [temp | cooling] |
show
environment [temp | cooling] |
|
reset
system |
Reload |
|
set
system name |
Hostname |
|
set
boot system flash |
boot
system flash |
|
show
config |
show
run |
|
show
port counters |
show interfaces counters errors |
|
clear counters all | clear counters |
|
show logging buffer | show logging |
The below version is for saving as Notes for my iPhone as a cheat sheet.
Config one port
CatOS IOS
----- ----
set port name 8/1
set vlan 8 8/1 interface faste8/1
description
switchport access vlan 8
exit
write mem
To configure multiple ports
----------------------------
set port auxvlan5/1-48 701 interface range faste5/1-48
switchportvoice vlan 701
set port name 8/1
Interface gig8/1
description
switchportmode trunk
set trunk 8/1 on isl switchporttrunk encapsulation isl
clear trunk 8/1
Set port jumbo 8/1 mtu 9216
set port qos8/1 trust trust-cos mlsqostrust cos
Set port speed to auto
set port speed 4/1 auto Conf t -> Int Fa0/1 -> no speed -> no duplex -> [Ctrl-Z] to quit
set port duplex 4/1 auto
To add another vlan to the trunk
--------------------------------
set trunk 8/1
exit
write mem
set vlan
2) switchportmode access
3) switchportaccess vlan <>
set port disable shutdown (interface mode)
set port duplex duplex
set port speed speed
set port jumbo mtu 9216
set spantreeportfast spanning-tree portfast
set qosenable mlsqos
set port channel channel-group
set trunk (default mode is auto) switchportmode trunk (vlan database command)
show cam dynamic show mac-address-table dynamic
show channel info or show port channel show etherchannelsummary
show mac show interface counters [errors | trunk]
show port
show run interface
show logging buffer show log
show modules show modules
show version show version
show port inline power show power inline
show environment power show power
show environment [temp | cooling] show environment [temp | cooling]
reset system reload
set system name hostname
set boot system flash boot system flash
show config show run
Comments