Setting Up a Physical Network and Configuring Static Routes
The objective of this lab was to design and implement a Local Area Network (LAN) with two routers, four switches, and eight PCs. The goal included configuring IP addresses, verifying connectivity, and enabling inter-network communication by implementing static routes.
Setting Up the Physical Network
1. Gather Equipment:
○ Ensure all networking devices (routers, switches, PCs) and cables are available and in good condition.
2. Connect Routers to Switches:
○ Router0 Connections:
■ Connect Router0 GigabitEthernet0/0 to Switch0 using an Ethernet cable.
■ Connect Router0 GigabitEthernet0/1 to Router1 GigabitEthernet0/1 using an Ethernet crossover cable (or straight-through if using auto-MDIX capable devices).
○ Router1 Connections:
■ Connect Router1 GigabitEthernet0/0 to Switch2 using an Ethernet cable.
3. Connect Switches to PCs:
○ Switch0 and Switch1:
■ Connect Switch0 ports to PCs PC0-PC3 using Ethernet cables.
■ Connect Switch1 ports to PCs PC4-PC5 using Ethernet cables.
○ Switch2 and Switch3:
■ Connect Switch2 ports to PCs PC6-PC7 using Ethernet cables.
■ Connect Switch3 ports as needed (if applicable).
4. Power On Devices:
○ Ensure all routers, switches, and PCs are powered on and properly booted.
5. Configure IP Addresses:
○ Router0:
■ GigabitEthernet0/0: 192.168.1.1 with subnet mask 255.255.255.0
■ GigabitEthernet0/1: 10.0.0.1 with subnet mask 255.255.255.252
○ Router1:
■ GigabitEthernet0/0: 192.168.2.1 with subnet mask 255.255.255.0
■ GigabitEthernet0/1: 10.0.0.2 with subnet mask 255.255.255.252
○ PCs:
■ PC0-PC3: Assign IPs 192.168.1.2 to 192.168.1.5 with subnet mask 255.255.255.0 and default gateway 192.168.1.1
■ PC4-PC7: Assign IPs 192.168.2.2 to 192.168.2.5 with subnet mask 255.255.255.0 and default gateway 192.168.2.1
6. Configure Router Interfaces:
○ Access Router CLI:
■ Connect to each router using a console cable and open the terminal emulator.
○ Configure Router0
Router0> en
Router0# conf t
Router0(config)# int GigabitEthernet0/0
Router0(config-if)# ip add 192.168.1.1 255.255.255.0
Router0(config-if)# no shut
Router0(config-if)# exit
Router0(config)# int GigabitEthernet0/1
Router0(config-if)# ip add 10.0.0.1 255.255.255.252
Router0(config-if)# no shut
Router0(config-if)# exit
Router0(config)# exit
Router0# write memory
Configure Router1
Router1> en
Router1# conf t
Router1(config)# int GigabitEthernet0/0
Router1(config-if)# ip add 192.168.2.1 255.255.255.0
Router1(config-if)# no shut
Router1(config-if)# exit
Router1(config)# int GigabitEthernet0/1
Router1(config-if)# ip add 10.0.0.2 255.255.255.252
Router1(config-if)# no shut
Router1(config-if)# exit
Router1(config)# exit
Router1# write memory
1. Configure PCs:
○ On each PC, set the IP address, subnet mask, and default gateway as specified.
○ Example for PC0:
■ IP Address: 192.168.1.2
■ Subnet Mask: 255.255.255.0
■ Default Gateway: 192.168.1.1
B. Verifying Connectivity Between Different Networks
1. Check Physical Connections:
○ Ensure all cables are securely connected and LEDs on devices indicate active connections.
2. Verify Interface Status on Routers:
○ On both Router0 and Router1, execute the following command to ensure interfaces are up:
Router# show ip interface brief
● Confirm that all relevant interfaces show a status of up/up.
Ping Test Within the Same Network:
● From PC0 (192.168.1.2), ping 192.168.1.3 (another PC on the same subnet) to verify local network connectivity.
C:\> ping 192.168.1.3
● Ensure successful replies.
Ping Test Across Networks Without Static Routes:
● Attempt to ping PC6 (192.168.2.2) from PC0 (192.168.1.2). makefile C:\> ping 192.168.2.2
● Expected Result: Failure due to lack of routing information.
C. Configuring Static Routes
1. Understand Network Paths:
○ Router0 is connected to 192.168.1.0/24 and 10.0.0.0/30 (connection to Router1).
○ Router1 is connected to 192.168.2.0/24 and 10.0.0.0/30 (connection to Router0).
○ To enable communication between 192.168.1.0/24 and 192.168.2.0/24, static routes must be configured.
2. Configure Static Route on Router0:
○ Objective: Route traffic destined for 192.168.2.0/24 via Router1’s interface 10.0.0.2.
○ Commands: Router0> enable
○ Router0# configure terminal
○ Router0(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
○ Router0(config)# exit
○ Router0# write memory
Configure Static Route on Router1:
● Objective: Route traffic destined for 192.168.1.0/24 via Router0’s interface 10.0.0.1.
● Router1> enable
● Router1# configure terminal
● Router1(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1
● Router1(config)# exit
● Router1# write memory