|
List of
Router Commands |
|
Sl. No. |
Command |
Comments, if any. |
|
1 |
access-list <list-num>
{permit | deny} <source-ip-address> |
Only standard access
list of the format given is supported. |
|
2 new |
access-list <100-199> {permit/deny} protocol source-addr [source-mask]
[operator operand] destination-addr [destination-mask] [operator operand] |
Global command for extended access-lists |
|
3 new |
access-list <list-num> {permit/deny} protocol <source-addr> any
operator operand |
|
|
4 new |
access-list <list-num> {permit/deny} protocol <source-addr> any |
|
|
5 new |
access-list <list-num> {permit/deny} protocol host <source-addr>
<dest-addr><dest-mask> |
|
|
6 new |
access-list <list-num> {permit/deny} protocol any any |
|
|
7 new |
access-list <list-num>{permit/deny} protocol any host <dest-addr>
operator operand |
|
|
8 new |
access-list <list-num> {permit/deny} protocol host <source-addr>
any operator operand |
|
|
9 new |
access-list <list-num> {permit/deny} protocol <source-addr>
<source-wmask> host <dest-addr> |
|
|
10 |
banner motd <banner> |
|
|
11 |
bandwidth <kilobits> |
Required bandwidth, in
kilobits per second. |
|
12 |
cdp advertise-v2 |
|
|
13
|
cdp enable |
|
|
14
|
cdp run |
|
|
15
|
cdp holdtime <seconds> |
|
|
16
|
cdp timer <seconds> |
|
|
17
|
clear arp-cache |
|
|
18
|
clock rate <bps> |
Desired clock rate in
bits per second: 1200, 2400, 4800, 9600, 19200, 38400, 56000, 64000 etc. |
|
19
|
config-register <value> |
Hexadecimal or decimal
value that represents the 16-bit configuration register value. It is used at
the router start-up. The value range is from 0x0 to 0xFFFF (0 to 65535 in
decimal). Normally, the default value is 0x2102 |
|
20
|
configure terminal |
|
|
21 |
copy running-config
startup-config |
|
|
22 |
copy startup-config
running-config |
|
|
23 |
description <string> |
Character string from
1 to 80 characters. |
|
24 |
disconnect |
Terminates the suspended telnet session and then logout it. |
|
25 new |
copy running-config tftp: |
Running configuration file is copied to TFTP server |
|
26 new |
copy tftp: running-config |
Copies configuration file from TFTP server to new router |
|
27 new |
copy tftp: startup-config |
Copies configuration file from TFTP server to new router |
|
28 |
debug ip packet |
|
|
29 |
disable |
|
|
30 |
disconnect |
|
|
31 |
disconnect <TELNET_ID> |
|
|
32 |
enable |
|
|
33 |
enable password <password> |
|
|
34 |
enable secret <password> |
|
|
35 |
erase startup-config |
|
|
36 new |
encapsulation dot1q <vlan id> |
Command for router in interface configuration mode |
|
37 |
encapsulation <encapsulation-type> |
Only PPP/HDLC are
supported at this time by the simulator.
ex: encapsulation hdlc |
|
38 new |
encapsulation framerelay [cisco][ietf] |
|
|
39 |
end |
|
|
40 |
exec-timeout <minutes>
[seconds] |
seconds is
optional. |
|
41 new |
frame-relay lmi-type <lmi_type> |
LMI type is specific to the entire interface,not to a VC. |
|
42 new |
frame-relay map<protocol-name> <ip-address> <dlci_num> |
It configures the manual resolution of PVC's. |
|
43 new |
frame-relay map<protocol-name> <ip-address> <dlci_num>
broadcast |
|
|
44 new |
frame-relay map<protocol-name> <ip-address> <dlci_num>
broadcast cisco |
|
|
45 new |
frame-relay map<protocol-name> <ip-address> <dlci_num>
broadcast ietf |
|
|
46 new |
frame-relay map<protocol-name> <ip-address> <dlci_num> cisco |
|
|
47 new |
frame-relay map<protocol-name> <ip-address> <dlci_num> ietf |
|
|
48 |
hostname <host-name> |
|
|
49 |
interface ethernet 0 |
|
|
50 new |
interface fa <Port-number> |
|
|
51 new |
interface fa <Slot-number>/<Port-number> |
|
|
52 new |
interface fa <Port-number>.<Subint-number> |
|
|
53 new |
interface fa <Slot-number>/<Port-number>.<Subint-number> |
|
|
54 new |
interface loopback <port-number> |
Loop back interface numbers 0 to 9 are supported |
|
55 |
interface serial 0 |
|
|
56 new |
ip access-group <named ACL> |
Interface sub command to enable named access-list |
|
57 |
ip access-group <num> in |
|
|
58 |
ip access-group <num> out |
|
|
59 new |
ip access-list extended <named ACL> |
Global command for Named Access-List |
|
60 |
ip address <ip-address> <sub-net
mask> |
|
|
61 |
ip default-network <ip-address> |
|
|
62 |
ip domain-lookup |
|
|
63 |
ip name-server<ip-address> |
|
|
64 new |
ip nat inside source list <ANUM> pool <WORD> |
|
|
65 new |
ip nat inside source static <ip-address> <ip-address> |
|
|
66 new |
ip nat inside |
|
|
67 new |
ip nat outside source static <ip-address> <ip-address> |
|
|
68 new |
ip nat outside |
|
|
69 new |
ip nat pool <WORD> <ip-address> <ip-address> netmask <ip-address> |
|
|
70 new |
ip nat inside source list <num> interface <int> overload |
PAT command |
|
71 |
ip route
<prefix> <mask> {next-hop-ip-addr | interface-type} |
The command supported
by the simulator are:
ip route <prefix> <mask> <next-hop-ip> and
ip route <prefix> <mask> serial |
|
72 |
ip route 0.0.0.0 0.0.0.0 <ip-address> |
|
|
73 |
ip route<ip-address> <ip-address> <ip-address> |
|
|
74 |
ip route
<ip-address> <ip-address> serial 0 |
Not supported at this
time |
|
75 |
ip host <name> <ip-address> |
Complete syntax for
this command: ip host name [tcp-port-number] address1 [address2...address8] |
|
76 |
ip routing |
|
|
77 |
ipx routing |
|
|
78 |
keepalive <seconds> |
|
|
79 |
line aux |
|
|
80 |
line console 0 |
|
|
81 |
line vty |
|
|
82 |
logging synchronous |
|
|
83 |
login |
|
|
84 |
logout |
|
|
85 |
network <ip-address> |
Used with
routing rip, igrp etc. |
|
86 new |
network <ip-address> < ip-address > area <Area-id> |
(For ospf routing) |
|
87 |
no cdp enable |
|
|
88 |
no ip address |
|
|
89 |
no ip routing |
|
|
90 |
no cdp run |
|
|
91 new |
no frame map <protocol name> <ip-address> <dlci_num> |
|
|
92 new |
no frame map<protocol-name> <ip-address> <dlci_num>
broadcast |
|
|
93 new |
no frame map<protocol-name> <ip-address> <dlci_num> cisco |
|
|
94 new |
no frame map<protocol-name> <ip-address> <dlci_num> ietf |
|
|
95 |
no ip domain-lookup |
|
|
96 new |
no ip nat pool <WORD><ip-address> <ip-address> netmask
<mask-addr> |
Nat pool related command |
|
97 new |
no ip nat inside source list <ANUM> pool <WORD> |
|
|
98 new |
no ip nat inside source static <ip-address> <ip-address> |
|
|
99 new |
no router eigrp |
|
|
100 new |
no router ospf |
|
|
101 new |
no router rip |
|
|
102 |
no shutdown |
|
|
103 |
password <password> |
|
|
104 |
ping <host-name> |
|
|
105 |
ping <ip-address> |
|
|
106 |
reload |
|
|
107 |
resume <TELNET_ID> |
|
|
108 new |
router eigrp <aut_sys> |
|
|
109 new |
router ospf <proc_id> |
Process_id is locally significant and is used to differentiate different
ospf processes running on a router. |
|
110 |
router rip |
|
|
111 |
shutdown |
|
|
112 |
show access-list |
|
|
113 new |
show arp |
Displays entries in the ARP table |
|
114 |
show cdp neighbor |
|
|
115 |
show flash |
|
|
116 |
show history |
|
|
117 new |
show frame-relay lmi |
Shows the detailed statistics regarding LMI. |
|
118 new |
show frame-relay map |
|
|
119 new |
show frame-relay pvc <dlci_num> |
Shows all the frame relay PVC's terminated and their statistics at a
specified router |
|
120 |
show hosts |
|
|
121 |
show ip arp |
|
|
122 |
show ip eigrp neighbors detail |
|
|
123 |
show ip eigrp neighbors |
|
|
124 |
show ip eigrp topology |
|
|
125 |
show ip eigrp traffic |
|
|
126 |
show ip interface brief |
|
|
127 |
show ip interface |
|
|
128 |
show ip ospf interface |
|
|
129 new |
show ip nat statistics |
|
|
130 new |
show ip nat translations |
|
|
131 |
show ip ospf database |
|
|
132 |
show ip ospf neighbor detail |
|
|
133 new |
show ip protocols |
Displays parameters and current state of the active routing protocol
process. |
|
134 |
show ip route |
|
|
135 |
show interfaces |
|
|
136 |
show interfaces ethernet 0 |
|
|
137 |
show interfaces serial 0 |
|
|
138 new |
show interfaces loopback <Loopback_num> |
Loopback interface number,0 to 9 are supported |
|
139 |
show protocols |
|
|
140 |
show running-config |
|
|
141 |
show sessions |
|
|
142 |
show startup-config |
|
|
143 new |
show users |
Displays users connected to the router |
|
144 |
show version |
|
|
145 |
telnet <host-name> |
|
|
146 |
telnet <IP-address> |
|
|
147 new |
traceroute <hostname> |
Lists all routers along path to destination and finds the routing problems
if any. |
|
148 new |
traceroute <ip-address> |
|
|
149 |
username <name> password
<password> |
|
|
150 new |
version 2 |
For RIPv2 routing |
|
151 |
write erase |
|
|
152 |
write memory |
|
|
153 |
write terminal |
|
| |
|
|
|
List of Switch Commands
Supported |
| Sl.No. |
commands |
Comments,
if any. |
| 1 |
banner
motd <phrase> |
|
| 2 |
copy
startup-config running-config |
|
| 3 |
configure
terminal |
|
| 4 |
cdp
advertise-v2 |
|
| 5 |
copy
running-config startup-config |
|
| 6 |
cdp
holdtime <seconds> |
|
| 7 |
cdp
timer <seconds> |
|
| 8 |
clock
set hh:mm:ss <1-31> Month <2004-2035> |
|
| 9 |
cdp
run |
|
| 10 |
duplex
<duplex-type> |
|
| 11 |
description
<phrase> |
|
| 12 |
disable |
|
| 13 |
enable |
|
| 14 |
erase
startup-config |
|
| 15 |
enable
secret <secret> |
|
| 16 |
enable
password <password> |
|
| 17 |
end |
|
| 18 |
hostname
<name> |
|
| 19 |
interface
fastethernet <0-0>/<0-24> |
Depends
on the switch type. For module 0, port 1 the command is interface
fastethernet 0/1 |
| 20 |
ip
default-gateway <ip-address> |
|
| 21
new |
ip
host<hostname> <ip-address> |
|
| 22
new |
interface range
fastethernet <0-0>/<0-12> |
|
| 23 |
interface
vlan <vlan #> |
You
can enter interface config mode.
example: interface vlan 1
(config-if)#ip address 192.168.10.1 255.255.255.0 |
| 24 |
ip
name-server <ip-address> |
|
| 25 |
ip
address <ip-address> <subnet mask> |
A
switch can have one IP address. The IP address of the switch can be
accessed only through ports that belong to the management VLAN. |
| 26 |
line
vty 0 15 |
|
| 27 |
line
console 0 |
|
| 28 |
login |
|
| 29 |
logout |
|
| 30
new |
mac-address-table
static <mac-address> vlan <valn_num> interface
fastethernet <pnum> |
|
| 31
new |
no ip address |
|
| 32
new |
no shutdown |
It re-enables the
interface when the interface is disabled.By default interfaces are
enabled. |
| 33
new |
no switchport mode |
|
| 34
new |
no switchport <port_security> |
|
| 35 |
password
<password> |
|
| 36 |
reload |
|
| 37 |
show
interfaces |
|
| 38 |
show
history |
|
| 39
new |
show mac-address-table |
Displays mac-address-table
information |
| 40 |
show
version |
Display
version information for the hardware and firmware |
| 41
new |
show vlan |
Displays vlan
information |
| 42
new |
show vlan-membership |
Displays vlan
membership information |
| 43
new |
show vtp status |
Displays vtp status
information |
| 44 |
show
startup-config |
|
| 45 |
show
flash |
|
| 46 |
show
running-config |
|
| 47 |
show
ip interface brief |
|
| 48 |
shutdown |
Disables
a port and shuts-down management vlan. no shutdown command enables a
port. |
| 49 |
snmp-server
enable traps vtp |
|
| 50 |
speed
<speed> |
Enter
switch port speed 10,100, auto. |
| 51
new |
switchport access vlan
<vlan_num> |
|
| 52
new |
switchport mode access |
Access mode of the
switch is set to access |
| 53
new |
switchport mode trunk |
Access mode of the
switch is set to trunk |
| 54
new |
switchport
port-security mac-address sticky<mac_addr> |
|
| 55
new |
switchport
port-security maximum <max_macadd> |
|
| 56
new |
switchport
port-security violation <violat_mode> |
|
| 57
new |
switchport trunk
encapsulation dot1q |
Command for switch in
interface configuration mode |
| 58
new |
vlan<vlan_num> |
VLAN numbers can range
1-1000,However only 64VLANs can be active at a time. |
| 59 |
vlan
<vlan_num> name <vlan_name> |
VLAN numbers can
range 1-1000, VLAN name can be upto 32 characters |
| 60 |
vtp
client |
Place
the switch in VTP client mode. But it does not store VLAN information
in non-volatile memory. |
| 61 |
vlan
database |
|
| 62 |
vtp
transparent |
SW(vlan)#
vtp transparent
Sets the switch to VTP TRANSPARENT mode. |
| 63 |
vtp
password <password> |
Passwords
are case sensitive. Passwords should match on all switches in the same
domain. |
| 64 |
vtp
domain <name> |
VTP
domain name can be 1 to 32 characters long and identifies the VTP
administrative domain for the switch. The domain name is case
sensitive. |
| 65 |
vtp
pruning |
|
| 66 |
vtp server |
Place
the switch in VTP server mode. Stores VLAN information in non-volatile
memory. Generates VLAN advertisements. |
| |