12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Menu
Packet Tracer Cisco Commands list CLI Basic
by Waqas Azam
Packet Tracer Cisco CLI Commands list
Here is the detailed Cisco router configuration commands list, which can be implemented
with packet tracer. Packet tracer is a network simulator used for configuring and creating the
virtual cisco devices and network. There are also some other similar software but Cisco IOS
output will be same on all simulators.
Related Article: PowerShell vs Command prompt
Cisco Router Configuration Step By Step
To configure any device in packet tracer you are required to open or access its CLI. You can
do it by clicking any device and then navigating to CLI tab. Once you are at CLI you can
perform all Cisco Commands here.
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 1/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Cisco IOS supports numerous command modes which can be practice with packet tracer,
followings are the main command modes of cisco CLI with specific commands to navigate
from one mode to another. Also Check out some best cheap routers for real practice.
Command for
Mode Symbol How to access this mode
leaving this mode
Default mode after booting.
User EXEC Mode Router > Press enter for accessing Use exit command
this.
Use enable command from
Privileged EXEC
Router # user exec mode for entering exit
mode
into this mode
Global Use configure terminal
Exit or Ctrl+Z for
Configuration Router(config)# command from privileged
user EXEC mode
mode exec mode
Use interface <interface
Use exit command
Interface Router(config- name+number> command
to return in global
Configuration if)# from global configuration
mode
mode
ROMMON ROMMON > Enter reload command from Use exit command.
privileged exec mode. Press
CTRL + C key combination
during the first 60 seconds
of booting process.
Watch a video of
rommon mode
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 2/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
IOS commands are not case sensitive it means that you can use them in uppercase,
lowercase, or mixed case, but passwords are case sensitive. Therefore make sure you type it
in correctly. In any mode, you can obtain a list of commands available on that mode by
entering a question mark (?).
How to Change the Cisco Router name
You can change the cisco router name by using command hostname in global configuration
mode.
How to set the Enable password:
You can set the password for protecting enable mode by following command: (Following
command will set the password to cisco)
How to set the telnet password on Cisco:
You can access the cisco router remotely by VTY lines, these are the Virtual Terminal lines for
access router, you can set password on these line by using the following commands:
Router(config)#line vty 0 4
Router(config-line)#password Cisco
Router(config-line)#no login
The above command will set the telnet password to “Cisco”.
How to set the IP address to Cisco interface:
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 3/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
You can set the IP address to any Cisco device interface by using the following commands:
Router(config)#interface <interface name&number>
Router(config-if)#ip address <IP address> <subnet mask>
How to enable a port or interface
Router(config-if)#no shut
Example:
How to check the IP address of all interfaces:
You can use the “show ip interface brief” command in Privileged EXEC mode for checking
the IP address of all interface of Cisco device.
How to save the configurations:
You can use the following command for router configuration to Nvram for use at next boot
up
Router#copy running-config startup-config
How to configure the access-list on Cisco:
You can configure the access-list on cisco by using following commands:
Router(config)#Access-list <number> <permit|deny> <ip> <mask>
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 4/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Router(config-if)#ip access-group <number> <in|out>
OR
Router(config)#Access-list <number> <permit|deny> <protocol> <from ip and mask> <to
ip and mask> <port number>
Router(config-if)#
Command Example:
Router(config)#access-list 2 deny 192.168.0.33 0.0.0.255
Router(config)#interface fastEthernet 4/0
Router(config-if)#ip access-group 2 in
How to configure the default route on Cisco:
Following command will set the default route to 10.10.10.101.
Router(config)# ip route 0.0.0.0 0.0.0.0 10.10.10.101
How to create a static route on Cisco router
Router(config-router)#ip route [destination_network] [mask] [next-hop_address
you can set a static route by using above command example is also given below:
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 5/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Router(config-router)#ip route 192.132.23.1 255.255.255.0 10.10.10.1
—————————
——————-
RIP Configuration Commands
Commands Details
Router(config)#Router rip Enable RIP routing on router.
Router(config-router)#Network <network ip
address>
Define the network which you want to
advertise in RIP. E.g. Network 192.168.88.0
Why we use RIP?
OSPF Configuration Commands
Enable OSPF routing on router. Process-id
Router(config)#Router ospf <process-id> is any number & must be same for all
networks in AS.
Router(config-router)#Network < ip IP address is the IP of network which will be
address> <wild cardmask> advertise in OSPF and wild card mask will
represent the network bits. E.g. network
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 6/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Why we use OSPF? 192.168.1.0 0.0.255.255 is equilent to
192.168.0.0/16
EIGRP configuration Commands
AS number is a number must be same for
Router(config)#Router eigrp <AS number> networks which are desired to connect with
each other. E.g. Router eigrp 1
Router(config-router)#Network < ip
Advertise network in EIGRP
address>
Router(config-router)#no auto-summary
Disable auto summay
Why we use EIGRP?
How to set banner message on Cisco Device:
banner motd <banner start identification> banner message <banner end
identification>
Command Example:
banner motd #Unauthorized access to this device is prohibited!#
Above command with set the banner to “Unauthorized access to this device is prohibited”
Famous Show Commands in Privileged EXEC Mode
You can run all these command for checking different setting of Cisco device in privileged
EXEC mode:
Show Version
Show running-config
Show Vlan
Show mac-address-table
Show clock
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 7/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Show privilege
Show interface <interface name>
show ip route
Show controllers
show cdp neighbors
Show memory
Show protocols
Show startup-config
Show Flash
Show spanning-tree
Verifying Commands for Network Connectivity
You can use these commands to verify network connectivity for your router
router# enable
router# ping [ip-address | hostname]
Command Example:
router# ping 192.168.3.1
(A reply response from host 192.168.3.1 will verify the connectivity)
How to telnet any host:
telnet {ip-address | hostname}
e.g. router# telnet 192.168.3.1
Related Article: NMAP Commands Linux
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 8/9
12/21/22, 10:58 AM Packet Tracer Cisco Commands list CLI Basic - W7cloud
Packet Tracer Labs
https://w7cloud.com/packet-tracer-cisco-commands-list-cli-basic/ 9/9