Professional Documents
Culture Documents
Data Com Notes
Data Com Notes
Data Com Notes
Tabassum Waheed
---------------------------------------------------
Data Communication & Networking Lab Task: 12-09-07
Lab-5
Karachi Router
Router>enable KHI(config-if)#exit
Router#config t KHI(config)#interface serial 1
Enter configuration commands, one per line. End with KHI(config-if)#ip address 13.0.0.1 255.0.0.0
CNTL/Z. KHI(config-if)#bandwidth 1544
Router(config)#hostname KHI KHI(config-if)#clock rate 56000
KHI(config)#exit KHI(config-if)#no shutdown
KHI#config t %LINK-3-UPDOWN: Interface Serial1, changed state to up
KHI(config)#interface serial 0 KHI(config-if)#exit
KHI(config-if)#ip address 10.0.0.1 255.0.0.0 KHI(config)#exit
KHI(config-if)#bandwidth 1544 KHI#copy run startup
KHI(config-if)#clock rate 56000 KHI#show ip route
KHI(config-if)#no shutdown C 10.0.0.0 is directly connected, Serial0
%LINK-3-UPDOWN: Interface Serial0, changed state to up. C 13.0.0.0 is directly connected, Serial1
Lahore Router
Router>enable LHR(config-if)#exit
Router#config t LHR(config)#interface serial 1
Enter configuration commands, one per line. End with LHR(config-if)#ip address 11.0.0.1 255.0.0.0
CNTL/Z. LHR(config-if)#bandwidth 1544
Router(config)#hostname LHR LHR(config-if)#clock rate 56000
LHR(config)#exit LHR(config-if)#no shutdown
LHR#config t %LINK-3-UPDOWN: Interface Serial1, changed state to up
LHR(config)#interface serial 0 LHR(config-if)#exit
LHR(config-if)#ip address 10.0.0.2 255.0.0.0 LHR(config)#exit
LHR(config-if)#bandwidth 1544 LHR#copy run startup
LHR(config-if)#no shutdown LHR#show ip route
%LINK-3-UPDOWN: Interface Serial0, changed state to up. C 10.0.0.0 is directly connected, Serial0
C 11.0.0.0 is directly connected, Serial1
Islamabad Router
Router>enable ISB (config-if)#exit
Router#config t ISB (config)#interface serial 1
Enter configuration commands, one per line. End with ISB (config-if)#ip address 13.0.0.2 255.0.0.0
CNTL/Z. ISB (config-if)#bandwidth 1544
Router(config)#hostname ISB ISB (config-if)#no shutdown
ISB(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to up
ISB#config t ISB (config-if)#exit
ISB(config)#interface serial 0 ISB (config)#exit
ISB(config-if)#ip address 11.0.0.2 255.0.0.0 ISB #copy run startup
ISB(config-if)#bandwidth 1544 ISB #show ip route
ISB(config-if)#no shutdown C 11.0.0.0 is directly connected, Serial0
%LINK-3-UPDOWN: Interface Serial0, changed state to up. C 13.0.0.0 is directly connected, Serial1
Result:
KHI#ping 10.0.0.2
KHI#ping 13.0.0.2
LHR#ping 10.0.0.1
Lab-6
Router Configurations
PC Configurations
PC1 PC2
C:>ipconfig /ip 10.0.0.2 255.0.0.0 C:>ipconfig /ip 12.0.0.2 255.0.0.0
C:>ipconfig /dg 10.0.0.1 C:>ipconfig /dg 12.0.0.1
C:>ipconfig C:>ipconfig
HELP HELP
Manipulates ip address for Workstation. Manipulates ip address for Workstation.
Setting-Up Route
Result
PC1 PC2
C:>ping 12.0.0.2 C:>ping 10.0.0.2
Pinging 12.0.0.2 with 32 bytes of data: Pinging 10.0.0.2 with 32 bytes of data:
Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241
Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241
Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241
Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241
Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241
Ping statistics for 12.0.0.2: Packets: Sent = 5, Received Ping statistics for 10.0.0.2: Packets: Sent = 5, Received
= 5, Lost = 0 (0% loss), = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds: Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms Minimum = 50ms, Maximum = 60ms, Average = 55ms
New Commands:
ip config /ip [IP of Machine + Subnet Mask]
ip config /dg [Default Gateway for Machine]
ip route [Destination Network + Mask] [Gateway]
Lab-7
¤Karachi Router
Router> KHI_01_5B#show ip route
Router>ENABLE Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Router#CONFIG T mobile, B - BGP
Enter configuration commands, one per line. End with D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
CNTL/Z. inter area
Router(config)#hostname KHI_01_5B E1 - OSPF external type 1, E2 - OSPF external type 2,
KHI_01_5B(config)#interface serial 0 E - EGP
KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B(config-if)#bandwidth 1544 candidate default
KHI_01_5B(config-if)#clock rate 64000 U - per-user static route
KHI_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up Gateway of last resort is not set
KHI_01_5B(config-if)#exit
KHI_01_5B(config)#interface serial 1 C 13.0.0.0 is directly connected, Serial1
%LINK-3-UPDOWN: Interface Serial0, changed state to
down %LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface %LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0, changed state to down Serial0, changed state to up
KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 %LINK-3-UPDOWN: Interface Serial1, changed state to up
KHI_01_5B(config-if)#bandwidth 1544 %LINEPROTO-5-UPDOWN: Line protocol on Interface
KHI_01_5B(config-if)#clock rate 64000 Serial1, changed state to up
KHI_01_5B(config-if)#no shutdown KHI_01_5B#show ip route
%LINK-3-UPDOWN: Interface Serial1, changed state to up Codes: C - connected, S - static, I - IGRP, R - RIP, M -
KHI_01_5B(config-if)#exit mobile, B - BGP
KHI_01_5B(config)#exit D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
%LINK-3-UPDOWN: Interface Serial1, changed state to inter area
down E1 - OSPF external type 1, E2 - OSPF external type 2,
%LINEPROTO-5-UPDOWN: Line protocol on Interface E - EGP
Serial1, changed state to down i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B#copy run startup candidate default
Destination filename [startup-config]? U - per-user static route
Building configuration...
[OK] Gateway of last resort is not set
¤Lahore Router
LHR_01_5B#config t
Enter configuration commands, one per line. End with CNTL/Z.
LHR_01_5B(config)#route
LHR_01_5B(config)#router rip
LHR_01_5B(config-router)#network 10.0.0.0
LHR_01_5B(config-router)#network 11.0.0.0
LHR_01_5B(config-router)#
LHR_01_5B(config-router)#exit
LHR_01_5B(config)#exit
LHR_01_5B#copy run startup
Destination filename [startup-config]?
Building configuration...
[OK]
LHR_01_5B#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 4 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 5
Data Communication & Networking Lab8 Task: 03-10-07 Data Communication & Networking Lab8 Task: 03-10-07
Lab-8
¤Lahore Router
Router> Gateway of last resort is not set
Router>enable
Router#config C 10.0.0.0 is directly connected, Serial0
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with LHR_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 1
LHR_01_5B(config)#interface serial 0 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0
LHR_01_5B(config-if)#ip address 10.0.0.2 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544
LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#no clock rate 64000
LHR_01_5B(config-if)#no shutdown LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit
LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit
LHR_01_5B(config)#interface serial 1 LHR_01_5B#copy run startup
LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 Destination filename [startup-config]?
LHR_01_5B(config-if)#bandwidth 1544 Building configuration...
LHR_01_5B(config-if)#clock rate 64000 [OK]
¤Karachi Router LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B#show ip route
Router> KHI_01_5B#show ip route
LHR_01_5B(config-if)#exit Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Router>ENABLE Codes: C - connected, S - static, I - IGRP, R - RIP, M -
LHR_01_5B(config)#exit mobile, B - BGP
Router#CONFIG T mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial1, changed state to D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
Enter configuration commands, one per line. End with D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
down inter area
CNTL/Z. inter area
%LINEPROTO-5-UPDOWN: Line protocol on Interface E1 - OSPF external type 1, E2 - OSPF external type 2,
Router(config)#hostname KHI_01_5B E1 - OSPF external type 1, E2 - OSPF external type 2,
Serial1, changed state to down E - EGP
KHI_01_5B(config)#interface serial 0 E - EGP
LHR_01_5B#copy run startup i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Destination filename [startup-config]? candidate default
KHI_01_5B(config-if)#bandwidth 1544 candidate default
Building configuration... U - per-user static route
KHI_01_5B(config-if)#clock rate 64000 U - per-user static route
[OK]
KHI_01_5B(config-if)#no shutdown
Gateway of last resort is not set
%LINK-3-UPDOWN: Interface Serial0, changed state to up Gateway of last resort is not set
LHR_01_5B#show ip route
KHI_01_5B(config-if)#exit
Codes: C - connected, S - static, I - IGRP, R - RIP, M - C 10.0.0.0 is directly connected, Serial0
KHI_01_5B(config)#interface serial 1 C 13.0.0.0 is directly connected, Serial1
mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial0, changed state to
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF %LINK-3-UPDOWN: Interface Serial1, changed state to up
down %LINK-3-UPDOWN: Interface Serial0, changed state to up
inter area %LINEPROTO-5-UPDOWN: Line protocol on Interface
%LINEPROTO-5-UPDOWN: Line protocol on Interface %LINEPROTO-5-UPDOWN: Line protocol on Interface
E1 - OSPF external type 1, E2 - OSPF external type 2, Serial1, changed state to up
Serial0, changed state to down Serial0, changed state to up
E - EGP LHR_01_5B#show ip route
KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 %LINK-3-UPDOWN: Interface Serial1, changed state to up
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Codes: C - connected, S - static, I - IGRP, R - RIP, M -
KHI_01_5B(config-if)#bandwidth 1544 %LINEPROTO-5-UPDOWN: Line protocol on Interface
candidate default mobile, B - BGP
KHI_01_5B(config-if)#clock rate 64000 Serial1, changed state to up
U - per-user static route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
KHI_01_5B(config-if)#no shutdown KHI_01_5B#show ip route
inter area
%LINK-3-UPDOWN: Interface Serial1, changed state to up Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Gateway of last resort is not set E1 - OSPF external type 1, E2 - OSPF external type 2,
KHI_01_5B(config-if)#exit mobile, B - BGP
E - EGP
KHI_01_5B(config)#exit D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
C 10.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
%LINK-3-UPDOWN: Interface Serial1, changed state to inter area
C 11.0.0.0 is directly connected, Serial1 candidate default
down E1 - OSPF external type 1, E2 - OSPF external type 2,
U - per-user static route
%LINEPROTO-5-UPDOWN: Line protocol on Interface E - EGP
LHR_01_5B#show ip route
Serial1, changed state to down i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Codes: C - connected, S - static, I - IGRP, R - RIP, M - Gateway of last resort is not set
KHI_01_5B#copy run startup candidate default
mobile, B - BGP
Destination filename [startup-config]? U - per-user static route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF C 10.0.0.0 is directly connected, Serial0
Building configuration...
inter area C 11.0.0.0 is directly connected, Serial1
[OK] Gateway of last resort is not set
E1 - OSPF external type 1, E2 - OSPF external type 2,
E - EGP
C 10.0.0.0 is directly connected, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
C 13.0.0.0 is directly connected, Serial1.
candidate default
U - per-user static route
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Data Communication & Networking Lab8 Task: 03-10-07 Data Communication & Networking Lab8 Task: 03-10-07
Setting-Up RIP
¤Islamabad Router
Router> C 13.0.0.0 is directly connected, Serial1
Router>enable ¤Karachi Router ¤Lahore Router ¤Islamabad Router
Router#config t ISB_01_5B#co
Enter configuration commands, one per line. End with ISB_01_5B#configure terminal KHI_01_5B#configure t LHR_01_5B#config t ISB_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with Enter configuration commands, one per Enter configuration commands, one per Enter configuration commands, one per
Router(config)#hostname ISB_01_5B CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z.
ISB_01_5B(config)#interface serial 0 ISB_01_5B(config)#i9n KHI_01_5B(config)#router rip LHR_01_5B(config)#route ISB_01_5B(config)#router rip
KHI_01_5B(config-router)#network LHR_01_5B(config)#router rip ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config)#interface serial 0
10.0.0.0 LHR_01_5B(config-router)#network 13.0.0.0
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 KHI_01_5B(config-router)#network 10.0.0.0 ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#bann 13.0.0.0 LHR_01_5B(config-router)#network 11.0.0.0
%LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-router)#exit 11.0.0.0 ISB_01_5B(config-router)#exit
ISB_01_5B(config-if)#exit ISB_01_5B(config-if)#clock rate 64000 KHI_01_5B(config)#exit LHR_01_5B(config-router)# ISB_01_5B(config)#exit
ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B#copy run startup LHR_01_5B(config-router)#exit ISB_01_5B#copy run startup
%LINK-3-UPDOWN: Interface Serial0, changed state to %LINEPROTO-5-UPDOWN: Line protocol on Interface Destination filename [startup-config]? LHR_01_5B(config)#exit Destination filename [startup-config]?
down Serial0, changed state to up Building configuration... LHR_01_5B#copy run startup Building configuration...
%LINEPROTO-5-UPDOWN: Line protocol on Interface ISB_01_5B(config-if)#no shutdown [OK] Destination filename [startup-config]? [OK]
Building configuration...
Serial0, changed state to down ISB_01_5B(config-if)#exit
KHI_01_5B#show ip route [OK] ISB_01_5B#show ip route
ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config)#exit Codes: C - connected, S - static, I - IGRP, Codes: C - connected, S - static, I - IGRP,
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B#copy run startup R - RIP, M - mobile, B - BGP LHR_01_5B#show ip route R - RIP, M - mobile, B - BGP
ISB_01_5B(config-if)#no shutdown Destination filename [startup-config]? D - EIGRP, EX - EIGRP external, O - Codes: C - connected, S - static, I - IGRP, D - EIGRP, EX - EIGRP external, O -
%LINK-3-UPDOWN: Interface Serial1, changed state to up Building configuration... OSPF, IA - OSPF inter area R - RIP, M - mobile, B - BGP OSPF, IA - OSPF inter area
ISB_01_5B(config-if)#exit [OK] E1 - OSPF external type 1, E2 - OSPF D - EIGRP, EX - EIGRP external, O - E1 - OSPF external type 1, E2 - OSPF
ISB_01_5B(config)#exit external type 2, E - EGP OSPF, IA - OSPF inter area external type 2, E - EGP
ISB_01_5B#copy run startup ISB_01_5B#show ip route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS E1 - OSPF external type 1, E2 - OSPF i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
Destination filename [startup-config]? Codes: C - connected, S - static, I - IGRP, R - RIP, M - level-2, * - candidate default external type 2, E - EGP level-2, * - candidate default
U - per-user static route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS U - per-user static route
Building configuration... mobile, B - BGP
level-2, * - candidate default
[OK] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF Gateway of last resort is not set U - per-user static route Gateway of last resort is not set
inter area
ISB_01_5B#show ip route E1 - OSPF external type 1, E2 - OSPF external type 2, C 10.0.0.0 is directly connected, Serial0 Gateway of last resort is not set C 13.0.0.0 is directly connected,
Codes: C - connected, S - static, I - IGRP, R - RIP, M - E - EGP C 13.0.0.0 is directly connected, Serial1 Serial1
mobile, B - BGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - C 10.0.0.0 is directly connected, C 11.0.0.0 is directly connected,
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF candidate default KHI_01_5B#show ip route Serial0 Serial0
inter area U - per-user static route Codes: C - connected, S - static, I - IGRP, C 11.0.0.0 is directly connected, R 10.0.0.0 [120/1] via 11.0.0.1,
E1 - OSPF external type 1, E2 - OSPF external type 2, R - RIP, M - mobile, B - BGP Serial1 00:02:43, Serial0
D - EIGRP, EX - EIGRP external, O - R 13.0.0.0 [120/1] via 10.0.0.1,
E - EGP Gateway of last resort is not set
OSPF, IA - OSPF inter area 00:06:17, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - E1 - OSPF external type 1, E2 - OSPF
candidate default C 13.0.0.0 is directly connected, Serial1 external type 2, E - EGP
U - per-user static route C 11.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
level-2, * - candidate default
Gateway of last resort is not set U - per-user static route
Gateway of last resort is not set Gateway of last resort is not set Gateway of last resort is not set
C 10.0.0.0 is directly connected, Serial0 C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1
C 13.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial0
R 11.0.0.0 [120/1] via 13.0.0.2, 00:04:24, R 13.0.0.0 [120/1] via 11.0.0.2, 00:02:23,
Serial1 Serial1
Setting-Up IGRIP
¤Karachi Router ¤Lahore Router ¤Islamabad Router
KHI_01_5B#config t LHR_01_5B#configure t ISB_01_5B#config t
KHI_01_5B(config)#router igrp 100 LHR_01_5B(config)#router igrp 100 ISB_01_5B(config)#router igrp 100
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network
10.0.0.0 10.0.0.0 11.0.0.0
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network
13.0.0.0 11.0.0.0 13.0.0.0
KHI_01_5B(config-router)#exit LHR_01_5B(config-router)#exit ISB_01_5B(config-router)#exit
KHI_01_5B(config)#exit LHR_01_5B(config)#exit ISB_01_5B(config)#exit
KHI_01_5B#copy run startup LHR_01_5B#copy run startup ISB_01_5B#copy run startup
Destination filename [startup-config]? Destination filename [startup-config]? Destination filename [startup-config]?
Building configuration... Building configuration... Building configuration...
[OK] [OK] [OK]
Gateway of last resort is not set Gateway of last resort is not set Gateway of last resort is not set
Lab-9
¤Lahore Router
Router> Gateway of last resort is not set
Router>enable
Router#config C 10.0.0.0 is directly connected, Serial0
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with LHR_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 1
LHR_01_5B(config)#interface serial 0 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0
LHR_01_5B(config-if)#ip address 10.0.0.2 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544
LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#no clock rate 64000
LHR_01_5B(config-if)#no shutdown LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit
LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit
LHR_01_5B(config)#interface serial 1 LHR_01_5B#copy run startup
LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 Destination filename [startup-config]?
LHR_01_5B(config-if)#bandwidth 1544 Building configuration...
LHR_01_5B(config-if)#clock rate 64000 [OK]
¤Karachi Router LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B#show ip route
Router> KHI_01_5B#show ip route
LHR_01_5B(config-if)#exit Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Router>ENABLE Codes: C - connected, S - static, I - IGRP, R - RIP, M -
LHR_01_5B(config)#exit mobile, B - BGP
Router#CONFIG T mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial1, changed state to D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
Enter configuration commands, one per line. End with D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
down inter area
CNTL/Z. inter area
%LINEPROTO-5-UPDOWN: Line protocol on Interface E1 - OSPF external type 1, E2 - OSPF external type 2,
Router(config)#hostname KHI_01_5B E1 - OSPF external type 1, E2 - OSPF external type 2,
Serial1, changed state to down E - EGP
KHI_01_5B(config)#interface serial 0 E - EGP
LHR_01_5B#copy run startup i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Destination filename [startup-config]? candidate default
KHI_01_5B(config-if)#bandwidth 1544 candidate default
Building configuration... U - per-user static route
KHI_01_5B(config-if)#clock rate 64000 U - per-user static route
[OK]
KHI_01_5B(config-if)#no shutdown
Gateway of last resort is not set
%LINK-3-UPDOWN: Interface Serial0, changed state to up Gateway of last resort is not set
LHR_01_5B#show ip route
KHI_01_5B(config-if)#exit
Codes: C - connected, S - static, I - IGRP, R - RIP, M - C 10.0.0.0 is directly connected, Serial0
KHI_01_5B(config)#interface serial 1 C 13.0.0.0 is directly connected, Serial1
mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial0, changed state to
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF %LINK-3-UPDOWN: Interface Serial1, changed state to up
down %LINK-3-UPDOWN: Interface Serial0, changed state to up
inter area %LINEPROTO-5-UPDOWN: Line protocol on Interface
%LINEPROTO-5-UPDOWN: Line protocol on Interface %LINEPROTO-5-UPDOWN: Line protocol on Interface
E1 - OSPF external type 1, E2 - OSPF external type 2, Serial1, changed state to up
Serial0, changed state to down Serial0, changed state to up
E - EGP LHR_01_5B#show ip route
KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 %LINK-3-UPDOWN: Interface Serial1, changed state to up
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Codes: C - connected, S - static, I - IGRP, R - RIP, M -
KHI_01_5B(config-if)#bandwidth 1544 %LINEPROTO-5-UPDOWN: Line protocol on Interface
candidate default mobile, B - BGP
KHI_01_5B(config-if)#clock rate 64000 Serial1, changed state to up
U - per-user static route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
KHI_01_5B(config-if)#no shutdown KHI_01_5B#show ip route
inter area
%LINK-3-UPDOWN: Interface Serial1, changed state to up Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Gateway of last resort is not set E1 - OSPF external type 1, E2 - OSPF external type 2,
KHI_01_5B(config-if)#exit mobile, B - BGP
E - EGP
KHI_01_5B(config)#exit D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
C 10.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
%LINK-3-UPDOWN: Interface Serial1, changed state to inter area
C 11.0.0.0 is directly connected, Serial1 candidate default
down E1 - OSPF external type 1, E2 - OSPF external type 2,
U - per-user static route
%LINEPROTO-5-UPDOWN: Line protocol on Interface E - EGP
LHR_01_5B#show ip route
Serial1, changed state to down i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Codes: C - connected, S - static, I - IGRP, R - RIP, M - Gateway of last resort is not set
KHI_01_5B#copy run startup candidate default
mobile, B - BGP
Destination filename [startup-config]? U - per-user static route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF C 10.0.0.0 is directly connected, Serial0
Building configuration...
inter area C 11.0.0.0 is directly connected, Serial1
[OK] Gateway of last resort is not set
E1 - OSPF external type 1, E2 - OSPF external type 2,
E - EGP
C 10.0.0.0 is directly connected, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
C 13.0.0.0 is directly connected, Serial1.
candidate default
U - per-user static route
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V
Data Communication & Networking Lab9 Task: 24-10-07 Data Communication & Networking Lab9 Task: 24-10-07
Setting-Up RIP
¤Islamabad Router
Router> C 13.0.0.0 is directly connected, Serial1
Router>enable ¤Karachi Router ¤Lahore Router ¤Islamabad Router
Router#config t ISB_01_5B#co
Enter configuration commands, one per line. End with ISB_01_5B#configure terminal KHI_01_5B#configure t LHR_01_5B#config t ISB_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with Enter configuration commands, one per Enter configuration commands, one per Enter configuration commands, one per
Router(config)#hostname ISB_01_5B CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z.
ISB_01_5B(config)#interface serial 0 ISB_01_5B(config)#i9n KHI_01_5B(config)#router rip LHR_01_5B(config)#route ISB_01_5B(config)#router rip
KHI_01_5B(config-router)#network LHR_01_5B(config)#router rip ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config)#interface serial 0
10.0.0.0 LHR_01_5B(config-router)#network 13.0.0.0
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 KHI_01_5B(config-router)#network 10.0.0.0 ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#bann 13.0.0.0 LHR_01_5B(config-router)#network 11.0.0.0
%LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-router)#exit 11.0.0.0 ISB_01_5B(config-router)#exit
ISB_01_5B(config-if)#exit ISB_01_5B(config-if)#clock rate 64000 KHI_01_5B(config)#exit LHR_01_5B(config-router)# ISB_01_5B(config)#exit
ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B#copy run startup LHR_01_5B(config-router)#exit ISB_01_5B#copy run startup
%LINK-3-UPDOWN: Interface Serial0, changed state to %LINEPROTO-5-UPDOWN: Line protocol on Interface Destination filename [startup-config]? LHR_01_5B(config)#exit Destination filename [startup-config]?
down Serial0, changed state to up Building configuration... LHR_01_5B#copy run startup Building configuration...
%LINEPROTO-5-UPDOWN: Line protocol on Interface ISB_01_5B(config-if)#no shutdown [OK] Destination filename [startup-config]? [OK]
Building configuration...
Serial0, changed state to down ISB_01_5B(config-if)#exit
KHI_01_5B#show ip route [OK] ISB_01_5B#show ip route
ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config)#exit Codes: C - connected, S - static, I - IGRP, Codes: C - connected, S - static, I - IGRP,
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B#copy run startup R - RIP, M - mobile, B - BGP LHR_01_5B#show ip route R - RIP, M - mobile, B - BGP
ISB_01_5B(config-if)#no shutdown Destination filename [startup-config]? D - EIGRP, EX - EIGRP external, O - Codes: C - connected, S - static, I - IGRP, D - EIGRP, EX - EIGRP external, O -
%LINK-3-UPDOWN: Interface Serial1, changed state to up Building configuration... OSPF, IA - OSPF inter area R - RIP, M - mobile, B - BGP OSPF, IA - OSPF inter area
ISB_01_5B(config-if)#exit [OK] E1 - OSPF external type 1, E2 - OSPF D - EIGRP, EX - EIGRP external, O - E1 - OSPF external type 1, E2 - OSPF
ISB_01_5B(config)#exit external type 2, E - EGP OSPF, IA - OSPF inter area external type 2, E - EGP
ISB_01_5B#copy run startup ISB_01_5B#show ip route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS E1 - OSPF external type 1, E2 - OSPF i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
Destination filename [startup-config]? Codes: C - connected, S - static, I - IGRP, R - RIP, M - level-2, * - candidate default external type 2, E - EGP level-2, * - candidate default
U - per-user static route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS U - per-user static route
Building configuration... mobile, B - BGP
level-2, * - candidate default
[OK] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF Gateway of last resort is not set U - per-user static route Gateway of last resort is not set
inter area
ISB_01_5B#show ip route E1 - OSPF external type 1, E2 - OSPF external type 2, C 10.0.0.0 is directly connected, Serial0 Gateway of last resort is not set C 13.0.0.0 is directly connected,
Codes: C - connected, S - static, I - IGRP, R - RIP, M - E - EGP C 13.0.0.0 is directly connected, Serial1 Serial1
mobile, B - BGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - C 10.0.0.0 is directly connected, C 11.0.0.0 is directly connected,
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF candidate default KHI_01_5B#show ip route Serial0 Serial0
inter area U - per-user static route Codes: C - connected, S - static, I - IGRP, C 11.0.0.0 is directly connected, R 10.0.0.0 [120/1] via 11.0.0.1,
E1 - OSPF external type 1, E2 - OSPF external type 2, R - RIP, M - mobile, B - BGP Serial1 00:02:43, Serial0
D - EIGRP, EX - EIGRP external, O - R 13.0.0.0 [120/1] via 10.0.0.1,
E - EGP Gateway of last resort is not set
OSPF, IA - OSPF inter area 00:06:17, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - E1 - OSPF external type 1, E2 - OSPF
candidate default C 13.0.0.0 is directly connected, Serial1 external type 2, E - EGP
U - per-user static route C 11.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
level-2, * - candidate default
Gateway of last resort is not set U - per-user static route
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V
Data Communication & Networking Lab9 Task: 24-10-07 Data Communication & Networking Lab9 Task: 24-10-07
¤Karachi Router ¤Lahore Router ¤Islamabad Router ¤Karachi Router ¤Lahore Router ¤Islamabad Router
KHI_01_5B#debug ip igrp events LHR_01_5B#debug ip igrp events ISB_01_5B#debug ip igrp events
KHI_01_5B#config t LHR_01_5B#configure t ISB_01_5B#config t IGRP event debugging is on IGRP event debugging is on IGRP event debugging is on
KHI_01_5B(config)#router igrp 100 LHR_01_5B(config)#router igrp 100 ISB_01_5B(config)#router igrp 100 IGRP: sending update to IGRP: received update from 10.0.0.1 IGRP: received update from 11.0.0.1
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network 255.255.255.255 via Serial0 (10.0.0.1) on Serial0 on Serial0
10.0.0.0 10.0.0.0 11.0.0.0 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
13.0.0.0 11.0.0.0 13.0.0.0 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2
KHI_01_5B(config-router)#exit LHR_01_5B(config-router)#exit ISB_01_5B(config-router)#exit
KHI_01_5B(config)#exit LHR_01_5B(config)#exit ISB_01_5B(config)#exit IGRP: sending update to IGRP: sending update to IGRP: sending update to
KHI_01_5B#copy run startup LHR_01_5B#copy run startup ISB_01_5B#copy run startup 255.255.255.255 via Serial1 (13.0.0.1) 255.255.255.255 via Serial0 (10.0.0.2) 255.255.255.255 via Serial0 (11.0.0.2)
Destination filename [startup-config]? Destination filename [startup-config]? Destination filename [startup-config]? IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1
Building configuration... Building configuration... Building configuration... system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
[OK] [OK] [OK] IGRP: Total routes in update: 1 IGRP: Total routes in update: 1 IGRP: Total routes in update: 1
Gateway of last resort is not set Gateway of last resort is not set Gateway of last resort is not set IGRP: received update from 10.0.0.2 IGRP: sending update to IGRP: sending update to
on Serial0 255.255.255.255 via Serial1 (11.0.0.1) 255.255.255.255 via Serial1 (13.0.0.2)
C 10.0.0.0 is directly connected, C 10.0.0.0 is directly connected, C 13.0.0.0 is directly connected, IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
Serial0 Serial0 Serial1 system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
C 13.0.0.0 is directly connected, C 11.0.0.0 is directly connected, C 11.0.0.0 is directly connected, IGRP: Total routes in update: 1 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2
Serial1 Serial1 Serial0
I 13.0.0.0 [100/651] via 10.0.0.1, I 10.0.0.0 [100/651] via 13.0.0.1, IGRP: received update from 13.0.0.2 IGRP: received update from 11.0.0.2 IGRP: received update from 13.0.0.1
KHI_01_5B#show ip route 00:07:41, Serial0 00:07:44, Serial1 on Serial1 on Serial1 on Serial1
IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1
Gateway of last resort is not set system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
IGRP: Total routes in update: 2 IGRP: Total routes in update: 1 IGRP: Total routes in update: 1
C 10.0.0.0 is directly connected,
Serial0 IGRP: sending update to IGRP: received update from 10.0.0.1 IGRP: received update from 11.0.0.1
C 13.0.0.0 is directly connected, 255.255.255.255 via Serial0 (10.0.0.1) on Serial0 on Serial0
Serial1 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
I 11.0.0.0 [100/651] via 13.0.0.2, system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
00:08:28, Serial1 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2
IGRP: received update from 13.0.0.2 IGRP: received update from 11.0.0.2 IGRP: received update from 13.0.0.1
on Serial1 on Serial1 on Serial1
IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1
system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
IGRP: Total routes in update: 2 IGRP: Total routes in update: 1 IGRP: Total routes in update: 1
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V
Data Communication & Networking Lab9 Task: 24-10-07
Debugging IGRIP
¤Karachi Router ¤Lahore Router ¤Islamabad Router
KHI_01_5B# show ip protocols LHR_01_5B#no debug all ISB_01_5B#no debug all
Routing Protocol is "igrp 100" All possible debugging has been All possible debugging has been
Sending updates every 90 seconds, turned off turned off
next due in 13 seconds LHR_01_5B#show ip protocols ISB_01_5B#show ip protocols
Invalid after 270 seconds, hold down Routing Protocol is "igrp 100" Routing Protocol is "igrp 100"
280, flushed after 630 Sending updates every 90 seconds, Sending updates every 90 seconds,
Outgoing update filter list for all next due in 13 seconds next due in 79 seconds
interfaces is not set Invalid after 270 seconds, hold down Invalid after 270 seconds, hold down
Incoming update filter list for all 280, flushed after 630 280, flushed after 630
interfaces is not set Outgoing update filter list for all Outgoing update filter list for all
Default networks flagged in outgoing interfaces is not set interfaces is not set
updates Incoming update filter list for all Incoming update filter list for all
Default networks accepted from interfaces is not set interfaces is not set
incoming updates Default networks flagged in outgoing Default networks flagged in outgoing
IGRP metric weight K1=1, K2=0, updates updates
K3=1, K4=0, K5=0 Default networks accepted from Default networks accepted from
IGRP maximum hopcount 100 incoming updates incoming updates
IGRP maximum metric variance 1 IGRP metric weight K1=1, K2=0, IGRP metric weight K1=1, K2=0,
Redistributing: igrp 100 K3=1, K4=0, K5=0 K3=1, K4=0, K5=0
Routing for Networks: IGRP maximum hopcount 100 IGRP maximum hopcount 100
10.0.0.0 IGRP maximum metric variance 1 IGRP maximum metric variance 1
13.0.0.0 Redistributing: igrp 100 Redistributing: igrp 100
Routing Information Sources: Routing for Networks: Routing for Networks:
10.0.0.2 100 00:00:03 10.0.0.0 11.0.0.0
13.0.0.2 100 00:00:03 11.0.0.0 13.0.0.0
Distance: (default is 100) Routing Information Sources: Routing Information Sources:
11.0.0.2 100 00:00:06 13.0.0.1 100 00:00:00
10.0.0.1 100 00:00:03 11.0.0.1 100 00:00:03
Distance: (default is 100) Distance: (default is 100)
Lab-12
SNIFFERS
Ethereal:
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3
Data Communication & Networking Lab12 Task: 15-11-07
Smart Sniff:
Traceroute Command:
Traceroute works by sending packets with low time to live (TTL) fields. the TTL specifies
how many hops the packet is allowed before it is returned. When a packet can't reach it's
destination because the TTL value is too low, the last host returns the packet and identifies
itself. By sending the series of packets and incrementing the TTL value with each successive
packet, Traceroute finds out who all the intermediary hosts are. Traceroute is used to find the
quality of internet connection.
Depending on the ms values displayed after the processing of the cmd, the latency is found and
the quality is determined.
Router 1 Router 2 Router 3
Router>enable Router>enable Router>enable
Router#config t Router#config t Router#config t
Router(config)#hostname R1_5B- Router(config)#hostname R2_5B- Router(config)#hostname R4_5B-
01-EE 01-EE 01-EE
R1_5B-01-EE(config)#int e0 R2_5B-01-EE(config)#int e0 R4_5B-01-EE(config)#int s0
R1_5B-01-EE(config-if)#ip address R2_5B-01-EE(config-if)#ip address R4_5B-01-EE(config-if)#ip address
192.168.1.1 255.255.255.0 192.168.1.2 255.255.255.0 192.168.2.2 255.255.255.0
R1_5B-01-EE(config-if)#no shut R2_5B-01-EE(config-if)#no shut R4_5B-01-EE(config-if)#no shut
R1_5B-01-EE(config-if)#exit %LINK-3-UPDOWN: Interface %LINK-3-UPDOWN: Interface
R1_5B-01-EE(config)#int s0 Ethernet0, changed state to up Serial0, changed state to up
R1_5B-01-EE(config-if)#ip address R2_5B-01-EE(config-if)#exit R4_5B-01-EE(config-if)#exit
192.168.2.1 255.255.255.0 R2_5B-01-EE(config)#router rip R4_5B-01-EE(config)#router rip
R1_5B-01-EE(config-if)#no shut R2_5B-01-EE(config- R4_5B-01-EE(config-
R1_5B-01-EE(config-if)#exit router)#network 192.168.1.0 router)#network 192.168.2.0
R1_5B-01-EE(config)#router rip R2_5B-01-EE(config-
router)#network 192.168.2.0 R4_5B-01-EE#show ip route
R1_5B-01-EE(config- C 192.168.2.0 is directly
router)#network 192.168.1.0 R2_5B-01-EE#show ip route connected, Serial0
R1_5B-01-EE(config- C 192.168.1.0 is directly R 192.168.1.0 [120/1] via
router)#network 192.168.2.0 connected, Ethernet0 192.168.2.1, 00:01:23, Serial0
R 192.168.2.0 [120/1] via
R1_5B-01-EE#show ip route 192.168.1.1, 00:09:30, Ethernet0
C 192.168.1.0 is directly
connected,Ethernet0 R2_5B-01-EE#ping 192.168.2.2
C 192.168.2.0 is directly connected, Sending 5, 100-byte ICMP Echos to
Serial0 192.168.2.2, timeout is 2.2
R1_5B-01-EE#ping 192.168.1.2 seconds:!!!!!
Sending 5, 100-byte ICMP Echos to Success rate is 100 percent (5/5),
192.168.1.2, timeout is 2 seconds: round-trip min/avg/max = 1/2/4 ms
Success rate is 100 percent (5/5),
round-trip min/avg/max = 1/2/4 ms
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Data Communication & Networking Stand Alone Lab-21 Data Communication & Networking Stand Alone Lab-21
Total Allocated ISDN CCBs = 0 Number of L2 Discards = 0, L2 Session ID = 100
ISDN R1_5B-001-EE#config t Total Allocated ISDN CCBs = 0
Enter configuration commands, one per line. End with R2_5B-001-EE#config t
CNTL/Z. Enter configuration commands, one per line. End with
R1_5B-001-EE(config)#int bri0 CNTL/Z.
R1_5B-001-EE(config-if)#dialer string 7782001 R2_5B-001-EE(config)#int bri0
R1_5B-001-EE(config-if)#exit R2_5B-001-EE(config-if)#dialer string 7782002
R1_5B-001-EE(config)#dialer-list 1 protocol ip permit R2_5B-001-EE(config-if)#exit
R1_5B-001-EE(config)#int bri0 R2_5B-001-EE(config)#dialer-list 1 protocol ip permit
R1_5B-001-EE(config-if)#dialer-group 1 R2_5B-001-EE(config)#int bri0
R1_5B-001-EE#ping 42.34.10.121 R2_5B-001-EE(config-if)#dialer-group 1
Type escape sequence to abort. R2_5B-001-EE(config-if)#exit
Sending 5, 100-byte ICMP Echos to 42.34.10.121, R2_5B-001-EE(config)#exit
timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 1/2/4 ms
What is an ISDN?
Router 1 Router 2
Router> Router> x http://www.networktutorials.info/index.html
Router>enable Router>
Router#config t Router>enable ISDN network is a digital communication system that is capable of producing the maximum transmission
Enter configuration commands, one per line. End with Router#config t speed of 1.4Mbps. 128Kbps speed is however more common in the digital technology. It's a international standard
CNTL/Z. Enter configuration commands, one per line. End with for sending data, voice, video over regular digital telephone lines. ISDN uses UTP (unshielded twisted pair cable)
Router(config)#hostname R1_5B-001-EE CNTL/Z. for transmission.
R1_5B-001-EE(config)#int bri0 Router(config)#hostname R2_5B-001-EE
R1_5B-001-EE(config-if)#ip address 42.34.10.121 R2_5B-001-EE(config)#int bri0 Types of ISDN Network
255.255.255.0 R2_5B-001-EE(config-if)#ip address 42.34.10.121 There are two basic types
R1_5B-001-EE(config-if)#no shut 255.255.255.0 • Basic Rate Interface (BRI) – It consists of two 64 B-channels and one D-channel for transmitting control
%LINK-3-UPDOWN: Interface Bri0, changed state to R2_5B-001-EE(config-if)#no shut information.
up %LINK-3-UPDOWN: Interface Bri0, changed state to • Primary Rate Interface (PRI) -- It consists of 23 B-channels and one D-channel (for U.S.) or 30 B-channels and
R1_5B-001-EE(config-if)#end up one D-channel (for Europe).
R1_5B-001-EE#config t R2_5B-001-EE(config-if)#end The actual version of ISDN employs base band transmission. Another version, called B-ISDN, uses broadband
Enter configuration commands, one per line. End with R2_5B-001-EE#config t transmission, which is able to support transmission rate of 1.5 Mbps. B-ISDN mainly requires fiber optic cables.
CNTL/Z. Enter configuration commands, one per line. End with To access the B channel, it is necessary to subscribe the ISDN phone line. Customers are also required to have
R1_5B-001-EE(config)#isdn switch-type basic-ni CNTL/Z. some special ISDN devices, which are known as terminal adapters, which are used to communication with the
R1_5B-001-EE(config)#int bri0 R2_5B-001-EE(config)#isdn switch-type basic-ni telephone company switch or other ISDN devices.
R1_5B-001-EE(config-if)#isdn spid1 32177820010100 R2_5B-001-EE(config)#int bri0
R1_5B-001-EE(config-if)#exit R2_5B-001-EE(config-if)#isdn spid1 32177820020100
R1_5B-001-EE(config)#exit R2_5B-001-EE(config-if)#exit
x http://www.webopedia.com
R1_5B-001-EE#show isdn status R2_5B-001-EE(config)#exit
Global ISDN Switchtype = basic-ni R2_5B-001-EE#show isdn status
ISDN BRI0 interface Global ISDN Switchtype = basic-ni SPID:
dsl 0, interface ISDN Switchtype = basic-ni ISDN BRI0 interface
Layer 1 Status: dsl 0, interface ISDN Switchtype = basic-ni Service Profile Identifier, a number that identifies a specific ISDN line. When you obtain ISDN service, your
TESTING Layer 1 Status: telephone company assigns a SPID to your line. Part of the initialization procedure is to configure your ISDN
Layer 2 Status: TESTING terminal adapter to use this SPID.
TEI = 64, Ces = 1, SAPI = 0, State = Layer 2 Status:
MULTIPLE_FRAME_ESTABLISHED TEI = 64, Ces = 1, SAPI = 0, State = Most telephone companies in the U.S. use the Generic SPID Format, which is a 14-digit number. The first 10 digits
TEI 64, ces = 1, state = 5(init) MULTIPLE_FRAME_ESTABLISHED identify the telephone number, called the Directory Number (DN). The remaining four digits identify a particular
spid1 configured, no LDN, spid1 sent, spid1 TEI 64, ces = 1, state = 5(init) ISDN device, in the case where multiple devices share the same Directory Number.
valid spid1 configured, no LDN, spid1 sent, spid1
Layer 3 Status: valid
0 Active Layer 3 Call(s) Layer 3 Status:
Active dsl 0 CCBs = 0 0 Active Layer 3 Call(s)
The Free Channel Mask: 0x80000003 Active dsl 0 CCBs = 0
Number of L2 Discards = 0, L2 Session ID = 100 The Free Channel Mask: 0x80000003
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Data Communication & Networking Stand Alone Lab-34 Data Communication & Networking Stand Alone Lab-34
As a common way to remotely control a web server, Telnet is a protocol for remote computing on the
Internet. It allows a computer to act as a remote terminal on another machine, anywhere on the Internet. This
means that when you telnet to a particular host and port, the remote computer (which must have a Telnet server)
accepts input directly from your computer (which must have a Telnet client) and output for your session is directed
to your screen. There are many library and information resources that are accessible through Telnet.
SearchNetworking.com
Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers. Through
Telnet, an administrator or another user can access someone else's computer remotely. On the Web, HTTP and
FTP protocols allow you to request specific files from remote computers, but not to actually be logged on as a user
Router 1 Router 2 of that computer. With Telnet, you log on as a regular user with whatever privileges you may have been granted to
Router> Router> the specific application and data on that computer.
Router>enable Router>enable A Telnet command request looks like this (the computer name is made-up):
Router#config t Router#config t telnet the.libraryat.whatis.edu
Enter configuration commands, one per line. End Enter configuration commands, one per line. End with The result of this request would be an invitation to log on with a userid and a prompt for a password. If accepted,
with CNTL/Z. CNTL/Z. you would be logged on like any user who used this computer every day.
Router(config)#hostname R1_5B-001-EE Router(config)#hostname R2_5B-001-EE Telnet is most likely to be used by program developers and anyone who has a need to use specific applications or
R1_5B-001-EE(config)#line vty 0 4 R2_5B-001-EE(config)#int e0 data located at a particular host computer.
R1_5B-001-EE(config-line)#login R2_5B-001-EE(config-if)#ip address 34.25.67.2
R1_5B-001-EE(config-line)#password boson 255.255.255.0
R1_5B-001-EE(config-line)#exit R2_5B-001-EE(config-if)#no shut
R1_5B-001-EE(config)#int e0 %LINK-3-UPDOWN: Interface Ethernet0, changed state to
R1_5B-001-EE(config-if)#ip address 34.25.67.18 up
255.255.255.0 R2_5B-001-EE(config-if)#end
R1_5B-001-EE(config-if)#no shut R2_5B-001-EE#telnet 34.25.67.18
%LINK-3-UPDOWN: Interface Ethernet0, changed
state to up Trying 34.25.67.18 ... Open
% The Message that appeared was:
Password: boson
R1_5B-001-EE>
R1_5B-001-EE><ctrl>+<shift>+<6>- - -+<X>
R2_5B-001-EE#
%Screen Resumed back Router2
R2_5B-001-EE#show sessions
Conn Host Address Byte Idle Conn
Name
* 1 34.25.67.18 34.25.67.18 0 9
34.25.67.18
R2_5B-001-EE#resume 1
Resuming connection 1 to 34.25.67.18
R2_5B-001-EE#disconnect 1
Closing connection to 34.25.67.18
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
KHI(config)#int e0
KHI(config-if)#ip address 10.0.0.1 255.0.0.0
KHI(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
KHI(config-if)#exit
KHI(config)#exit
KHI#copy run startup
Destination filename [startup-config]?
Building configuration...
[OK]
KHI(config)#exit
KHI#ping 11.0.0.2
1 2
Router(config)#hostname LHRm Building configuration...
LHRm(config)#int s0 [OK]
LHRm(config-if)#ip address 11.0.0.2 255.0.0.0
LHRm(config-if)#bandwidth 1544 LHRm#show ip route
LHRm(config-if)#no shutdown Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial0, changed state to up D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
LHRm(config-if)#exit E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
LHRm(config)#int e0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
LHRm(config-if)#ip address 13.0.0.1 255.0.0.0 U - per-user static route
LHRm(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up Gateway of last resort is not set
LHRm(config-if)#exit
LHRm(config)#int s1 C 11.0.0.0 is directly connected, Serial0
LHRm(config-if)#ip address 12.0.0.1 255.0.0.0 C 13.0.0.0 is directly connected, Ethernet0
LHRm(config-if)#bandwidth 1544 C 12.0.0.0 is directly connected, Serial1
LHRm(config-if)#no shut S 10.0.0.0 [1/0] via 11.0.0.1
%LINK-3-UPDOWN: Interface Serial1, changed state to up
LHRm(config-if)#exit
LHRm(config)#exit
%LINK-3-UPDOWN: Interface Serial1, changed state to down
Lahore Router2:
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down Router>enable
LHRm#copy run startup Router#co
Destination filename [startup-config]? Router#configure
Building configuration... Configuring from terminal, memory, or network [terminal]?
[OK] Enter configuration commands, one per line. End with CNTL/Z.
#show vlan-membership
Port VLAN Membership Type Port VLAN Membership Type
----------------------------- -----------------------------
1 22 Static
2 22 Static
3 1 Static
4 1 Static
5 1 Static
6 1 Static
7 1 Static
8 1 Static
9 1 Static
10 1 Static
11 1 Static
12 1 Static
AUI 1 Static
A 1 Static
B 1 Static
5 6
HELP
PC1: Manipulates ip address for Workstation.
C:>ipconfig /ip 10.0.0.2 255.0.0.0
C:>ipconfig /dg 10.0.0.1 IPCONFIG [/ip] [/dg]
C:>ping 10.0.0.3 /ip Adds the ip address and subnet mask to the workstation
Pinging 10.0.0.3 with 32 bytes of data: /dg Adds the default gateway to the workstation
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Examples:
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 ¢ ipconfig /ip 157.1.1.12 255.0.0.0
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 ¢ ipconfig /dg 157.1.1.1
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Boson BOSS 5.0 IP Configuration
Ethernet adapter Local Area Connection:
Ping statistics for 10.0.0.3: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), IP Address. . . . . . . . . . . . : 10.0.0.2
Approximate round trip times in milli-seconds: Subnet Mask . . . . . . . . . . . : 255.0.0.0
Minimum = 50ms, Maximum = 60ms, Average = 55ms Default Gateway . . . . . . . . . : 10.0.0.1
C:>ping 10.0.0.1
Pinging 10.0.0.1 with 32 bytes of data: You can also use winipcfg to configure the IP Address
Request timed out.
Request timed out.
Request timed out.
PC2:
Request timed out. C:>ipconfig /ip 10.0.0.3 255.0.0.0
Request timed out. C:>ipconfig /dg 10.0.0.1
7 8
KHI(config-if)#exit
Practice Sinerio 2 KHI(config)#exit
KHI#copy run startup
Destination filename [startup-config]?
Building configuration...
[OK]
KHI#ping 11.0.0.2
3 4
hostname Set the system's network name
LHR#ping 10.0.0.2 interface Select an interface to configure
ip Global IP configuration subcommands
Type escape sequence to abort. line Configure a terminal line
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds: mac-address-table Configure the mac address table
..... rip Routing information protocol configuration
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms service Configuration Command
LHR#configure spantree Spanning tree subsystem
Configuring from terminal, memory, or network [terminal]? switching-mode Sets the switching mode
Enter configuration commands, one per line. End with CNTL/Z. uplink-fast Enable Uplink fast
vlan VLAN configuration
LHR(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1 vlan-membership VLAN membership server configuration
LHR(config)#exit vtp Global VTP configuration commands
LHR#copy run startup (config)#int ?
Destination filename [startup-config]? ethernet IEEE 802.3
Building configuration... (config)#int e?
[OK] ethernet
7 8
C:>ipconfig e-Station5:
C:>
HELP C:>ipconfig /ip 10.0.0.6 255.0.0.0
Manipulates ip address for Workstation. C:>ipconfig /dg 10.0.0.1
C:>ipconfig
IPCONFIG [/ip] [/dg]
/ip Adds the ip address and subnet mask to the workstation HELP
/dg Adds the default gateway to the workstation Manipulates ip address for Workstation.
Examples: IPCONFIG [/ip] [/dg]
¢ ipconfig /ip 157.1.1.12 255.0.0.0 /ip Adds the ip address and subnet mask to the workstation
¢ ipconfig /dg 157.1.1.1 /dg Adds the default gateway to the workstation
Boson BOSS 5.0 IP Configuration Examples:
Ethernet adapter Local Area Connection: ¢ ipconfig /ip 157.1.1.12 255.0.0.0
IP Address. . . . . . . . . . . . : 10.0.0.4 ¢ ipconfig /dg 157.1.1.1
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1 Boson BOSS 5.0 IP Configuration
Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . : 10.0.0.6
You can also use winipcfg to configure the IP Address Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1
C:>ipconfig /dg 10.0.0.10
HELP
Manipulates ip address for Workstation.
Examples:
¢ ipconfig /ip 157.1.1.12 255.0.0.0
¢ ipconfig /dg 157.1.1.1
Problem:
The mistake was that switch interface with Karachi Router was given the same ip [Network
Address] as with the e-stations on the other interfaces of Switch so that Routers couldn’t reach the
e-stations….
11