You are on page 1of 16

CCNA Routing and Switching 200-105 Network Simulator

Router Commands (Configure, Exec, Show)

CONFIGURE (Router)
accept-lifetime hh:mm:ss <1-31> MONTH <1993-2035> infinite
accept-lifetime hh:mm:ss MONTH <1-31> <1993-2035> infinite
no accept-lifetime
access-class {<1-199> | name} {in | out}
no access-class {<1-199> | name} {in | out}
access-list <1-99> {deny | permit} { any | {network wildcard-mask {hostname | ip-address}}
no access-list <1-99>
access-list {<1-99> | <100-199>} remark text
access-list <100-199> {deny | permit} {ip | icmp | } { network wildcard-mask | any | host {hostname
| ip-address} { network wildcard-mask | any | host {hostname | ip-address}
access-list <100-199> {deny | permit} {tcp | udp} { network wildcard-mask | any | host {hostname |
ip-address} [{eq | neq} [port_num | keyword]] { network wildcard-mask| any | host {hostname | ip-
address } [{eq | neq} [port_num | keyword]]
no access-list <100-199>
auto-cost reference-bandwidth value
no auto-cost reference-bandwidth value
auto-summary
no auto-summary
bandwidth <1-10000000>
no bandwidth
boot system {flash | ftp | rcp | rom | tftp} system-filename [ip-address]
no boot system {flash | ftp | rcp | rom | tftp} system-filename [ip-address]
cdp enable
no cdp enable
clock rate <1200-2000000>
no clock rate
clock timezone zone hours [minutes]
config-register <0x0000-0xFFFF>
no config-register
crypto key generate rsa
no crypto key generate rsa
channel-mode
default-information originate
default-router address
no default-router
{deny | permit} { any | {ip-address | hostname } | host {ip-address | hostname } }
no {deny | permit} { any | {ip-address | hostname } | host {ip-address | hostname } }
{deny | permit} {icmp | ip} { network wildcard-mask| any | host {ip-address | hostname} { network
wildcard-mask| any | host {ip-address | hostname}
CONFIGURE (Router)
{deny | permit} {tcp | udp} { network wildcard-mask | any | host {ip-address | hostname}} [{eq |
neq} port] { network wildcard-mask | any | host {ip-address | hostname}} [{eq | neq} port]
no {deny | permit} {icmp | ip | tcp | udp} { network wildcard-mask | any | host {ip-address |
hostname}} { network wildcard-mask | any | host {ip-address | hostname}}
description LINE
no description
dns-server address
no dns-server
domain-name domain
no domain-name
duplex {auto | full | half}
no duplex
eigrp router-id ip-address
no eigrp router-id ip-address
enable password password
no enable password
enable secret password
no enable secret
encapsulation {frame-relay [ietf] | hdlc | ppp}
no encapsulation [frame-relay [ietf] | hdlc | ppp]
end
exit
frame-relay interface-dlci dlci-number [ietf]
no frame-relay interface-dlci dlci-number [ietf]
frame-relay lmi-type {ansi | q933a | cisco}
no frame-relay lmi-type {ansi | q933a | cisco}
frame-relay map ip ip-address dlci-number {[broadcast] | [ietf | cisco]}
no frame-relay map ip ip-address
frame-relay map ipv6 ipv6-address dlci-number
no frame-relay map ipv6 ipv6-address dlci-number
frequency
glbp group preempt
no glbp group preempt
glbp group priority level
no glbp priority
glbp group weighting track tracked-object [decrement decrement-interval]
no glbp weighting track tracked-object [decrement decrement-interval]
glbp ip [ip-address]
no glbp ip [ip-address]
history size <0-256>
hostname hostname
no hostname
icmp-echo
interface interface
no interface interface
interface tunnel
CONFIGURE (Router)
ip access-group {<1-199> | name} {in | out}
no ip access-group {<1-199> | name} {in | out}
ip access-list {standard | extended} name
ip address {{ip-address netmask} [secondary] | dhcp}
no ip address {{ip-address netmask} [secondary] | dhcp}
ip authentication key-chain eigrp asn chain-name
no ip authentication key-chain eigrp asn chain-name
ip authentication mode eigrp asn md5
no ip authentication mode eigrp asn md5
ip classless
no ip classless
ip default-network ip-address
no ip default-network ip-address
ip dhcp excluded-address low-address [high-address]
no ip dhcp excluded-address low-address [high-address]
ip dhcp pool name
no ip dhcp pool name
ip domain-lookup
no ip domain-lookup
ip domain-name domain-name
no ip domain-name
ip flow {ingress | egress}
no ip flow {ingress | egress}
ip flow-export destination ip-address udp-port
no ip flow-export destination ip-address udp-port
ip flow-export source interface-type interface-number
no ip flow-export source interface-type interface-number
ip flow-export version version
ip hello-interval eigrp asn timer-value
no ip hello-interval eigrp asn timer-value
ip helper-address address
ip hold-time eigrp asn timer-value
no ip hold-time eigrp asn timer-value
ip host hostname ip-address
no ip host hostname
ip name-server address
ip nat {inside | outside}
no ip nat {inside | outside}
ip nat inside source {list {access-list-number | access-list-name}} {interface interface | pool pool-
name} [overload]
no ip nat inside source {list {access-list-number | access-list-name}} {interface interface | pool
pool-name} [overload]
ip nat inside source static source-local-ip-address inside-global-ip-address
no ip nat inside source static source-local-ip-address inside-global-ip-address
ip nat pool pool-name start-ip end-ip {netmask netmask | prefix-length prefix-length}
no ip nat pool pool-name start-ip end-ip {netmask netmask | prefix-length prefix-length}
CONFIGURE (Router)
no ip nat pool pool-name
ip ospf process-id area area-id
ip ospf authentication [message-digest | null]
no ip ospf authentication
ip ospf authentication-key key-value
no ip ospf authentication-key key-value
ip ospf cost interface-cost
no ip ospf cost
ip ospf dead-interval interval-number
no ip ospf dead-interval
ip ospf hello-interval interval-number
no ip ospf hello-interval
ip ospf message-digest-key key md5 key-value
no ip ospf message-digest-key key md5 key-value
ip ospf network-type {point-to-point | point-to-multipoint}
ip ospf priority [0 - 255]
no ip ospf priority
ip route A.B.C.D m.m.m.m A.B.C.D
ip route A.B.C.D m.m.m.m A.B.C.D [1-255] [distance] [permanent]
ip route A.B.C.D m.m.m.m interface-type interface-number [1-255] [distance] [permanent]
ip route network network-mask {next-hop| next-hop-interface} [distance] [permanent]
no ip route network network-mask [next-hop] [distance] [permanent]
ip sla
ip sla schedule
ip ssh version 2
ip subnet-zero
no ip subnet-zero
ip summary-address eigrp as-number ipv4-prefix ipv4-mask
ipv6 address {ipv6-link-local-address link-local | ipv6-prefix/prefix-length [eui-64] | autoconfig}
no ipv6 address {ipv6-link-local-address link-local | ipv6-prefix/prefix-length [eui-64] |
autoconfig}
ipv6 eigrp as-number
no ipv6 eigrp as-number
ipv6 enable
no ipv6 enable
ipv6 hello-interval eigrp as-number seconds
no ipv6 hello-interval eigrp as-number seconds
ipv6 hold-time eigrp as-number seconds
no ipv6 hold-time eigrp as-number seconds
ipv6 host hostname ipv6-address1 [ipv6-address2...ipv6-address4]
no ipv6 host hostname ipv6-address1 [ipv6-address2...ipv6-address4]
ipv6 ospf cost cost
no ipv6 ospf cost
ipv6 ospf dead-interval seconds
no ipv6 ospf dead-interval
ipv6 ospf hello-interval seconds
CONFIGURE (Router)
no ipv6 ospf hello-interval
ipv6 ospf process-id area area-id
no ipv6 ospf process-id area area-id
ipv6 ospf priority priority
no ipv6 ospf priority
ipv6 host hostname ipv6-address1 [ipv6-address2...ipv6-address4]
no ipv6 host hostname ipv6-address1 [ipv6-address2...ipv6-address4]
ipv6 rip name enable
no ipv6 rip name enable
ipv6 route destination-prefix/prefix-length {next-hop-address|next-hop-interface next-hop-link-
local-address} [distance]
no ipv6 route destination-prefix/prefix-length {next-hop-address|next-hop-interface next-hop-
link-local-address} [distance]
ipv6 router eigrp as-number
no ipv6 router eigrp as-number
ipv6 router rip name
no ipv6 router rip name
ipv6 router ospf process-id
no ipv6 router ospf process-id
ipv6 split-horizon eigrp as-number
no ipv6 split-horizon eigrp as-number
ipv6 traffic-filter
ipv6 unicast-routing
no ipv6 unicast-routing
keepalive <0-32767>
no keepalive
key <0-2147483647>
no key <0-2147483647>
key chain name
no key chain name
key Key-identifier
no key Key-identifier
key-string keystring
no key-string keystring
lease {days [hours [minutes]]}
no lease
license boot module c2900 technology-package datak9 disable
no license boot module c2900 technology-package datak9 disable
license revoke
line console <0-0>
line vty <0-4>
lldp receive
no lldp receive
lldp run
no lldp run
lldp transmit
CONFIGURE (Router)
no lldp transmit
login [local]
no login [local]
logging buffered [size]
no logging buffered
logging host {ip-address}
no logging host {ip-address}
logging on
no logging on
maximum-paths <1-16>
no maximum-paths <1-16>
monitor session
neighbor neighbor_address remote-as remote_as
network ebgp_prefix [mask ebgp_mask]
network network-number {netmask | prefix-length} [secondary]
no network network-number {netmask | prefix-length} [secondary]
network network wildcard-mask area <0-4294967295>
no network network wildcard-mask area <0-4294967295>
network network [wildcard-mask]
no network network [wildcard-mask]
ntp master
no ntp master
ntp peer {ip-address}
no ntp peer {ip-address}
ntp server {ip-address}
no ntp server {ip-address}
passive-interface {default | interface-type interface-number}
no passive-interface {default | interface-type interface-number}
password password
no password
ppp authentication chap
no ppp authentication
remark text
router bgp
router eigrp autonomous-system
no router eigrp autonomous-system
router-id rid
router-id router-id
no router-id router-id
router ospf process id
no router ospf process-id
router rip
no router rip
router-id router-id
send-lifetime hh:mm:ss <1-31> MONTH <1993-2035> infinite
send-lifetime hh:mm:ss MONTH <1-31> <1993-2035> infinite
CONFIGURE (Router)
no send-lifetime
service timestamps
no service timestamps
shutdown
no shutdown
snmp-server chassis-id number
no snmp-server chassis-id
snmp-server community string [ro | rw]
no snmp-server community string
snmp-server contact text
no snmp-server contact
snmp-server enable traps
snmp-server host host-id [traps | informs] [version {1| 2c | 3 [auth |noauth | priv]}] community-
string [udp-port port-number] [notification-type]
no snmp-server host host-id [traps | informs] [version {1| 2c | 3 [auth | noauth | priv]}]
community-string [udp-port port-number] [notification-type]
snmp-server location text
no snmp-server location
speed {auto | speed}
no speed
standby [group-number] ip [ip-address]
no standby [group-number] ip [ip-address]
standby [group-number] preempt
no standby [group-number] preempt
standby [group-number] priority priority
no standby [group-number] priority
standby [group-number] track object-number [decrement priority-decrement] [shutdown]
no standby [group-number] track object-number
standby version {1 | 2}
no standby version
track object-number interface type number {line-protocol | ip routing}
no track object-number
transport input {ssh | telnet} [ssh | telnet]
no transport input
tunnel destination
no tunnel destination
tunnel mode
tunnel source
no tunnel source
username username password password
no username username
variance <1-128>
no variance
version <1-2>
no version <1-2>
EXEC (Router)
clear ip dhcp [pool name] binding {* | ip-address}
clear ip dhcp conflict {* | ip-address}
clear ip nat translation *
clear logging
clock set hh:mm:ss date month year
configure
configure terminal
copy running-config startup-config
copy startup-config running-config
copy tftp flash
debug frame-relay lmi
no debug frame-relay lmi
debug ip rip
no debug ip rip
debug ip ospf adj
debug ppp authentication
no debug ppp authentication
no debug all
disable
disconnect [WORD]
enable
erase startup-config
exit
license clear datak9
license install stored-location-url
license save file-sys://lic-location
ping { ip-address | hostname }
reload
resume [session-number]
setup
ssh -l username {ip-address | hostname}
telnet {ip-address | hostname}
terminal history size <0-256>
terminal ip netmask-format bitcount
terminal ip netmask-format decimal
terminal ip netmask-format hexadecimal
terminal monitor
terminal no monitor
traceroute {ip-address | hostname}
undebug all
verify/md5
write erase
SHOW (Router)
show access-lists [access-list-number | access-list-name]
show arp
show cdp
show cdp entry entry-name
show cdp interface
show cdp neighbors
show cdp neighbors detail
show cdp neighbors interface
show cdp traffic
show clock
show controllers [serial 0/0/0]
show etherchannel summary
show flash
show frame-relay lmi [interface interface]
show frame-relay map
show frame-relay pvc [interface interface][dlci]
show glbp [interface-type interface-number] [group] [state] [brief]
show history
show hosts
show interfaces interface
show interfaces [interface] [description]
show interfaces description
show interface tunnel
show ip access-list
show ip access-lists [access-list-number | access-list-name]
show ip arp
show ip bgp
show ip bgp neighbors
show ip bgp summary
show ip cache flow
show ip dhcp binding [ip-address]
show ip dhcp conflict
show ip dhcp pool [pool-name]
show ip dns view
show ip flow export
show ip flow interface
show ip interface
show ip interface <interface>
show ip interface [interface]
show ip interface brief
show ip nat statistics
show ip nat translations
show ip ospf
show ip ospf database
SHOW (Router)
show ip ospf interface brief
show ip ospf neighbor [neighbor-RID]
show ip protocols
show ip route
show ip route [rip | static | connected | eigrp | ospf [process-id]]
show ip route network [netmask]
show ip sla configuration
show ip sla summary
show ip sla statistics
show ipv6 eigrp [as-number] interfaces [detail] [type number]
show ipv6 eigrp [as-number] neighbors [interface-type |detail [interface-type]
show ipv6 eigrp topology [as-number | ipv6-address] [detail]
show ipv6 interface
show ipv6 interface [interface]
show ipv6 interface brief
show ipv6 neighbors
show ipv6 neighbors [interface-type interface-number | ipv6-address | ipv6-hostname]
show ipv6 route {ipv6-hostname | ipv6-address | ipv6-prefix}
show ipv6 route {[prefix/prefix-length] | [ipv6-address]}
show ipv6 route [static | connected | eigrp | ospf]
show ip route ospf [process-id]
show ipv6 ospf [process-id] [area-id]
show ipv6 ospf [process-id] [area-id] database
show ipv6 ospf [process-id] [area-id] interface[interface-type interface-number] [brief]
show ipv6 ospf [process-id] [area-id] neighbor
show ipv6 ospf [process-id] [area-id] neighbor [neighbor-id]
show ipv6 protocols
show license all
show license feature
show license udi
show logging
show monitor
show lldp
show lldp entry
show lldp interface
show lldp neighbors
show lldp neighbors detail
show ntp associations
show ntp status
show process
show running-config
show sessions
show snmp chassis
show snmp community
show snmp contact
show snmp host
SHOW (Router)
show snmp location
show standby type number [group-number | all] [brief]
show startup-config
show track
show users
show version
show vlans

Rommon

Rommon (Router)
confreg
reset
SWITCH COMMANDS (Configure, Exec, Show)

CONFIGURE (Switch)
bandwidth <1-10000000>
no bandwidth
cdp enable
no cdp enable
cdp run
no cdp run
channel-group <1-6> mode on
no channel-group <1-6> mode on
crypto key generate rsa
no crypto key generate rsa
description LINE
no description
duplex
no duplex
enable password WORD
no enable password
enable secret WORD
no enable secret
end
exit
history size <0-256>
hostname WORD
no hostname
interface interface
no interface interface
ip address
no ip address
ip default-gateway
no ip default-gateway
ip domain-name
no ip domain-name
ip ssh version 2
ip routing
ip route
ipv6 address {ipv6-link-local-address link-local | ipv6-prefix/prefix-length [eui-64] | autoconfig}
line console <0-0>
line vty
lldp receive
no lldp receive
lldp run
no lldp run
lldp transmit
no lldp transmit
CONFIGURE (Switch)
login
no login
login local
no login local
name vlan-name
no name vlan-name
password password
no password
sdm prefer
sdm prefer default
sdm prefer dual-ipv4-and-ipv6 default
sdm prefer lanbase-routing
shutdown
no shutdown
spanning-tree bpduguard
spanning-tree [vlan vlan-number] cost <–cost>
no spanning-tree [vlan vlan-number] cost <–cost>
spanning-tree [vlan vlan-number] cost <cost value 1 - 200000000>
no spanning-tree [vlan vlan-number] cost <cost value 1 - 200000000>
spanning-tree cost <cost value 1 - 200000000>
no spanning-tree cost <cost value 1 - 200000000>
spanning-tree vlan vlan-number root {primary | secondary}
no spanning-tree vlan vlan-number root {primary | secondary}
spanning-tree portfast
no spanning-tree portfast
spanning-tree portfast default
spanning-tree portfast disable
spanning-tree portfast bpduguard default
spanning-tree vlan vlan-id
no spanning-tree vlan vlan-id
spanning-tree vlan vlan-id priority priority
no spanning-tree vlan vlan-id priority priority
speed {10 | 100 | 1000 | auto}
no speed
switchport access vlan vlan-id
no switchport access vlan
switchport mode {access | trunk | dynamic {auto | desirable}}
no switchport mode
switchport nonegotiate
no switchport nonegotiate
switchport port-security
no switchport port-security
switchport port-security mac-address mac-address
no switchport port-security mac-address mac-address
switchport port-security mac-address sticky
no switchport port-security mac-address sticky
CONFIGURE (Switch)
switchport port-security maximum <1-8192>
switchport port-security violation {protect | restrict | shutdown}
switchport trunk allowed vlan {all | add | except | remove} vlan-ids
no switchport trunk allowed vlan
switchport voice vlan vlan-id
no switchport voice vlan
transport input {telnet |ssh} [telnet |ssh]
no transport input
username username password password
no username username
vlan vlan-id
no vlan vlan-id
vtp domain domain-name
vtp mode {off | server | client | transparent}
no vtp mode [off | server | client | transparent]
vtp password password
no vtp password
vtp pruning
no vtp pruning

EXEC (Switch)
configure
configure terminal
copy running-config startup-config
copy startup-config running-config
disable
disconnect
enable
erase startup-config
exit
ping ip-address
reload
resume
ssh -l username {ip-address | hostname}
telnet {ip-address | hostname}
write erase
SHOW (Switch)
show cdp
show cdp entry
show cdp interface
show cdp neighbors
show cdp traffic
show controllers
show crypto key
show dtp interface
show flash
Show history
Show interfaces
show ip arp
show ip cache flow
show ip default-gateway
show ip flow export
show ip flow interface
show ip interface brief
show ip route
show ipv6 eigrp [as-number] interfaces [detail] [type number]
show ipv6 eigrp [as-number] neighbors [interface-type |detail [interface-type]
show ipv6 neighbors
show ipv6 neighbors [interface-type interface-number | ipv6-address | ipv6-hostname]
show ipv6 route [static | connected | eigrp | ospf]
show ipv6 route {ipv6-hostname | ipv6-address | ipv6-prefix}
show license all
show license feature
show license udi
show lldp
show lldp entry
show lldp interface
show lldp neighbors
show lldp neighbors detail
show logging
show mac address-table [static | dynamic] [address mac-address | interface interface | vlan vlan-id]
[address mac-address | interface interface | vlan vlan-id] [address mac-address | interface interface
| vlan vlan-id]
show port-security [address | interface interface]
show running-config
show sessions
show snmp chassis
SHOW (Switch)
show snmp community
show snmp contact
show snmp host
show snmp location
show spanning-tree
show spanning-tree interface portfast
show spanning-tree interface detail
show spanning-tree [vlan vlan-id] bridge
show spanning-tree vlan vlan-id
show standby type number [group-number | all] [brief]
show startup-config
show track
show users
show version
show vlan
show vlan brief
show vlan id vlan-id
show vlan name vlan-name
show vlan summary
show vtp status

PC COMMANDS

CONFIGURE (PC)
gateway ip-address
ip address {network mask | dhcp}
ipconfig /release
ipconfig /renew
ipv6 address {autoconfig | ipv6-prefix/prefix-length}
ipv6 gateway ipv6-prefix
mac-address mac-address

EEXEC (PC)
route print

SHOW (PC)
arp -a
arp -d {* | ip-address}
ipconfig /all
ndp -an
ping ip-address
tracert ip-address

You might also like