0% found this document useful (0 votes)
22 views56 pages

Cn5 Merged

Uploaded by

maxwelshelter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views56 pages

Cn5 Merged

Uploaded by

maxwelshelter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

NAME Nilesh Nimawat

ENROLLMENT NO. 2022/CTAE/239


SUBJECT CODE CS 352
SUBJECT NAME COMPUTER NETWORK
CLASS B. TECH. III YEAR - COMPUTER
SCIENCE AND ENGINEERING
SESSION 2024-25
INDEX

Sr. No. TITLE DATE SIGNATURE REMARK


Sr. No. TITLE DATE SIGNATURE REMARK

E
Experiment 1

Aim: -To Install and configure Network Devices HUB, Switch and
Routers PCs are interfaced using connectivity devices.

1. Repeater: Functioning at Physical Layer. A repeater is an electronic


device that receives a signal and retransmits it at a higher level and/or higher
power, or onto the other side of an obstruction, so that the signal can cover
longer distances. Repeater have two ports, so cannot be use to connect for
more than two devices.

2. Hub: An Ethernet hub, active hub, network hub, repeater hub, hub or
concentrator is a device for connecting multiple twisted pair or fibre optic
Ethernet devices together and making them act as a single network segment.
Hubs work at the physical layer (layer 1) of the OSI model. The device is a form
of multiport repeater. Repeater hubs also participate in collision detection,
forwarding a jam signal to all ports if it detects a collision.

3. Switch: A network switch or switching hub is a computer networking


device that connects network segments. The term commonly refers to a
network bridge that processes and routes data at the data link layer (layer 2) of
the OSI model. Switches that additionally process data at the network layer
(layer 3 and above) are often referred to as Layer 3 switches or multilayer
switches.

4. Bridge: A network bridge connects multiple network segments at the


data link layer (Layer 2) of the OSI model. In Ethernet networks, the term bridge
formally means a device that behaves according to the IEEE 802.1D standard.
A bridge and switch are very much alike; a switch being a bridge withnumerous
ports. Switch or Layer 2 switch is often used interchangeably with
bridge. Bridges can analyse incoming data packets to determine if the bridge is
able to send the given packet to another segment of the network.

5. Router: A router is an electronic device that interconnects two or more


computer networks, and electively interchanges packets of data between them.
Each data packet contains address information that a router can use to
determine if the source and destination are on the same network, or if the data
packet must be transferred from one network to another. Where multiple
routers are used in a large collection of interconnected networks, the routers
exchange information about target system addresses, so that each router can
build up a table showing the preferred paths between any two systems on the
interconnected networks.

6. Gate Way: In a communications network, a network node equipped for


interfacing with another network that uses different protocols.
• A gateway may contain devices such as protocol translators, impedance
matching devices, rate converters, fault isolators, or signal translators as
necessary to provide system interoperability. It also requires the establishment
of mutually acceptable administrative procedures between both networks.
•A protocol translation/mapping gateway interconnects networks with
different network protocol technologies by performing the required protocol
conversions.
7. Brouter: Brouter is a networking device which is used both as bridge and
as a router, it is combination of network bridge and a router.
• A brouter operates at both the datalink layer and the network layer,
allowing it to forward packets based on MAC address (like a bridge) and IP
addresses (like a router).
• It can filter traffic and direct packets based on their destination IP
addresses while also managing traffic within the same network segment.

8. NIC: NIC can refer to network interface card and it is a hardware


component that connect a computer to a network , allowing it to send and
receive data with other devices.
• NICs can be wired (Ethernet cards) or wireless (Wi-Fi cards) , supporting
various standard such as Ethernet ,Wi-Fi, or Bluetooth.

• It converts data between the format used by the computer and the
format used by the network, facilitating communication between devices.

Procedure:

Result:
Thus, install and configure Network Devices PCs are interfaced using connectivity
devices – Hub, router and switch have been done successfully.
Experiment 2

Aim: - To study different types of Network cables and practically


implement the cross-wired cable and straight through cable using
crimping tool.

To do the following
• Cable Crimping
• Standard Cabling
• Cross Cabling
• IO connector crimping
• Testing the crimped cable using a cable tester

Apparatus/Tools/Equipment/Components:
1. RJ-45 connector,
2. IO Connector,
3. Crimping Tool,
4. Twisted pair Cable,
5. Cable Tester.

Standard Cabling: Cross Cabling:


