Goal: Connect two different networks through a router so PCs can communicate
4 PCs (2 on each side)
2 Switches
1 Router
PC1, PC2
PC3, PC4
Switch1
Switch2
IP Range: 192.168.1.0/24
IP Range: 192.168.2.0/24
Gateway: 192.168.1.1
Gateway: 192.168.2.1
Step 1: Connect the Devices
PC1 & PC2 → Switch1
PC3 & PC4 → Switch2
Switch1 ↔ Router (FastEthernet 0/0)
Switch2 ↔ Router (FastEthernet 0/1)
Step 2: Assign IP Addresses
PC1 & PC2:
IP: 192.168.1.2 / .3
Subnet: 255.255.255.0
Gateway: 192.168.1.1
PC3 & PC4:
IP: 192.168.2.2 / .3
Subnet: 255.255.255.0
Gateway: 192.168.2.1
Router:
F0/0: 192.168.1.1
F0/1: 192.168.2.1
Router → CLI:
enable
configure terminal
interface fastEthernet 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface fastEthernet 0/1
ip address 192.168.2.1 255.255.255.0
no shutdown
No need to add any static route manually — the router connects both networks already via its two interfaces!
Why it's still called static routing here?
Because you're manually assigning IPs and gateways — not using any dynamic routing protocols.