LAB 7: TWO SWITCHED NETWORKS INTERCONNECTED VIA ROUTER
USING CISCO PACKET TRACER
Objectives:
To design and configure two separate switched networks and interconnect them using a router in Cisco Packet
Tracer, enabling communication between different network segments through routing.
Device Required:
• 4 PCs
• 2 Switch
• 1 Router
• Copper Straight-Through cable
Steps:
1. Create Network Topology
a. Drag and place:
i. 2 Switch
ii. 4 PCs
iii. 1 Router
b. Use Copper Straight-Through cables to connect each PC to the switch:
i. Router GigabitEthernet0/0 → Switch0
ii. Router Gigabit Ethernet0/1 → Switch1
iii. PC0 and PC1 → Switch0
iv. PC2 and PC3 →Switch1
2. Assign IP Addresses
a. Network 1:
i. PC0: 192.168.1.2 | Subnet Mask: 255.255.255.0 | Gateway: 192.168.1.1
ii. PC1: 192.168.1.3 | Subnet Mask: 255.255.255.0 | Gateway: 192.168.1.1
b. Network 2:
i. PC0: 192.168.2.2 | Subnet Mask: 255.255.255.0 | Gateway: 192.168.2.1
ii. PC1: 192.168.2.3 | Subnet Mask: 255.255.255.0 | Gateway: 192.168.2.1
3. Configure the Router Interfaces:
a. Click on Router
b. Go to Config tab → interfaces
c. For GigabitEthernet0/0:
i. IP Address: 192.168.1.1
ii. Subnet Mask: 255.255.255.0
iii. Click On to enable the port
d. For GigabitEthernet0/1:
i. IP Address: 192.168.2.1
ii. Subnet Mask: 255.255.255.0
iii. Click On to enable the port
4. Router Configuration using CLI:
In router’s CLI perform the following commands to set up router:
Router>enable
Router#
Router#configure terminal
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
5. Test Communication
a. From PC0, open Command Prompt and ping 192.168.2.2
i. PC0 should successfully ping PC2
b. Test pings in both directions to ensure routing works.
Result:
Two separate switched networks were successfully interconnected using a router. All PCs within each network
communicated with each other and also communicated across networks through the router, verifying correct
routing configuration.