1. 10BaseT and 100BaseT are A cross cable is used to connect 2
most common mode of LAN. computers directly (with ONLY the
You can use UTP category-5 UTP cable). It is also used then you
cable for both modes. connect 2 hubs with a normal port on
2. A straight cable is used to both hubs.
connect a computer to a
hub.
Standard cabling Cross Cabling

Procedure:
Cable Crimping steps:
1. Remove the outmost vinyl shield for 12mm at one end of the cable (we
call this side A-side).
2. Arrange the metal wires in parallel
3. Insert the metal wires into RJ45 connector on keeping the metal wire
arrangement.
4. Set the RJ45 connector (with the cable) on the pliers, and squeeze it
tightly.
5. Make the other side of the cable (we call this side B-side) in the same
way.
6. After you made it, you don't need to take care of the direction of the
cable.

IO connector crimping: Run the full length of Ethernet cable in place, from
endpoint to endpoint, making sure to leave excess.
1. At one end, cut the wire to length leaving enough length to work, but not
too much excess.
2. Strip off about 2 inches of the Ethernet cable sheath.
3. Align each of the coloured wires according to the layout of the jack.
4. Use the punch down tool to insert each wire into the jack.
5. Repeat the above steps for the second RJ45 jack.

Testing the crimped cable using a cable tester:


Step 1: Skin off the cable jacket 3.0 cm long cable stripper up to cable
Step 2: Untwist each pair and straighten each wire 190 0 1.5 cm long.
Step 3: Cut all the wires

Step 4: Insert the wires into the RJ45 connector right white orange left brown
the pins facing up
Step 5: Place the connector into a crimping tool, and squeeze hard so that the
handle reaches its full swing.
Step 6: Use a cable tester to test for proper continuity

Result:
Cable Crimping, Standard Cabling and Cross Cabling, IO connector crimping and
testing the crimped cable using a cable tester are done successfully
Experiment 3

Aim: - To study IP addresses of Networks.

Internet Protocol (IP) is a set of rules that govern how data is transmitted
over a network. It is one of the core protocols in the Internet Protocol Suite,
and its primary function is to address and route packets of data from one
node to another across networks.
Key Concepts of IP:
1. IP Addressing.

2. Routing.

3. Packetization.

Versions of IP:
1. Internet Protocol Version 4.
2. Internet Protocol Version 6.

IP Address Classes and Subnetting (for IPv4):


Classes of IP Addresses:
Each class defines the range of IP addresses and how many devices (hosts)can
be connected in a network.
Class A:
• IP Range: 0.0.0.0 to 127.255.255.255
• Default Subnet Mask: 255.0.0.0 (/8)
• Number of Networks: 128
• Number of Hosts per Network: 16,777,214
• Purpose: Used for large networks, typically by ISPs or very large
organizations. The first octet represents the network portion, and the
remaining three octets are for hosts.
Class B:
• IP Range: 128.0.0.0 to 191.255.255.255
• Default Subnet Mask: 255.255.0.0 (/16)
• Number of Networks: 16,384
• Number of Hosts per Network: 65,534
• Purpose: Commonly used by medium-sized networks, such as
universities or mid-sized businesses. The first two octets represent the
network portion, and the last two are for hosts.
Class C:
• IP Range: 192.0.0.0 to 223.255.255.255
• Default Subnet Mask: 255.255.255.0 (/24)
• Number of Networks: 2,097,152
• Number of Hosts per Network: 254
• Purpose: Suitable for small networks like offices or small companies. The
first three octets are for the network, and the last octet is for hosts.
Class D:
• IP Range: 224.0.0.0 to 239.255.255.255
• Default Subnet Mask: N/A (not used for regular subnetting)
• Number of Networks: N/A
• Number of Hosts per Network: N/A
• Purpose: Used for multicast traffic (one-to-many communication),
typically for applications like streaming video or audio.
Class E:
• IP Range: 240.0.0.0 to 255.255.255.255
• Default Subnet Mask: N/A
• Number of Networks: N/A
• Number of Hosts per Network: N/A
• Purpose: Reserved for experimental purposes and cannot be used on
public networks.

Configuring an IP Address:
1. Manual IP Configuration:

o On Windows or Linux, you can manually assign an IP address


through the network settings, specifying the IP address, subnet
mask, gateway, and DNS servers.

2. Dynamic IP (DHCP):

o Most routers and networks use DHCP to automatically assign IP


addresses to devices.

Subnetting:

Subnetting is the process of dividing a larger network (IP address range) into
smaller, more manageable subnetworks (subnets). This allows for better
organization, improved security, and more efficient use of IP addresses.

