CN_file_FINAL[1]
CN_file_FINAL[1]
1. ARP: Used to display and modify the ARP cache, which translates IP addresses to MAC
addresses and vice versa.
2. Hostname: Displays the name of the current host or sets the hostname for the computer.
3. Ipconfig: Displays all current TCP/IP network configuration values, including IP address,
subnet mask, and default gateway.
4. ipconfig /renew: Renews the IP address configuration for all network adapters, typically
used to request a new IP address from a DHCP server
5. ipconfig/all: Displays detailed information about all network interfaces, including
physical and virtual adapters, along with DNS and DHCP settings.
6. ipconfig/release: Releases the IP address configuration for all network adapters,
effectively disconnecting the computer from the network.
7. Ipconfig /flushdns: Clears and resets the DNS resolver cache, which stores DNS query
results for faster access.
8. Nslookup: A command-line tool used to query DNS servers to obtain domain name or IP
address mapping, as well as other DNS information.
9. Netdiag: A command-line tool used to diagnose network problems by performing a series
of tests on the network configuration and components.
10. Netstat: Displays network statistics and active connections, including ports and routing
tables.
11. Pathping: Combines the functionality of traceroute and ping, providing detailed
information about the path packets take to a destination and any packet loss or latency along
the way.
12. Ping: Sends ICMP echo requests to a specified network host to test connectivity and
measure round-trip time.
13. Route: reach their destination.
Experiment 2
AIM: To learn about the colour coding of Straight through, crossover and rollover
cables
To understand the color coding of Straight-through, Crossover, and Rollover Ethernet cables,
it's important to know that they use twisted pair wiring (typically with 8 wires) and follow
either the TIA/EIA-568A or TIA/EIA-568B standards.
1. White/Green
2. Green
3. White/Orange
4. Blue
5. White/Blue
6. Orange
7. White/Brown
8. Brown
1. White/Orange
2. Orange
3. White/Green
4. Blue
5. White/Blue
6. Green
7. White/Brown
8. Brown
i. Straight-through Cable
AIM: To connect two computers using hub, switch, and crossover cable.
Theory:
1.Hub:
● A basic networking device that broadcasts incoming data to all ports.
● It works on OSI Layer 1 (Physical Layer).
● No intelligence; just sends signals across all lines.
2.Switch:
● More advanced than a hub.
● Works on OSI Layer 2 (Data Link Layer).
● Learns MAC addresses and sends data only to the intended recipient.
● Faster and more secure than hubs.
3.Crossover Cable:
● Used to connect two similar devices directly (e.g., PC to PC).
● Internally crosses the transmit (Tx) and receive (Rx) lines.
● No intermediary device like a switch or hub is needed.
4.Straight-through Cable:
● Used to connect different types of devices (e.g., PC to Switch).
● Transmit and receive lines are aligned straight.
Procedure:
Experiment 4
AIM: To create and configure various types of network topologies using Cisco Packet
Tracer
● Bus Topology
● Ring Topology
● Star Topology
● Mesh Topology
2 Ring Topology:
● Drag 3–5 switches.
● Connect them in a circular manner
using straight cables.
● Attach one PC to each switch.
● Assign IPs from the same subnet
● Ping from one PC to another to test continuity.
3 Star Topology:
● Drag one switch to the center.
● Connect 3–5 PCs directly to the switch using straight-through cables.
● Assign IPs like:
o PC1: 192.168.1.1
o PC2: 192.168.1.2
● Test connectivity using ping.
4 Mesh Topology:
● Use 3–4 PCs.
● Connect each PC to every other PC using crossover cables.
● Assign IP addresses from the same subnet.
● Ensure every PC can ping every other PC.
Experiment 5
Vlan Theory:
VLAN (Virtual LAN) is a logical grouping of devices in the same broadcast domain,
regardless of their physical location. VLANs allow network administrators to partition a
single switch into multiple logical networks. Devices within the same VLAN can
communicate directly, but devices in different VLANs need a router or Layer 3 switch to
communicate.
Why VLANs?
● Improves security by isolating traffic
● Reduces broadcast traffic
● Enables flexible network design
● Supports logical grouping of users by function (e.g., HR, Sales, Admin)
Each VLAN is identified by a VLAN ID (1–4094), and ports on a switch are assigned to
VLANs.
Procedure:
1.Hardware Setup in Packet Tracer:
● Place 1 switch and 4 PCs in the workspace.
● Use straight-through cables to connect each PC to the switch (e.g., Fa0/1 through
Fa0/4).
● Assign IP addresses in the same subnet:
o PC1: 192.168.1.2
o PC2: 192.168.1.3
o PC3: 192.168.1.4
o PC4: 192.168.1.5
o Subnet Mask: 255.255.255.0
2.Access the Switch CLI:
Click the switch → CLI tab → Enter configuration mode.
3.Create VLANs:
Observation:
● Ping Test:
o PC1 ↔ PC2: Success (same VLAN)
o PC3 ↔ PC4: Success (same VLAN)
o PC1 ↔ PC3 or PC2 ↔ PC4: Fail (different VLANs)
Experiment 6
AIM: To connect and configure router and connect to network using 1 route
Theory:
A router is a networking device that connects different networks and forwards data packets
between them based on IP addressing. In small or large networks, routers act as a gateway
that enables communication between hosts in different subnets or networks.
A basic router configuration includes:
● Assigning IP addresses to router interfaces.
● Activating the interfaces.
● Connecting PCs to switches, and switches to the router.
● Verifying connectivity using commands like ping.
Procedure:
1. Physical Setup in Packet Tracer:
● Drag and drop the router, two switches, and two PCs.
● Connect:
o PC1 to Switch 1 using a straight-through cable
o PC2 to Switch 2 using a straight-through cable
o Switch 1 to Router FastEthernet0/0
o Switch 2 to Router FastEthernet0/1
2. Assign IP Addresses:
On PC1:
● IP: 192.168.1.2
● Subnet: 255.255.255.0
● Gateway: 192.168.1.1
On PC2:
● IP: 192.168.2.2
● Subnet: 255.255.255.0
● Gateway: 192.168.2.
3. Configure the Router:
Step 1: Access CLI
Click on the router → CLI tab.
Step 2: Enter Configuration Mode
Observation:
● PC1 can successfully ping PC2 through the router.
● Router interfaces show up status.
● IP settings and gateways must be correctly configured on PCs.
Experiment 7
Theory:
Static routing is a type of network routing technique in which a network administrator
manually adds routes into the routing table. Unlike dynamic routing, static routes do not
change unless the administrator updates them.
Key concepts:
● Routing is the process of selecting a path for traffic in a network.
● Routers connect different networks and direct packets to their destination based on
the routing table.
● Static routes are best used in small, simple networks where changes are rare.
● They are more secure and efficient, but not scalable for large or changing networks.
Procedure:
Step 1: Create Topology in Cisco Packet Tracer
● Place two routers, two PCs, and required serial and copper cross cables.
● Connect as per the topology diagram.
Step 2: Assign IP Addresses
PC0 Configuration:
● IP: 192.168.1.2
● Subnet: 255.255.255.0
● Default Gateway: 192.168.1.1
PC1 Configuration:
● IP: 192.168.2.2
● Subnet: 255.255.255.0
● Default Gateway: 192.168.2.1
Router0 Configuration:
Router1 Configuration:
Verification Commands:
Ping test:
● From PC0 → ping 192.168.2.2
● From PC1 → ping 192.168.1.2
Experiment 8
AIM: To implement routing information protocol
Theory:
Routing Information Protocol (RIP) is a distance-vector routing protocol used in small
networks. It determines the best route to a destination based on the hop count (i.e., the
number of routers the packet must pass through). RIP updates routing tables by broadcasting
the entire table to all neighbors every 30 seconds.
R2 Configuration
Step 5: Verify Configuration
On both routers:
You should see R (RIP) entries in the routing table showing learned routes.
From PC1, open Command Prompt and:
Observation:
● RIP dynamically shares routing information between R1 and R2.
● PC1 and PC2, which belong to different networks, are now able to communicate.
● The routing table in each router contains entries for the remote network marked with
R (for RIP).
Experiment 9
Theory:
OSPF (Open Shortest Path First) is a dynamic routing protocol used for interior gateway
routing within an Autonomous System (AS). It is a link-state routing protocol that:
● Uses Dijkstra’s Shortest Path First (SPF) algorithm.
● Sends LSAs (Link-State Advertisements) to all routers in the area.
● Converges faster and is more scalable than RIP.
● Supports hierarchical routing using areas (e.g., area 0 is the backbone area).
Procedure:
Configure R2:
Configure R1:
Configure R2:
Observation:
● OSPF routes are dynamically learned.
● The routers establish adjacency using OSPF.
● The PCs can communicate across routers.
Experiment 10
Theory:
What is BGP?
BGP (Border Gateway Protocol) is a path-vector routing protocol used to exchange routing
information between Autonomous Systems (ASes) on the internet. It is the only EGP
(Exterior Gateway Protocol) used today and is defined in RFC 4271.
Key Features:
● Inter-domain routing (used between ISPs or large enterprises)
● AS-based routing: Each AS is uniquely identified by a number (e.g., AS100, AS200)
● Uses TCP (port 179) for reliable delivery
● Policy-based routing: You can set filters and preferences
● Maintains a routing table with multiple paths and uses attributes like AS-PATH,
NEXT- HOP, etc.
Procedure:
Step 1: IP Configuration
Assign IP addresses on both routers:
Router1
Router2
Router2 (AS200)
Step 3: Test the Configuration
● From PC1, ping PC2 (192.168.2.2)
● From PC2, ping PC1 (192.168.1.2)
Observation:
● After BGP is configured and established, the routers exchange network information.
● The BGP neighbor relationship is formed.
● PC1 and PC2 can now communicate across autonomous systems.
● The routing table should display the BGP learned routes.