Cisco Packet Tracer – Basic Router Configuration (Step by Step)

 

Cisco Packet Tracer – Basic Router Configuration (Step by Step)

This is the standard sequence you can follow in Cisco Packet Tracer.


Step 1: Open the Router

  • Click the Router.

  • Click the CLI tab.

You will see:

Would you like to enter the initial configuration dialog? [yes/no]:

Type:

no

Press Enter.

If prompted:

Press RETURN to get started!

Press Enter.


Step 2: User EXEC Mode

Prompt:

Router>

This is User EXEC Mode.


Step 3: Enter Privileged EXEC Mode

Type:

Router> enable

Prompt changes to:

Router#

This is Privileged EXEC Mode.


Step 4: Enter Global Configuration Mode

Type:

Router# configure terminal

or

Router# conf t

Prompt changes to:

Router(config)#

Step 5: Change the Hostname

Type:

Router(config)# hostname R1

Prompt becomes:

R1(config)#

Step 6: Set the Enable Secret Password

Type:

R1(config)# enable secret cisco123

This protects Privileged EXEC Mode.


Step 7: Encrypt All Passwords

Type:

R1(config)# service password-encryption

This encrypts passwords in the configuration.


Step 8: Configure a Message of the Day (MOTD) Banner

Type:

R1(config)# banner motd #Unauthorized Access Prohibited#

Anyone accessing the router will see this message.


Step 9: Configure the Console Password

Enter console line configuration:

R1(config)# line console 0

Set the password:

R1(config-line)# password console123

Require the password:

R1(config-line)# login

Return:

R1(config-line)# exit

Step 10: Configure the VTY (Telnet) Password

R1(config)# line vty 0 4

Set password:

R1(config-line)# password telnet123

Enable login:

R1(config-line)# login

Return:

R1(config-line)# exit

Step 11: Configure Interface GigabitEthernet0/0

R1(config)# interface gigabitethernet0/0/0

Assign IP address:

R1(config-if)# ip address 192.168.1.1 255.255.255.0

Enable the interface:

R1(config-if)# no shutdown

Exit:

R1(config-if)# exit

Step 12: Configure Interface GigabitEthernet0/1 (Optional)

R1(config)# interface gigabitethernet0/1

Assign IP:

R1(config-if)# ip address 192.168.2.1 255.255.255.0

Enable it:

R1(config-if)# no shutdown

Exit:

R1(config-if)# exit

Step 13: Exit Configuration Mode

R1(config)# end

or press Ctrl + Z.

Prompt:

R1#

Step 14: Save the Configuration

R1# copy running-config startup-config

When prompted:

Destination filename [startup-config]?

Press Enter.

You should see:

Building configuration...
[OK]

Step 15: Verify the Configuration

Check Interface Status

R1# show ip interface brief

View Running Configuration

R1# show running-config

View Saved Configuration

R1# show startup-config

Display IOS Version

R1# show version

Complete Configuration in One Block

Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# enable secret cisco123
R1(config)# service password-encryption
R1(config)# banner motd #Unauthorized Access Prohibited#
R1(config)# line console 0
R1(config-line)# password console123
R1(config-line)# login
R1(config-line)# exit
R1(config)# line vty 0 4
R1(config-line)# password telnet123
R1(config-line)# login
R1(config-line)# exit
R1(config)# interface gigabitethernet0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface gigabitethernet0/1
R1(config-if)# ip address 192.168.2.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# end
R1# copy running-config startup-config

This is the complete basic router configuration sequence typically used in Cisco Packet Tracer labs and CCNA practice. Once you're comfortable with these steps, you can move on to configuring switches, static routing, DHCP, VLANs, SSH, ACLs, and dynamic routing protocols like RIP, OSPF, and EIGRP.

Comments

Popular posts from this blog

## What is Cisco Packet Tracer?

Introduction Cisco Packet Tracer Configuration

Curriculum Beginners Scheme of work