CS331 / project-1 Switch and Router Network Design in Cisco Packet Tracer
Docs
PROJECT 1CS331Status: Operational · all links up

Switch and Router
Network Design

Two LANs, one Cisco 2901 router, a subnetted /24, and a web page served across the router in Cisco Packet Tracer.

StudentShoug Fawaz Abdullah Alomran
InstructorMs. Nada ALALYANI
Term261 · 2026–2027 · PSU
L1 · DEVICES7 devices

The build

R1

Cisco 2901 router. G0/0 → Network A, G0/1 → Network B.

Switch1 · Switch2

Two Cisco 2960 switches, one per LAN.

PC A · PC B

Hosts on Network A.

PC1 · PC2

PC1 and PC2, hosts on Network B.

Web Server

Server 1: HTTP and HTTPS, with a custom page.

199.19.30.0/24

The block to subnet.

L1 · L2 · TOPOLOGYHTTP · PC B → R1 → Server 1
G0/0 · .1G0/1 · .65 R12901 Switch12960 Switch22960 PC A.2 PC B.3 PC1.66 PC2.67 Server.68 Network A · 199.19.30.0/26 Network B · 199.19.30.64/26

R1 is the only path between the LANs. Every packet from Network A to Network B goes through it.

L3 · SUBNETTINGborrow 2 bits

One /24 becomes four /26

199.19.30.0 /24 · 256 addresses
Network A · G0/0.0 /26.1 – .62
bcast .63
Network B · G0/1.64 /26.65 – .126
bcast .127
Future.128 /26.129 – .190
bcast .191
Future.192 /26.193 – .254
bcast .255

last octet of the mask: 11000000 = 192

2 subnet bits · 6 host bits

L3 · SUBNETTING255.255.255.192

The numbers

2borrowed bits
2² = 4subnets
2⁶ − 2 = 62usable hosts each
256 − 192 = 64block size

Two networks are needed now. Four leaves two spare /26 blocks for later growth.

L3 · ROUTING TABLE VIEW

Subnet table

#NetworkUsableBroadcastUse
1199.19.30.0/26.1 – .62.63Network A · G0/0
2199.19.30.64/26.65 – .126.127Network B · G0/1
3199.19.30.128/26.129 – .190.191Future
4199.19.30.192/26.193 – .254.255Future
L3 · ADDRESSINGmask 255.255.255.192

Gateway first, hosts next

DeviceIPGatewayNetwork
R1 G0/0199.19.30.1—A
PC A199.19.30.2.1A
PC B199.19.30.3.1A
R1 G0/1199.19.30.65—B
PC1199.19.30.66.65B
PC2199.19.30.67.65B
Web Server199.19.30.68.65B
R1 · console
Router>enableRouter#configure terminalRouter(config)#hostname R1R1(config)#interface GigabitEthernet0/0R1(config-if)#ip address 199.19.30.1 255.255.255.192R1(config-if)#no shutdownR1(config-if)#exitR1(config)#interface GigabitEthernet0/1R1(config-if)#ip address 199.19.30.65 255.255.255.192R1(config-if)#no shutdownR1(config-if)#endR1#
L3 · IOS CLI

Configuring R1

  • hostname R1. The prompt changes at once.
  • One address per LAN, each the first usable address of its subnet.
  • no shutdown. Router ports start out administratively down.
L1 · L2 · STATUSG0/0 up/up · G0/1 up/up

Both interfaces up/up

R1 · show ip interface brief
R1#show ip interface briefInterface              IP-Address      OK? Method Status                ProtocolGigabitEthernet0/0     199.19.30.1     YES manual up                    upGigabitEthernet0/1     199.19.30.65    YES manual up                    upVlan1                  unassigned      YES unset  administratively down down
Status up · Layer 1: cable in, port enabled
Protocol up · Layer 2: link working
INCIDENTlink to gateway: down

First ping: 100% loss

  • PC A → PC2 failed: 4 timeouts.
  • Pinging PC A's own gateway (.1) failed too.
  • So the fault was local: cabling, addressing or the port. Routing wasn't the problem yet.
PC A · Command Prompt
C:\>ping 199.19.30.67 Request timed out.Request timed out.Request timed out.Request timed out.     Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
L1 · ROOT CAUSE

The cables were swapped

Switch1 (Network A, gateway .1) was plugged into G0/1 (.65). Switch2 was in G0/0. Each LAN's ARP for its gateway reached a port on the wrong subnet.

Fix: Switch1 → G0/0, Switch2 → G0/1.

R1 G0/0 .1G0/1 .65 Switch1Network A Switch2Network B re-cabled · links up · correct subnets
L3 · ICMPPC A → PC2 · after the fix

Replies with TTL=127

PC A
199.19.30.2
R1
TTL − 1
PC2
199.19.30.67
echo requestecho replyTTL 128TTL 127
PC A · Command Prompt
C:\>ping 199.19.30.67Reply from 199.19.30.67: bytes=32 time=32ms TTL=127Reply from 199.19.30.67: bytes=32 time=11ms TTL=127Reply from 199.19.30.67: bytes=32 time<1ms TTL=127Reply from 199.19.30.67: bytes=32 time<1ms TTL=127    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
  • 4 of 4 replies. The first took 32 ms while ARP learned the MAC addresses, then under 1 ms.
  • 128 − 1 = 127: PC2 replies with 128, R1 takes one off. Exactly one router hop.
L7 · HTTPHTTP on · HTTPS on

A web page across the router

PC B is on Network A and the server is on Network B. Loading the page tests every layer of the design together.

http://199.19.30.68

CS331 Project 1

Web Server - Shoug Alomran

EVIDENCEPacket Tracer · logical view
Packet Tracer · Shoug_Alomran_Project1.pkt
Finished Packet Tracer topology with all link lights green
The finished topology, all link lights green.
EVIDENCEPC B · Web Browser
PC B · Web Browser · http://199.19.30.68
PC B web browser showing the custom server page
The custom page, loaded from Network A through R1.
TAKEAWAYSall checks pass

What I learned

Subnet first

/26 gives 4 × 62 hosts. Block size 64 makes the boundaries easy to see.

Ping the gateway

If a host can't reach its own gateway, the problem is local. Look at Layer 1 first.

Port ↔ subnet

Up/up only means "cabled". It doesn't mean "cabled to the right subnet".

Read the TTL

TTL=127 from a 128 host means exactly one router hop.

EOFR1#

Thank you

Questions?

Shoug Fawaz Abdullah Alomran · CS331 · Ms. Nada ALALYANI

Read the full write-up → · Download .pkt