Why Subnetting is Used:

1. Efficient IP Address Allocation: Subnetting helps to avoid wasting IP


addresses. For example, instead of assigning a whole Class C network
(which supports 254 hosts) to a small office with only 50 devices,
subnetting allows you to allocate only the exact number of IP addresses
needed.

2. Network Management: By dividing a large network into smaller subnets,


each subnet can be managed independently. This improves performance
and reduces congestion since broadcast traffic is limited to smaller subnet
Experiment 4

Aim: - To learn basic Networking Commands.

1. ipconfig
• Displays your current network configuration. Example: - ipconfig.

2. ping
• Tests the connectivity to another networked device. Example: -ping
google.com
3. nslookup
• Queries DNS to find the IP address of a domain. Example: -nslookup
google.com

4. netstat
• Shows active connections and listening ports. Example: -netstat -an.

5. hostname
• The hostname displays or sets the name of a current host system.
6. route
• Displays or modifies the IP routing table. Example to view the routing
table: -route print.

7. tracert
• Traces the route packets take to destination, showing each hop along
the way.
8. arp

• Displays and modifies the ARP (Address Resolution Protocol) cathe,


which maps IP address to MAC addresses.
INDEX
SNo NAME OF EXPERIMENT DATE SIGN REMARK
Experiment - 12

Aim:- Configure router with DHCP Server.

Method-1

