Packet Tracer Cisco Commands list CLI Basic

Packet Tracer Cisco Commands list CLI Basic

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.



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.

Mode Symbol How to access this mode Command for leaving this mode
User EXEC Mode Router > Default mode after booting. Press enter for accessing this. Use exit command
Privileged EXEC mode Router # Use enable command from user exec mode for entering into this mode exit
Global Configuration mode Router(config)# Use configure terminal command from privileged exec mode Exit or Ctrl+Z for user EXEC mode
Interface Configuration Router(config-if)# Use interface <interface name+number> command from global configuration mode Use exit command to return in global mode
ROMMON ROMMON > Enter reload command from privileged exec mode. Press CTRL + C key combination during the first 60 seconds of booting process. Use exit command.



Watch a video of rommon mode

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:

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



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.

 show ip interface brief

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>

Router(config-if)#ip access-group <number> <in|out>


Router(config)#Access-list <number> <permit|deny> <protocol> <from ip and mask> <to ip and mask> <port number>


Command Example:

Router(config)#access-list 2 deny

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

Router(config)# ip route

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:

Router(config-router)#ip route



RIP Configuration Commands
Commands Details
Router(config)#Router rip Enable RIP routing on router.
Router(config-router)#Network <network ip address>


Why we use RIP?

Define the network which you want to advertise in RIP. E.g. Network

OSPF Configuration Commands


Router(config)#Router ospf <process-id> Enable OSPF routing on router. Process-id is any number & must be same for all networks in AS.
Router(config-router)#Network < ip address> <wild cardmask>


Why we use OSPF?

IP address is the IP of network which will be advertise in OSPF and wild card mask will represent the network bits. E.g. network is equilent to
EIGRP configuration Commands  
Router(config)#Router eigrp <AS number> AS number is a number must be same for networks which are desired to connect with each other. E.g. Router eigrp 1
Router(config-router)#Network < ip address> Advertise network in EIGRP
Router(config-router)#no auto-summary


Why we use EIGRP?

Disable auto summay

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

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

(A reply response from host will verify the connectivity)

How to telnet any host:

telnet {ip-address | hostname}

e.g. router# telnet

Related Article: NMAP Commands Linux

Waqas Azam
Me Waqas Azam and I am a professional blogger & freelance writer. I also working in the IT industry for over 7 years. I am graduated in Computer Science and information technology.