Router Configuration and Setup
Objective:
Learn how to perform basic configuration on a Cisco router using Cisco Packet Tracer.
Materials Needed:
Cisco Packet Tracer installed on your computer
A Cisco router (e.g., 1841 or 2811 model)
Two PCs for testing
Part 1: Introduction to Router Configuration
Overview:
Router configuration involves setting basic settings such as hostname, passwords, interface
configuration, and routing protocols. This ensures proper communication between different
network segments.
Part 2: Basic Router Configuration
Steps:
1. Open Cisco Packet Tracer:
o Launch Cisco Packet Tracer from your computer.
2. Add a Router to the Workspace:
o Click on the "Network Devices" icon.
o Select "Routers" and choose a router model (e.g., 1841).
o Drag the router to the workspace.
3. Add PCs to the Workspace:
o Click on the "End Devices" icon.
o Select "PC" and drag two PCs to the workspace.
4. Connect Devices:
o Using Copper Straight-Through Cable:
Click on the "Connections" icon (lightning bolt).
Select "Copper Straight-Through" cable.
Connect one end to the router's "FastEthernet0/0" and the other end to
PC1's "FastEthernet0".
Connect the second cable from the router's "FastEthernet0/1" to PC2's
"FastEthernet0".
5. Access the Router CLI:
o Click on the router.
o Go to the "CLI" tab to access the Command Line Interface.
6. Enter Privileged EXEC Mode:
o In the CLI, press Enter to start.
o Type enable to enter Privileged EXEC mode.
Router> enable
Router#
7. Enter Global Configuration Mode:
o Type configure terminal to enter Global Configuration mode.
Router# configure terminal
Router(config)#
8. Set the Hostname:
o Type hostname followed by the desired hostname.
Router(config)# hostname Router1
Router1(config)#
9. Configure Console Access Password:
o Enter the console line configuration mode.
Router1(config)# line console 0
Router1(config-line)#
o Set the console password.
Router1(config-line)# password cisco
Router1(config-line)# login
Router1(config-line)# exit
10. Configure VTY Lines Password:
o Enter the VTY line configuration mode.
Router1(config)# line vty 0 4
Router1(config-line)#
o Set the VTY password.
Router1(config-line)# password cisco
Router1(config-line)# login
Router1(config-line)# exit
11. Configure Enable Password:
o Set the enable password to protect Privileged EXEC mode.
Router1(config)# enable password cisco
12. Configure Enable Secret:
o Set the enable secret password for better security (it overrides the enable
password).
Router1(config)# enable secret class
Part 3: Configuring Router Interfaces
Steps:
1. Configure FastEthernet0/0:
o Enter the interface configuration mode for FastEthernet0/0.
Router1(config)# interface fastethernet0/0
Router1(config-if)#
o Assign an IP address and subnet mask.
Router1(config-if)# ip address 192.168.1.1 255.255.255.0
Router1(config-if)# no shutdown
Router1(config-if)# exit
2. Configure FastEthernet0/1:
o Enter the interface configuration mode for FastEthernet0/1.
Router1(config)# interface fastethernet0/1
Router1(config-if)#
o Assign an IP address and subnet mask.
Router1(config-if)# ip address 192.168.2.1 255.255.255.0
Router1(config-if)# no shutdown
Router1(config-if)# exit
3. Save the Configuration:
o Exit to Privileged EXEC mode.
Router1(config)# exit
Router1#
o Save the configuration to NVRAM.
Router1# write memory
Part 4: Verifying the Configuration
Steps:
1. Check the IP Configuration:
o Use the show ip interface brief command to verify IP address configuration.
Router1# show ip interface brief
2. Connect PCs and Assign IP Addresses:
o Click on PC1.
o Go to the "Desktop" tab and select "IP Configuration."
o Assign IP address 192.168.1.2 and subnet mask 255.255.255.0. Set default
gateway to 192.168.1.1.
o Click on PC2.
o Go to the "Desktop" tab and select "IP Configuration."
o Assign IP address 192.168.2.2 and subnet mask 255.255.255.0. Set default
gateway to 192.168.2.1.
3. Ping Test:
o From PC1, ping the router interface IP 192.168.1.1.
o From PC2, ping the router interface IP 192.168.2.1.
o Ping between PC1 and PC2 to verify routing.