ROUTER -0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname dhcp-server
dhcp-server(config)#int f0/0
dhcp-server(config-if)#ip add 192.168.1.1 255.255.255.0
dhcp-server(config-if)#no sh
dhcp-server(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,


changed state to up

dhcp-server(config-if)#int f0/1
dhcp-server(config-if)#ip add 192.168.2.1 255.255.255.0
dhcp-server(config-if)#no sh
dhcp-server(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to up
dhcp-server(config-if)#exit
dhcp-server(config)#do sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
FastEthernet0/1 192.168.2.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
dhcp-server(config)#
dhcp-server(config)#ip dhcp excluded-address 192.168.1.1
dhcp-server(config)#ip dhcp excluded-address 192.168.2.1
dhcp-server(config)#
dhcp-server(dhcp-config)#
dhcp-server(dhcp-config)#network 192.168.1.1 255.255.255.0
dhcp-server(dhcp-config)#default-router 192.168.1.1
dhcp-server(dhcp-config)#dns-server 9.9.9.9
dhcp-server(dhcp-config)#exit
dhcp-server(config)#ip dhcp pool 192.168.2.1
dhcp-server(dhcp-config)#network 192.168.2.0 255.255.255.0
dhcp-server(dhcp-config)#default-router 192.168.2.1
dhcp-server(dhcp-config)#dns-server 9.9.9.9
dhcp-server(dhcp-config)#
dhcp-server con0 is now available

Press RETURN to get started.


Method-2
Experiment - 18

Aim: IP telephony (VoIP).

ROUTER -0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed


state to up

Router(config-if)#
Router(config-if)#ip dhcp pool VOICE
Router(dhcp-config)#network 192.168.1.1 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#option 150 ip 192.168.1.1
Router(dhcp-config)#
Router(dhcp-config)#exit
Router(config)#telephony-service
Router(config-telephony)#max-dn 5
Router(config-telephony)#max-ephones 5
Router(config-telephony)#ip source-address 192.168.1.1 port 2000
Router(config-telephony)#auto assign 4 to 6
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#
Router(config-telephony)#exit
Router(config)#ephone-dn 1
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1,
changed state to up

Router(config-ephone-dn)#number 001
Router(config-ephone-dn)#exit
Router(config)#
Router(config)#ephone-dn 2
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1,
changed state to up

Router(config-ephone-dn)#number 002
Router(config-ephone-dn)#e
%IPPHONE-6-REGISTER: ephone-1 IP:192.168.1.2 Socket:2 DeviceType:Phone
has registered.
%IPPHONE-6-REGISTER: ephone-2 IP:192.168.1.3 Socket:2 DeviceType:Phone
has registered.

SWITCH -0
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range f0/1-5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport voice vlan1
^
% Invalid input detected at '^' marker.
Switch(config-if-range)#switchport voice vlan 1
Switch(config-if-range)#exit
Switch(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed
state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed


state to up
Experiment - 17

Aim: To understand the operation of SSH by accessing the router in


server room from a PC in IT office.

ROUTER -0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,


changed state to up

Router(config-if)#exit
Router(config)#lint vty 0 4
^
% Invalid input detected at '^' marker.
Router(config)#line vty 0 4
Router(config-line)#

Router(config-line)#password mohit_5859
Router(config-line)#login local
Router(config-line)#exit
Router(config)#username mohitjoshi privilege 4 password mohit_5859
Router(config)#hostname mohit
mohit(config)#ip domain-name cisco
mohit(config)#line vty 0 4
mohit(config-line)#transport input ssh
mohit(config-line)#exit
mohit(config)#crypto generate key
^
% Invalid input detected at '^' marker.
mohit(config)#crypto key generate rsa
The name for the keys will be: mohit.cisco
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024


% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

mohit(config)#
Experiment - 7

Aim: To analyses the performance of various configurations and


protocols in LAN.

Switch>show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----

1 0001.96e1.4973 DYNAMIC Fa0/4


1 0003.e4a6.e494 DYNAMIC Fa0/2
1 000d.bde4.b100 DYNAMIC Fa0/3
1 00e0.8f90.ac02 DYNAMIC Fa0/1
Switch>
Experiment - 8

Aim: To construct a VLAN and make the PC’s communicate among a


VLAN.

SWITCH -0
Switch>en
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 30
Switch(config-vlan)#ex
Switch(config)#vlan 50
Switch(config-vlan)#ex
Switch(config)#int range f0/1-3
Switch(config-if-range)#ex
Switch(config)#int range f0/4-6
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Experiment - 9

Aim: Create a Simple Network Using Packet Tracer using wireless


router.
Experiment - 16

Aim: To understand the operation of TELNET by accessing the router


in server room from a PC in IT office.

ROUTER -0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f1/0
Router(config-if)#ip add 192.168.0.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0,


changed state to up

Router(config-if)#ex
Router(config)#line vty 0 4
Router(config-line)#password mohit_5859
Router(config-line)#login local
Router(config-line)#ex
% Ambiguous command: "ex"
Router(config-line)#exit
Router(config)#username mohitjoshi privilege 4 password mohit_5859
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Experiment - 10

Aim: Create different type of topology using packet tracer.


Network topology refers to the arrangement of various elements (links, nodes,
etc.) in a computer network. Here are some common types of network
topologies, described briefly:
1. Bus Topology
• Structure: All nodes (computers, servers, printers, etc.) are connected to
a single central cable, known as a bus or backbone.
• Data Transmission: Data sent by one device is received by all devices,
but only the intended recipient keeps it while others discard it.
• Advantages:
o Easy to set up and cost-effective for small networks.
o Requires less cabling compared to other topologies.
• Disadvantages:
o Limited cable length and number of devices that can be
connected.
o A failure in the central bus (cable) can bring down the entire
network.
o Performance degrades as more devices are added due to data
collisions.
• Use Cases: Small home networks or temporary setups where simple,
quick connections are needed.
2. Star Topology
• Structure: All devices are connected to a central hub, switch, or router.
The hub acts as a repeater for data.
• Data Transmission: Data is sent from a device to the hub, which then
forwards it to the destination device.
• Advantages:
o Easy to add or remove devices without disrupting the network.
o If one connection fails, the rest of the network remains unaffected
(unless the hub itself fails).
o Centralized management makes it easier to detect and
troubleshoot issues.
• Disadvantages:
o If the central hub fails, the entire network goes down.
o Requires more cabling compared to bus topology, increasing setup
costs.
• Use Cases: Commonly used in office and home networks due to its
reliability and ease of management.
3. Ring Topology
• Structure: Each device is connected to exactly two other devices,
forming a closed loop.
• Data Transmission: Data travels in one direction (unidirectional) or both
directions (bidirectional, in dual ring topology) around the ring until it
reaches the destination.
• Advantages:
o Data packets travel at high speeds due to the directional flow.
o Easier to identify errors and collisions because of the structured
pathway.
• Disadvantages:
o A failure in any single cable or device can disrupt the entire
network.
o Adding or removing devices can be difficult as it may require
temporarily shutting down the network.
• Use Cases: Typically used in networks where there is a need for
predictable data flow, like some industrial or telecommunications
networks.
4. Mesh Topology
• Structure: Every node is connected to every other node in the network.
• Data Transmission: Data can be sent from one node to another through
multiple paths.
• Advantages:
o Extremely reliable due to redundant paths—if one link fails, data
can take an alternate route.
o Well-suited for networks that require high availability and fault
tolerance.
• Disadvantages:
o High cost and complexity due to the large number of connections.
o Requires significant planning and maintenance, as each device
needs multiple connections.
• Use Cases: Commonly used in military applications, WANs, and critical
networks where reliability is a top priority.
Experiment - 13
Aim: To understand the concept and operation of Routing
Information Protocol (RIP).

Router 0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed
state to up
router rip
Router(config-router)#net 192.168.1.0
Router(config-router)#ex
Router(config)#int f0/1
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
router rip
Router(config-router)#net 192.168.2.0
Router(config-router)#ex
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed
state to up
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router 1
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add 192.168.3.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed
state to up
router rip
Router(config-router)#net 192.168.3.0
Router(config-router)#ex
Router(config)#int f0/1
Router(config-if)#ip add 192.168.2.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed
state to up
router rip
Router(config-router)#net 192.168.2.0
Router(config-router)#ex
Router(config)#

Device IP Addresses Subnetmask Gateway


Laptop0 192.168.1.2 255.255.255.0 192.168.1.1
PC0 192.168.1.3 255.255.255.0 192.168.1.1
Laptop1 192.168.3.2 255.255.255.0 192.168.3.1
PC1 192.168.3.3 255.255.255.0 192.168.3.1
Experiment - 15
Aim: To construct multiple router networks and understand the
operation of EIGRP Protocol.
ROUTER – 0

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0
^
% Invalid input detected at '^' marker.
Router(config)#int f0/1
Router(config-if)#ip add 30.0.0.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to up
Router(config-if)#ip add 30.0.0.1 255.0.0.0
Router(config-if)#no sh
Router(config-if)#ex
Router(config)#router eigrp 11
Router(config-router)#network 30.0.0.0 255.0.0.0
Router(config-router)#ex
Router(config)#int f0/0
Router(config-if)#ip add 60.0.0.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#ex
Router(config)#router eigrp 11
Router(config-router)#network 60.0.0.0 255.0.0.0
Router(config-router)#exit
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
changed state to up
Router#
%SYS-5-CONFIG_I: Configured from console by console

ROUTER -1
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/1
Router(config-if)#ip add 50.0.0.3 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to up
Router(config-if)#router eigrp 11
Router(config-router)#ex
Router(config)#router eigrp 11
Router(config-router)#network 50.0.0.0 255.0.0.0
Router(config-router)#ex
Router(config)#int f0/0
Router(config-if)#ip add 80.0.0.1 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
changed state to up

Router(config-if)#ex
Router(config)#router eigrp 11
Router(config-router)#network 80.0.0.0 255.0.0.0
Router(config-router)#ex
Router(config)#

Router#show ip eigrp topology


IP-EIGRP Topology Table for AS 11/ID(30.0.0.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - Reply status

P 30.0.0.0/8, 1 successors, FD is 28160


via Connected, FastEthernet0/1
P 60.0.0.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0

#show ip eigrp interfaces


IP-EIGRP interfaces for process 11

Xmit Queue Mean Pacing Time Multicast Pending


Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Fa0/1 0 0/0 1236 0/10 0 0
Fa0/0 0 0/0 1236 0/10 0 0
Router#
show ip eigrp neighbors
IP-EIGRP neighbors for process 11

Debug eigrp packets


Experiment - 11
Aim: Using the cisco IOS Show Commands.

Topology Diagram:

Code:
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed
state to up
Router(config-if)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 00D0.D398.4B01 ARPA FastEthernet0/0
Internet 192.168.1.3 0 0030.A34A.A465 ARPA FastEthernet0/0

Router#show flash
System flash directory:
File Length Name/status
3 33591768 2800nm-advipservicesk9-mz.151-4.M4.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[33847587 bytes used, 221896413 available, 255744000 total]
249856K bytes of processor board System flash (Read/Write)

Router#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, FastEthernet0/0
L 192.168.1.1/32 is directly connected, FastEthernet0/0

Router#show ip interface
FastEthernet0/0 is up, line protocol is up (connected)
Internet address is 192.168.1.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is disabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled

Router#show protocols
Global values:
Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
Internet address is 192.168.1.1/24

FastEthernet0/1 is administratively down, line protocol is down


Vlan1 is administratively down, line protocol is down
Router#
Router#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00

Interface User Mode Idle Peer Address


Router#show version
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version
15.1(4)M4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thurs 5-Jan-12 15:41 15:41 by pt_team
Experiment - 14
Aim: To construct multiple router networks and understand the
operation of OSPF Protocol.

Code:
Router 0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#ip add 5.0.0.1 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Router(config-if)#int g0/1
Router(config-if)#ip add 10.0.0.1 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Router(config-if)#int g0/2
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,
changed state to up
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
Router(config-if)#ex
Router(config)#router ospf 11
Router(config-router)#network 5.0.0.0 255.0.0.0 area 0
Router(config-router)#network 10.0.0.0 255.0.0.0 area 0
Router(config-router)#network 192.168.1.0 255.255.255.0 area 0
Router(config-router)#ex
Router(config)#ex
Router#
%SYS-5-CONFIG_I: Configured from console by console

00:15:24: %OSPF-5-ADJCHG: Process 11, Nbr 192.168.2.1 on


GigabitEthernet0/1 from LOADING to FULL, Loading Done

00:17:04: %OSPF-5-ADJCHG: Process 11, Nbr 192.168.4.1 on


GigabitEthernet0/0 from LOADING to FULL, Loading Done

Router 1
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#ip add 10.0.0.2 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
Router(config-if)#int g0/1
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
Router(config-if)#ex
Router(config)#router ospf 11
Router(config-router)#network 10.0.0.0 255.0.0.0 area 0
Router(config-router)#network 1 255.0.0.0 area 0
00:15:20: %OSPF-5-ADJCHG: Process 11, Nbr 192.168.1.1 on
GigabitEthernet0/0 from LOAD
Router(config-router)#network 192.168.2.0 255.255.255.0 area 1
Router(config-router)#
Router 3
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#ip add 5.0.0.2 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
Router(config-if)#int g0/1
Router(config-if)#ip add 20.0.0.1 255.0.0.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Router(config-if)#int g0/2
Router(config-if)#ip add 192.168.4.1 255.0.0.0
Router(config-if)#ip add 192.168.4.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,
changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
Router(config-if)#ex
Router(config)#router ospf 11
Router(config-router)#network 5.0.0.0 255.0.0.0 area 0
Router(config-router)#
00:16:53: %OSPF-5-ADJCHG: Process 11, Nbr 192.168.1.1 on
GigabitEthernet0/0 from LOADING to FULL, Loading Done
Router(config-router)#network 20.0.0.0 255.0.0.0 area 0
Router(config-router)#network 192.168.4.0 255.255.255.0 area 0
Router(config-router)#
00:19:12: %OSPF-5-ADJCHG: Process 11, Nbr 192.168.3.1 on
GigabitEthernet0/1 from LOADING to FULL, Loading Done

Router 2
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#ip add 20.0.0.2 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
Router(config-if)#int g0/1
Router(config-if)#ip add 192.168.3.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
Router(config-if)#ex
Router(config)#router ospf 11
Router(config-router)#network 192.168.3.0 255.255.255.0 area 2
Router(config-router)#network 20.0.0.0 255.0.0.0 area 0
Router(config-router)#
00:19:15: %OSPF-5-ADJCHG: Process 11, Nbr 192.168.4.1 on
GigabitEthernet0/0 from LOADING to FULL, Loading Done

Device IP Addresses Subnetmask Gateway


Laptop0 192.168.1.2 255.255.255.0 192.168.1.1
PC0 192.168.1.3 255.255.255.0 192.168.1.1
Laptop1 192.168.2.2 255.255.255.0 192.168.2.1
PC1 192.168.2.3 255.255.255.0 192.168.2.1
Laptop2 192.168.3.2 255.255.255.0 192.168.3.1
PC2 192.168.3.3 255.255.255.0 192.168.3.1
Laptop3 192.168.4.2 255.255.255.0 192.168.4.1
PC3 192.168.4.3 255.255.255.0 192.168.4.1
Output:
Experiment - 5
Aim: Performing an Initial Switch Configuration.

Code:
Switch 0
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#enable password mj11
Switch(config)#enable secret mj11
Switch(config)#line console 0
Switch(config-line)#password mj11
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#line vty 0 15
Switch(config-line)#password mj11
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.1.1 255.255.255.0
Switch(config-if)#no sh

Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to


up
exit
Switch(config)#ip default-gateway 192.168.1.1
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Output:
Experiment - 6
Aim: Performing an Initial Router Configuration.

Code:
Router 0
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname cr
cr(config)#enable password mj11
cr(config)#enable secret mj11
cr(config)#line console 0
cr(config-line)#password mj11
cr(config-line)#login
cr(config-line)#exit
cr(config)#line vty 0 4
cr(config-line)#password mj11
cr(config-line)#login
cr(config-line)#exit
cr(config)#

Output:

You might also like