Experiment 7
Experiment 7
Experiment 7
1. Aim: Connect the computers in the Local Area Network by setting the IP Address, Subnet
mask & Default gateway.
3. Procedure:
a) Open Cisco Packet Tracer:
1. Launch Cisco Packet Tracer on your computer.
b) Create the Network Topology:
1. Add devices:
➢ Drag and drop the following into the workspace:
• One router (1941)
• Two switches (2950-24)
• Six PCs (PC-PT)
2. Connect devices:
➢ Use copper straight-through cables to:
• Connect each PC to the corresponding switch.
• Connect each switch to the router.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
c) Assign IP Addresses:
1. Assign IP addresses to PCs:
• PC0: IP - 192.168.1.1, Gateway - 192.168.1.254
• PC1: IP - 192.168.1.2, Gateway - 192.168.1.254
• PC2: IP - 192.168.1.3, Gateway - 192.168.1.254
• PC3: IP - 172.16.1.1, Gateway - 172.16.1.254
• PC4: IP - 172.16.1.2, Gateway - 172.16.1.254
• PC5: IP - 172.16.1.3, Gateway - 172.16.1.254
2. Assign IP addresses to router interfaces:
• Interface 0/0: IP - 192.168.1.254
• Interface 0/1: IP - 172.16.1.254
d) Configure RIP on the Router:
1. Enter configuration mode on the router:
• config t
2. Enable RIP:
• Type router rip
3. Add network statements:
• network 192.168.1.0
• network 172.16.1.0
e) Configure OSPF on the Router (if needed):
1. Enter OSPF configuration:
• config t
• Type router ospf 1
2. Assign areas to networks:
• network 192.168.1.0 0.0.0.255 area 0
• network 172.16.1.0 0.0.0.255 area 0
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
• Protocols:
1. RIP (Routing Information Protocol)
• Type: Distance-vector protocol.
• Metric: Uses hop count (max 15 hops).
• Usage: Best for small networks due to scalability limits.
• Version:
o RIPv1: Classful (no subnet support).
o RIPv2: Classless (supports subnet masks).
• Update frequency: Every 30 seconds, can be slow to converge.
5. Output:
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
5. Learning Outcome: