Router on a stick
(Part 2)
Introduction
This is a beginner course that talks about router on a stick topology and is devided on 3 parts, each part will contain certain tasks to do, after finishing these three parts you will be able to configure a router on a stick topology using CiscoPacketTracer.
Today we are covering the second part of configurations,that will include adding a router to our topology and assigning IP addresses to local user machines.
Task 4 - Configure static IP addresses to user machines.
Task 5 - Configure two sub-interfaces on the router.
Task 6 - Ping hosts
Please note that this lab was created with CiscoPacketTracer.
Task 4 : Configure static IP addresses to user machines
Here we added some configurations
On PC1
Click on PC1 -> select IP configuration
than add addresses as follows
IP Address: 10.10.10.10
Mask: 255.255.255.0
Gateway :10.10.10.1
On PC0
Click on PC0-> select IP configuration
than add addresses as follows
IP Address: 20.20.20.20
Mask: 255.255.255.0
Gateway:20.20.20.1
Task 5 - Configure two sub-interfaces on the router.
Click on PC1 -> select IP configuration
than add addresses as follows
IP Address: 10.10.10.10
Mask: 255.255.255.0
Gateway :10.10.10.1
On PC0
Click on PC0-> select IP configuration
than add addresses as follows
IP Address: 20.20.20.20
Mask: 255.255.255.0
Gateway:20.20.20.1
Task 5 - Configure two sub-interfaces on the router.
To configure the router these commands must be entered
interface GigabitEthernet0/0/1.10
encapsulation dot1Q 10
ip address 10.10.10.1 255.255.255.0
!
interface GigabitEthernet0/0/1.20
encapsulation dot1Q 20
ip address 20.20.20.1 255.255.255.0
Then activate the port G0/0/1 by issuing
#int g0/0/1
#no shutdown (or no sh)
This is the new topology:
Task 6 - Ping hosts
That means our two PCs see each other.
interface GigabitEthernet0/0/1.10
encapsulation dot1Q 10
ip address 10.10.10.1 255.255.255.0
!
interface GigabitEthernet0/0/1.20
encapsulation dot1Q 20
ip address 20.20.20.1 255.255.255.0
Then activate the port G0/0/1 by issuing
#int g0/0/1
#no shutdown (or no sh)
This is the new topology:
Task 6 - Ping hosts
On PC 1:
click on PC1-> select command prompt
than issue this command
>ping 20.20.20.20 //Now PC1 and PC0 are communication through the router
This result will appear
That means our two PCs see each other.
In the Next Lab we'll be digging into details and issuing some troubleshooting commands.
Thank you for viewing.
No comments:
Post a Comment