Routers: IOS
Packet Tracer uses a simplified model of the Cisco IOS. Click on the CLI tab in the router configuration window to access the Cisco IOS command line interface for the router. 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 routers. For Cisco 1841 and 2811 routers with switching capabilities, refer to the "Switch IOS" page for additional commands. The tree contains only Cisco IOS command chains that are supported in Packet Tracer.
User Mode
Enable Mode
Global Mode
Standard Access List Configuration Mode
-
default
-
deny
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
permit
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
deny
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
exit
-
no
-
deny
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
permit
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
permit
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
remark LINE
|
Extended Access List Configuration Mode
-
default
-
[ deny | permit ] [ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | host A.B.C.D ]
-
[ deny | permit ] [ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | eq <0-65535> | host A.B.C.D | gt <0-65535>
| lt <0-65535> | neq <0-65535> | range <0-65535>
<0-65535> ] [ eq <0-65535> | gt <0-65535> | lt
<0-65535> | neq <0-65535> | range <0-65535> <0-65535> ]
-
deny
-
[ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| host A.B.C.D ]
-
[ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| eq <0-65535> | host A.B.C.D | gt <0-65535> | lt <0-65535> |
neq <0-65535> | range <0-65535> <0-65535> ] [ eq
<0-65535> | gt <0-65535> | lt <0-65535> | neq <0-65535>
| range <0-65535> <0-65535> ]
-
exit
-
no
-
[ deny | permit ] [ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | host A.B.C.D ]
-
[ deny | permit ] [ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | eq <0-65535> | host A.B.C.D | gt <0-65535>
| lt <0-65535> | neq <0-65535> | range <0-65535>
<0-65535> ] [ eq <0-65535> | gt <0-65535> | lt
<0-65535> | neq <0-65535> | range <0-65535> <0-65535> ]
-
permit
-
[ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| host A.B.C.D ]
-
[ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| eq <0-65535> | host A.B.C.D | gt <0-65535> | lt <0-65535> |
neq <0-65535> | range <0-65535> <0-65535> ] [ eq
<0-65535> | gt <0-65535> | lt <0-65535> | neq <0-65535>
| range <0-65535> <0-65535> ]
-
remark LINE
|
Ethernet / FastEthernet / GigabitEthernet Interface Mode
Ethernet / FastEthernet / GigabitEthernet Sub-Interface
Mode
-
arp
timeout <0-2147483>
-
bandwidth
<1-10000000>
-
delay
<1-16777215>
-
description
LINE
-
encapsulation
dot1Q <1-1005> [ native ]
-
exit
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address
-
hello-interval eigrp <1-65535> <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
no
-
arp timeout
-
bandwidth
-
delay
-
description
-
encapsulation dot1Q
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
shutdown
-
shutdown
|
Serial Interface Mode
-
bandwidth
<1-10000000>
-
cdp
enable
-
clock rate <1200-4000000> (only
certain clock rates that are listed are valid)
- crypto map WORD
- custom-queue-list <1-16>
-
delay
<1-16777215>
-
description
LINE
-
encapsulation
-
hdlc
-
ppp
-
frame-relay [ ietf ]
-
exit
- fair-queue [ <16-4096> ] [ <16-4096> ] [ <0-1000> ]
-
frame-relay
-
interface-dlci <16-1007>
-
lmi-type [ ansi | cisco | q933a ]
-
map ip A.B.C.D <16-1007>
-
broadcast [ cisco | ietf ]
-
cisco [ broadcast ]
-
ietf [ broadcast ]
- hold-queue <0-4096> out
- ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address A.B.C.D A.B.C.D
-
hello-interval eigrp <1-65535> <1-65535>
- inspect WORD [ in | out ]
- ips WORD [ in | out ]
- mtu <68-1500>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
- virtual-reassembly
-
keepalive
<0-30>
- mtu <64-17940>
-
no
-
bandwidth <1-10000000>
-
cdp enable
-
clock rate
- crypto map [ WORD
]
- custom-queue-list <1-16>
-
delay
-
description
-
encapsulation
- fair-queue [ <16-4096> ] [ <16-4096> ] [ <0-1000> ]
-
frame-relay
-
interface-dlci <16-1007>
-
lmi-type [ ansi | cisco | q933a ]
-
map ip A.B.C.D
- hold-queue [ <0-4096> ] out
- ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
- inspect WORD [ in | out ]
- ips WORD [ in | out ]
- mtu <68-1500>
- nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
- virtual-reassembly
-
keepalive
- mtu
-
ppp
-
authentication
-
pap sent-username
- priority-group <1-16>
- service-policy [ input | output ] WORD
- shutdown
- speed
- tx-ring-limit
- zone-member security WORD
-
ppp
-
authentication chap [ pap ]
-
authentication pap [ chap ]
- priority-group <1-16>
- service-policy [ input | output ] WORD
- shutdown
- tx-ring-limit <1-32767>
- zone-member security WORD
|
Tunnel Interface Mode
-
exit
- ip
address A.B.C.D A.B.C.D
- no
- ip address [ A.B.C.D A.B.C.D ]
- shutdown
- tunnel
[ destination | source ]
- shutdown
- tunnel
- destination A.B.C.D
- source
- Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
- FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
- GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
- Loopback <0-2147483647>
- Serial <0-9>/<0-24>
|
VLAN Interface Mode
-
arp
timeout <0-2147483>
-
bandwidth
<1-10000000>
-
delay
<1-16777215>
-
description
LINE
-
exit
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address
-
hello-interval eigrp <1-65535> <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
mac-address
H.H.H
-
no
-
arp timeout
-
bandwidth
-
delay
-
description
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
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
-
exec-timeout
<0-35791> [<0-2147483>]
-
flowcontrol
[ NONE | hardware | software ]
-
history
size <0-256>
-
ipv6
access-class WORD [in | out]
- logging synchronous
- login
- authentication [ WORD | default ]
- 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 ]
- databits
- exec-timeout
- flowcontrol
-
history size
-
ipv6 access-class WORD [in | out]
-
logging synchronous
- motd-banner
- parity
- password
- privilege level
- session-limit
- speed
- stopbits
- transport output
-
parity
[ even | mark | none | odd | space ]
-
password
- privilege level <0-15>
- session-limit <0-4294967295>
-
speed
<0-4294967295>
-
stopbits [ 1 | 1.5 | 2 ]
- transport output [ all | none | ssh | telnet ]
|
Class-Map Configuration Mode
Policy-Map Configuration Mode
- class
[ type inspect ] [ WORD | class-default ]
- exit
- no
- class [ type inspect ] [ WORD | class-default ]
|
Policy-Map Class Configuration Mode
- bandwidth [ <8-2000000> | percent <1-100> | remaining percent <1-100> ]
- drop
- exit
- fair-queue [ <16-4096> ]
- inspect
- no
- bandwidth
- drop
- fair-queue
- inspect
- pass
- priority
- random-detect
- dscp [ <0-63> | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | default | ef ]
- dscp-based
- prec-based
- precedence <0-7>
- service-policy WORD
- set
- ip
- dscp [ <0-63> | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | default | ef ]
- precedence [ <0-7> | critical | flash | flash-override | immediate | internet | network | priority | routine ]
- shape average
- pass
- priority [ <8-2000000> | percent <1-100> ] [ <32-2000000> ]
- queue-limit <1-4096>
- random-detect
- dscp [ <0-63> | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | default | ef ] <1-4096> <1-4096> [ <1-65535> ]
- dscp-based
- prec-based
- precedence <0-7> <1-4096> <1-4096> [ <1-65535> ]
- service-policy WORD
- set
- ip
- dscp [ <0-63> | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | default | ef ]
- precedence [ <0-7> | critical | flash | flash-override | immediate | internet | network | priority | routine ]
- shape average <8000-154400000>
|
Zone Security Configuration Mode
Zone-Pair Security Configuration Mode
- exit
- no
- service-policy type inspect WORD
- service-policy type inspect WORD
|
Crypto Map Configuration Mode
- description LINE
- exit
- match address [ <100-199> |
WORD ]
- no
- match address
- set
- peer A.B.C.D
- pfs [ group1 | group2 | group5 ]
- security-association lifetime seconds
- transform-set
- set
- peer A.B.C.D
- pfs [ group1 | group2 | group5 ]
- security-association lifetime seconds <120-86400>
- transform-set WORD [ WORD ] [ WORD ] [ WORD ] [ WORD ] [ WORD ]
|
ISAKMP Configuration Mode
-
authentication pre-share
- encryption [ 3des | aes [ 128 | 192 | 256 ] | des ]
- exit
- group [ 1 | 2 | 5 ]
- hash [
md5 | sha ]
- lifetime <60-86400>
- no
- authentication pre-share
- encryption [ 3des | aes [ 128 | 192 | 256 ] | des ]
- group [ 1 | 2 | 5 ]
- hash [
md5 | sha ]
- lifetime <60-86400>
|
IPS Signature Category Configuration Mode
- category [ all | ios_ips basic ]
- exit
- no
- category [ all | ios_ips basic ]
|
IPS Signature Category Action Configuration Mode
- exit
- no
- retired [ false | true ]
|
IPS Signature Definition Configuration Mode
- exit
- retired <1-65535> [ <0-65535> ]
|
IPS Signature Definition Sig Configuration Mode
IPS Signature Definition Sig Engine Configuration Mode
- event-action [ deny-packet-inline | produce-alert ]
- exit
- no
- event-action [ deny-packet-inline | produce-alert ]
|
IPS Signature Definition Sig Status Configuration Mode
- enabled [ false | true ]
- exit
- no
- enabled [ false | true ]
- retired [ false | true ]
- retired [ false | true ]
|
Parser View Configuration Mode
- commands [ configure | exec | interface | line | router ]
include [ all ] LINE
- exit
- no
- commands [ configure | exec | interface | line | router ]
include [ all ] LINE
- secret
- secret [ 0 | 5 ] LINE
|
Router EIGRP Mode
-
auto-summary
-
exit
-
metric
weights <0-8> <0-256> <0-256> <0-256> <0-256>
<0-256>
-
network
A.B.C.D [ A.B.C.D ]
-
redistribute
-
connected [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
eigrp <1-65535> [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
rip [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
static [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric bandwidth delay reliability effective BW MTU ]
-
no
-
auto-summary
-
metric weights
-
network A.B.C.D [ A.B.C.D
-
redistribute
-
connected [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
eigrp <1-65535> [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
rip [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
static [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric bandwidth delay reliability effective BW MTU ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
variance <1-128>
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
variance <1-128>
|
IPv6 Router Eigrp Mode
-
router-id
A.B.C.D
-
metric weights
<0-8> <0-255> <0-255> <0-255> <0-255> <0-255>
-
shutdown
-
no
-
router-id
-
metric weights <0-8> <0-255> <0-255> <0-255> <0-255> <0-255>
-
shutdown
|
Router OSPF Mode
-
area
-
[ <0-4294967295> | A.B.C.D ] authentication [ message-digest ]
-
[ <0-4294967295> | A.B.C.D ] nssa [no-summary]
-
[ <0-4294967295> | A.B.C.D ] virtual-link A.B.C.D
-
default-information
originate
-
exit
-
log-adjacency-changes
[ detail ]
-
network
A.B.C.D A.B.C.D area [ <0-4294967295> | A.B.C.D ]
-
redistribute
-
connected [metric <0-16777214>] [subnets]
-
eigrp <1-65535> [metric <0-16777214>] [subnets]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric ospf-default-metric ] [subnets]
-
rip [metric <0-16777214>] [subnets]
-
static [metric <0-16777214>] [subnets]
-
no
-
area
-
[ <0-4294967295> | A.B.C.D ] authentication [ message-digest ]
-
[ <0-4294967295> | A.B.C.D ] nssa [no-summary]
-
[ <0-4294967295> | A.B.C.D ] virtual-link A.B.C.D
-
default-information
-
log-adjacency-changes [ detail ]
-
network A.B.C.D A.B.C.D area [ <0-4294967295> | A.B.C.D ]
-
redistribute
-
connected [metric <0-16777214>] [subnets]
-
eigrp <1-65535> [metric <0-16777214>] [subnets]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric ospf-default-metric ] [subnets]
-
rip [metric <0-16777214>] [subnets]
-
static [metric <0-16777214>] [subnets]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
|
IPv6 Router Ospf Mode
-
router-id A.B.C.D
-
area area-id
-
default-cost <0-16777215>
-
nssa [no-summary]
-
stub [no-summary]
-
virtual-link A.B.C.D
-
log-adjacency-changes [ detail ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
no
-
log-adjacency-changes [ detail ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
|
Router RIP Mode
-
auto-summary
-
default-information
originate
-
distance
<1-255>
-
exit
-
network
A.B.C.D
-
redistribute
-
connected [metric [<0-16> | transparent]]
-
eigrp <1-65535> [metric [<0-16> | transparent]]
-
static [metric [<0-16> | transparent]]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external }] [ metric default-metric ]
-
no
-
auto-summary
-
default-information
-
distance <1-255>
-
network A.B.C.D
-
redistribute
-
connected [metric [<0-16> | transparent]]
-
eigrp <1-65535> [metric [<0-16> | transparent]]
-
static [metric [<0-16> | transparent]]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external }] [ metric default-metric ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
timers basic
-
version <1-2>
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
timers
basic <0-4294967295> <1-4294967295> <0-4294967295>
<1-4294967295>
-
version <1-2>
|
IPv6 Router RIP Mode
-
distance <1-254>
-
no
distance
|
DHCP Pool Configuration Mode
-
default-router
A.B.C.D
-
dns-server
A.B.C.D
-
exit
-
network
A.B.C.D A.B.C.D
-
no dns-server
|
IPv6 DHCP Pool Configuration Mode
-
prefix-delegation
-
X:X:X:X::X/<0-128> WORD [lifetime] <60-4294967295>
-
pool WORD [lifetime] <60-4294967295>
-
dns-server
X:X:X:X::X
-
exit
-
no
-
prefix-delegation
-
X:X:X:X::X/<0-128> WORD [lifetime] <60-4294967295>
-
pool WORD [lifetime] <60-4294967295>
|
Rommon Mode
-
boot
-
confreg config-register-number
-
dir
flash:
-
help
-
reset
-
set
-
tftpdnld
-
unset variable
- variable=value
|