Cn5 Merged
Cn5 Merged
E
Experiment 1
Aim: -To Install and configure Network Devices HUB, Switch and
Routers PCs are interfaced using connectivity 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.
• 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
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.
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.
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
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.
Configuring an IP Address:
1. Manual IP Configuration:
2. Dynamic IP (DHCP):
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.
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
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
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
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
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
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
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.
mohit(config)#
Experiment - 7
Switch>show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
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
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
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
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)#
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)#
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
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
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
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
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: