data com notes

91

Upload: taimur-musharraf

Post on 15-Nov-2014

148 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Data Com Notes
Page 2: Data Com Notes
Page 3: Data Com Notes
Page 4: Data Com Notes
Page 5: Data Com Notes
Page 6: Data Com Notes
Page 7: Data Com Notes
Page 8: Data Com Notes
Page 9: Data Com Notes
Page 10: Data Com Notes
Page 11: Data Com Notes
Page 12: Data Com Notes
Page 13: Data Com Notes
Page 14: Data Com Notes
Page 15: Data Com Notes
Page 16: Data Com Notes
Page 17: Data Com Notes
Page 18: Data Com Notes
Page 19: Data Com Notes
Page 20: Data Com Notes
Page 21: Data Com Notes
Page 22: Data Com Notes
Page 23: Data Com Notes
Page 24: Data Com Notes
Page 25: Data Com Notes
Page 26: Data Com Notes
Page 27: Data Com Notes
Page 28: Data Com Notes
Page 29: Data Com Notes
Page 30: Data Com Notes
Page 31: Data Com Notes
Page 32: Data Com Notes
Page 33: Data Com Notes
Page 34: Data Com Notes
Page 35: Data Com Notes
Page 36: Data Com Notes
Page 37: Data Com Notes
Page 38: Data Com Notes
Page 39: Data Com Notes
Page 40: Data Com Notes
Page 41: Data Com Notes
Page 42: Data Com Notes
Page 43: Data Com Notes
Page 44: Data Com Notes
Page 45: Data Com Notes
Page 46: Data Com Notes
Page 47: Data Com Notes
Page 48: Data Com Notes
Page 49: Data Com Notes
Page 50: Data Com Notes

IINNDDEEXX

TAIMUR MUSHARRAF 05B-001-EE SEC:A

Course Instructor’s Sign & Remarks:

Tabassum Waheed---------------------------------------------------

S. # Date Lab Description Remarks Sign 1 08-08-07

Introduction to NOS, Workgroups, Campus Network

2 15-08-07 TCP/IP Utilities

3 29-08-07 Cabling

4 05-09-07 Introduction to Routers

5 12-09-07 Router Configuration

6 19-09-07Interface Configuration & Static Routing

7 26-09-07 Dynamic Routing

8 03-10-07 Dynamic Routing-IGRP

9 24-10-07 Administrative Distance

10 31-10-07 Bridging/Switching

11 07-11-07 VLANS

12 14-11-07 Packet Sniffers

Page 51: Data Com Notes
Page 52: Data Com Notes
Page 53: Data Com Notes
Page 54: Data Com Notes
Page 55: Data Com Notes
Page 56: Data Com Notes
Page 57: Data Com Notes

Data Communication & Networking Lab Task: 12-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

LLaabb--55

Karachi Router Router>enableRouter#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname KHI KHI(config)#exitKHI#config t KHI(config)#interface serial 0 KHI(config-if)#ip address 10.0.0.1 255.0.0.0 KHI(config-if)#bandwidth 1544 KHI(config-if)#clock rate 56000 KHI(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up.

KHI(config-if)#exitKHI(config)#interface serial 1 KHI(config-if)#ip address 13.0.0.1 255.0.0.0 KHI(config-if)#bandwidth 1544 KHI(config-if)#clock rate 56000 KHI(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up

KHI(config-if)#exitKHI(config)#exitKHI#copy run startup KHI#show ip route C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1

Lahore Router Router>enableRouter#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname LHR LHR(config)#exitLHR#config t LHR(config)#interface serial 0 LHR(config-if)#ip address 10.0.0.2 255.0.0.0 LHR(config-if)#bandwidth 1544 LHR(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up.

LHR(config-if)#exitLHR(config)#interface serial 1 LHR(config-if)#ip address 11.0.0.1 255.0.0.0 LHR(config-if)#bandwidth 1544 LHR(config-if)#clock rate 56000 LHR(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up

LHR(config-if)#exitLHR(config)#exitLHR#copy run startup LHR#show ip route C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

Page 58: Data Com Notes

Data Communication & Networking Lab Task: 12-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

Islamabad Router Router>enableRouter#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ISB ISB(config)#exitISB#config t ISB(config)#interface serial 0 ISB(config-if)#ip address 11.0.0.2 255.0.0.0 ISB(config-if)#bandwidth 1544 ISB(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up.

ISB (config-if)#exit ISB (config)#interface serial 1 ISB (config-if)#ip address 13.0.0.2 255.0.0.0 ISB (config-if)#bandwidth 1544 ISB (config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up

ISB (config-if)#exit ISB (config)#exit ISB #copy run startup ISB #show ip route C 11.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1

Result:

KHI#ping 10.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

KHI#ping 13.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 13.0.0.2, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

LHR#ping 10.0.0.1

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Page 59: Data Com Notes
Page 60: Data Com Notes

Data Communication & Networking Lab Task: 19-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

LLaabb--66

Router Configurations

Karachi Router Lahore Router Router>enableRouter#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname KHI KHI(config)#exitKHI#config t KHI(config)#interface ethernet 0 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)#exitKHI(config)#interface serial 0 KHI(config-if)#ip address 11.0.0.1 255.0.0.0 KHI(config-if)#bandwidth 1544 KHI(config-if)#clock rate 6400 KHI(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI(config-if)#exitKHI(config)#exitKHI#copy run startup KHI#show ip route C 10.0.0.0 is directly connected, Ethernet0 C 11.0.0.0 is directly connected, Serial0

Router>enableRouter#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname LHR LHR(config)#exitLHR(config)#interface ethernet 0 LHR(config-if)#ip a LHR(config-if)#ip address 12.0.0.1 255.0.0.0 LHR(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0, changed state to up LHR(config-if)#exitLHR(config)#interface serial 0 LHR(config-if)#ip address 11.0.0.2 255.0.0.0 LHR(config-if)#bandwidth 1544 LHR(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up LHR(config-if)#exitLHR(config)#exit

LHR#copy run startup LHR#show ip route C 12.0.0.0 is directly connected, Ethernet0 C 11.0.0.0 is directly connected, Serial0

Page 61: Data Com Notes

Data Communication & Networking Lab Task: 19-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

PC Configurations

PC1 PC2 C:>ipconfig /ip 10.0.0.2 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . . . : 10.0.0.2 Subnet Mask . . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1

C:>ipconfig /ip 12.0.0.2 255.0.0.0 C:>ipconfig /dg 12.0.0.1 C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 12.0.0.2 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 12.0.0.1

Setting-Up Route

Karachi Router Lahore Router KHI(config)#ip route 12.0.0.0 255.0.0.0 11.0.0.2 KHI(config)#exit

LHR(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1 LHR(config)#exit

ResultPC1 PC2

C:>ping 12.0.0.2 Pinging 12.0.0.2 with 32 bytes of data:

Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 12.0.0.2: bytes=32 time=60ms TTL=241 Reply from 12.0.0.2: bytes=32 time=60ms TTL=241

Ping statistics for 12.0.0.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55ms

C:>ping 10.0.0.2 Pinging 10.0.0.2 with 32 bytes of data:

Reply from 10.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241 Reply from 10.0.0.2: bytes=32 time=60ms TTL=241

Ping statistics for 10.0.0.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: 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]

Page 62: Data Com Notes

Data Communication & Networking Lab7 Task: 26-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

LLaabb--77

Karachi Router Router> Router>ENABLE Router#CONFIG T Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname KHI_01_5B KHI_01_5B(config)#interface serial 0 KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 KHI_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-if)#clock rate 64000 KHI_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B(config-if)#exit KHI_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 KHI_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-if)#clock rate 64000 KHI_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up KHI_01_5B(config-if)#exit KHI_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

%LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1.

Page 63: Data Com Notes

Data Communication & Networking Lab7 Task: 26-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

Lahore Router Router> Router>enable Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 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)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit LHR_01_5B(config)#interface serial 1 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#clock rate 64000 LHR_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down 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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

LHR_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. LHR_01_5B(config)#interface serial 1 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 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)#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

%LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up 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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

C 11.0.0.0 is directly connected, Serial1

Data Communication & Networking Lab7 Task: 26-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3

Islamabad Router Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ISB_01_5B ISB_01_5B(config)#interface serial 0 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#exit ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up ISB_01_5B(config-if)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

ISB_01_5B#co ISB_01_5B#configure terminal Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#i9n ISB_01_5B(config)#interface serial 0 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bann ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#clock rate 64000 %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial0

Page 64: Data Com Notes

Data Communication & Networking Lab7 Task: 26-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 4

SSeettttiinngg--UUpp RRIIPPKarachi Router

KHI_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. KHI_01_5B(config)#router rip KHI_01_5B(config-router)#network 10.0.0.0 KHI_01_5B(config-router)#network 13.0.0.0 KHI_01_5B(config-router)#exit KHI_01_5B(config)#exit KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1 R 11.0.0.0 [120/1] via 13.0.0.2, 00:09:19, Serial1

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

Data Communication & Networking Lab7 Task: 26-09-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 5

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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1 R 13.0.0.0 [120/1] via 10.0.0.1, 00:06:17, Serial0

Islamabad Router

ISB_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#router rip ISB_01_5B(config-router)#network 13.0.0.0 ISB_01_5B(config-router)#network 11.0.0.0 ISB_01_5B(config-router)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial0 R 10.0.0.0 [120/1] via 11.0.0.1, 00:02:43, Serial0

Page 65: Data Com Notes
Page 66: Data Com Notes

Data Communication & Networking Lab8 Task: 03-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

LLaabb--88

Karachi Router Router> Router>ENABLE Router#CONFIG T Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname KHI_01_5B KHI_01_5B(config)#interface serial 0 KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 KHI_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-if)#clock rate 64000 KHI_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B(config-if)#exit KHI_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 KHI_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-if)#clock rate 64000 KHI_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up KHI_01_5B(config-if)#exit KHI_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

%LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1.

Data Communication & Networking Lab8 Task: 03-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

Lahore Router Router> Router>enable Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 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)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit LHR_01_5B(config)#interface serial 1 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#clock rate 64000 LHR_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down 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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

LHR_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. LHR_01_5B(config)#interface serial 1 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 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)#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

%LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up 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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

Page 67: Data Com Notes

Data Communication & Networking Lab8 Task: 03-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3

Islamabad Router Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ISB_01_5B ISB_01_5B(config)#interface serial 0 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#exit ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up ISB_01_5B(config-if)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

ISB_01_5B#co ISB_01_5B#configure terminal Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#i9n ISB_01_5B(config)#interface serial 0 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bann ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#clock rate 64000 %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial0

Data Communication & Networking Lab8 Task: 03-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 4

SSeettttiinngg--UUpp RRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. KHI_01_5B(config)#router rip KHI_01_5B(config-router)#network 10.0.0.0 KHI_01_5B(config-router)#network 13.0.0.0 KHI_01_5B(config-router)#exit KHI_01_5B(config)#exit KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1 R 11.0.0.0 [120/1] via 13.0.0.2, 00:09:19, Serial1

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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 11.0.0.0 is directly connected, Serial1R 13.0.0.0 [120/1] via 10.0.0.1, 00:06:17, Serial0

ISB_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#router rip ISB_01_5B(config-router)#network 13.0.0.0 ISB_01_5B(config-router)#network 11.0.0.0 ISB_01_5B(config-router)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1C 11.0.0.0 is directly connected, Serial0R 10.0.0.0 [120/1] via 11.0.0.1, 00:02:43, Serial0

NNeeggaattiinngg RRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. KHI_01_5B(config)#no router rip KHI_01_5B(config)#exit KHI_01_5B#copy run startup Destination filename [startup-config]?

LHR_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. LHR_01_5B(config)#no router rip LHR_01_5B(config)#exit LHR_01_5B#copy run startup Destination filename [startup-config]?

ISB_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#no router rip ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]?

Page 68: Data Com Notes

Data Communication & Networking Lab8 Task: 03-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 5

Building configuration... [OK]

KHI_01_5B#show ip route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1 R 11.0.0.0 [120/1] via 13.0.0.2, 00:04:24, Serial1

KHI_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 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, * - candidate default U - per-user static route Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1

Building configuration... [OK]

LHR_01_5B#show ip route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1 R 13.0.0.0 [120/1] via 11.0.0.2, 00:02:23, Serial1

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 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, * - candidate default U - per-user static route Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

Building configuration... [OK]

ISB_01_5B#show ip route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial0

SSeettttiinngg--UUpp IIGGRRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B#config t KHI_01_5B(config)#router igrp 100 KHI_01_5B(config-router)#network 10.0.0.0 KHI_01_5B(config-router)#network 13.0.0.0 KHI_01_5B(config-router)#exit KHI_01_5B(config)#exit KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 13.0.0.0 is directly connected, Serial1

KHI_01_5B#show ip route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 13.0.0.0 is directly connected, Serial1I 11.0.0.0 [100/651] via 13.0.0.2, 00:08:28, Serial1

LHR_01_5B#configure t LHR_01_5B(config)#router igrp 100 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)#exit LHR_01_5B(config)#exit LHR_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 11.0.0.0 is directly connected, Serial1I 13.0.0.0 [100/651] via 10.0.0.1, 00:07:41, Serial0

ISB_01_5B#config t ISB_01_5B(config)#router igrp 100 ISB_01_5B(config-router)#network 11.0.0.0 ISB_01_5B(config-router)#network 13.0.0.0 ISB_01_5B(config-router)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1C 11.0.0.0 is directly connected, Serial0I 10.0.0.0 [100/651] via 13.0.0.1, 00:07:44, Serial1

Page 69: Data Com Notes

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

LLaabb--99

Karachi Router Router> Router>ENABLE Router#CONFIG T Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname KHI_01_5B KHI_01_5B(config)#interface serial 0 KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 KHI_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-if)#clock rate 64000 KHI_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B(config-if)#exit KHI_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 KHI_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-if)#clock rate 64000 KHI_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up KHI_01_5B(config-if)#exit KHI_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

%LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up %LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1.

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

Lahore Router Router> Router>enable Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 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)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit LHR_01_5B(config)#interface serial 1 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#clock rate 64000 LHR_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down 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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

LHR_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. LHR_01_5B(config)#interface serial 1 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 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)#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0

%LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up 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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial1

Page 70: Data Com Notes

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

Islamabad Router Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ISB_01_5B ISB_01_5B(config)#interface serial 0 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#exit ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to up ISB_01_5B(config-if)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1

ISB_01_5B#co ISB_01_5B#configure terminal Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#i9n ISB_01_5B(config)#interface serial 0 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config-if)#bann ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#clock rate 64000 %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1 C 11.0.0.0 is directly connected, Serial0

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

SSeettttiinngg--UUpp RRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. KHI_01_5B(config)#router rip KHI_01_5B(config-router)#network 10.0.0.0 KHI_01_5B(config-router)#network 13.0.0.0 KHI_01_5B(config-router)#exit KHI_01_5B(config)#exit KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Serial1

KHI_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 13.0.0.0 is directly connected, Serial1R 11.0.0.0 [120/1] via 13.0.0.2, 00:09:19, Serial1

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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 11.0.0.0 is directly connected, Serial1R 13.0.0.0 [120/1] via 10.0.0.1, 00:06:17, Serial0

ISB_01_5B#configure t Enter configuration commands, one per line. End with CNTL/Z. ISB_01_5B(config)#router rip ISB_01_5B(config-router)#network 13.0.0.0 ISB_01_5B(config-router)#network 11.0.0.0 ISB_01_5B(config-router)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

ISB_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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1C 11.0.0.0 is directly connected, Serial0R 10.0.0.0 [120/1] via 11.0.0.1, 00:02:43, Serial0

Page 71: Data Com Notes

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

SSeettttiinngg--UUpp IIGGRRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B#config t KHI_01_5B(config)#router igrp 100 KHI_01_5B(config-router)#network 10.0.0.0 KHI_01_5B(config-router)#network 13.0.0.0 KHI_01_5B(config-router)#exit KHI_01_5B(config)#exit KHI_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 13.0.0.0 is directly connected, Serial1

KHI_01_5B#show ip route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 13.0.0.0 is directly connected, Serial1I 11.0.0.0 [100/651] via 13.0.0.2, 00:08:28, Serial1

LHR_01_5B#configure t LHR_01_5B(config)#router igrp 100 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)#exit LHR_01_5B(config)#exit LHR_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0C 11.0.0.0 is directly connected, Serial1I 13.0.0.0 [100/651] via 10.0.0.1, 00:07:41, Serial0

ISB_01_5B#config t ISB_01_5B(config)#router igrp 100 ISB_01_5B(config-router)#network 11.0.0.0 ISB_01_5B(config-router)#network 13.0.0.0 ISB_01_5B(config-router)#exit ISB_01_5B(config)#exit ISB_01_5B#copy run startup Destination filename [startup-config]? Building configuration... [OK]

Gateway of last resort is not set

C 13.0.0.0 is directly connected, Serial1C 11.0.0.0 is directly connected, Serial0I 10.0.0.0 [100/651] via 13.0.0.1, 00:07:44, Serial1

RESULT:

Note that first router table for remote networks was formed by RIP and when IGRP is enabled the new routing table or the information about remote networks to respective router is gathered by IGRP.

It is due the administrative distance of IGRP i.e. 100 which less than that of RIP i.e. 120.

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

DDeebbuuggggiinngg IIGGRRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B#debug ip igrp events IGRP event debugging is on IGRP: sending update to 255.255.255.255 via Serial0 (10.0.0.1) IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial1 (13.0.0.1) IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: received update from 10.0.0.2 on Serial0 IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: received update from 13.0.0.2 on Serial1 IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial0 (10.0.0.1) IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial1 (13.0.0.1) IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: received update from 10.0.0.2 on Serial0 IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: received update from 13.0.0.2 on Serial1 IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

KHI_01_5B#no debug all All possible debugging has been turned off

LHR_01_5B#debug ip igrp events IGRP event debugging is on IGRP: received update from 10.0.0.1 on Serial0 IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial0 (10.0.0.2) IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: sending update to 255.255.255.255 via Serial1 (11.0.0.1) IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: received update from 11.0.0.2 on Serial1 IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: received update from 10.0.0.1 on Serial0 IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial0 (10.0.0.2) IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: sending update to 255.255.255.255 via Serial1 (11.0.0.1) IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: received update from 11.0.0.2 on Serial1 IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

LHR_01_5B#no debug all All possible debugging has been turned off

ISB_01_5B#debug ip igrp events IGRP event debugging is on IGRP: received update from 11.0.0.1 on Serial0 IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial0 (11.0.0.2) IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: sending update to 255.255.255.255 via Serial1 (13.0.0.2) IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: received update from 13.0.0.1 on Serial1 IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: received update from 11.0.0.1 on Serial0 IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: sending update to 255.255.255.255 via Serial0 (11.0.0.2) IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

IGRP: sending update to 255.255.255.255 via Serial1 (13.0.0.2) IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. IGRP: Total routes in update: 2

IGRP: received update from 13.0.0.1 on Serial1 IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. IGRP: Total routes in update: 1

ISB_01_5B#no debug all All possible debugging has been turned off

Page 72: Data Com Notes

Data Communication & Networking Lab9 Task: 24-10-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V

DDeebbuuggggiinngg IIGGRRIIPP

Karachi Router Lahore Router Islamabad Router

KHI_01_5B# show ip protocols Routing Protocol is "igrp 100" Sending updates every 90 seconds, next due in 13 seconds Invalid after 270 seconds, hold down 280, flushed after 630 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 IGRP maximum hopcount 100 IGRP maximum metric variance 1 Redistributing: igrp 100 Routing for Networks: 10.0.0.0 13.0.0.0 Routing Information Sources: 10.0.0.2 100 00:00:03 13.0.0.2 100 00:00:03 Distance: (default is 100)

LHR_01_5B#no debug all All possible debugging has been turned off LHR_01_5B#show ip protocols Routing Protocol is "igrp 100" Sending updates every 90 seconds, next due in 13 seconds Invalid after 270 seconds, hold down 280, flushed after 630 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 IGRP maximum hopcount 100 IGRP maximum metric variance 1 Redistributing: igrp 100 Routing for Networks: 10.0.0.0 11.0.0.0 Routing Information Sources: 11.0.0.2 100 00:00:06 10.0.0.1 100 00:00:03 Distance: (default is 100)

ISB_01_5B#no debug all All possible debugging has been turned off ISB_01_5B#show ip protocols Routing Protocol is "igrp 100" Sending updates every 90 seconds, next due in 79 seconds Invalid after 270 seconds, hold down 280, flushed after 630 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 IGRP maximum hopcount 100 IGRP maximum metric variance 1 Redistributing: igrp 100 Routing for Networks: 11.0.0.0 13.0.0.0 Routing Information Sources: 13.0.0.1 100 00:00:00 11.0.0.1 100 00:00:03 Distance: (default is 100)

Page 73: Data Com Notes
Page 74: Data Com Notes
Page 75: Data Com Notes
Page 76: Data Com Notes

Data Communication & Networking Lab12 Task: 15-11-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

Lab-12

SSNNIIFFFFEERRSS

Ethereal:

Page 77: Data Com Notes

Data Communication & Networking Lab12 Task: 15-11-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

Ethereal

Data Communication & Networking Lab12 Task: 15-11-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3

MyNetMon:

Page 78: Data Com Notes

Data Communication & Networking Lab12 Task: 15-11-07

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 4

Smart Sniff:

Page 79: Data Com Notes

Data Communication & Networking Stand Alone Lab-17

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

TTrraacceerroouuttee

Router 1 Router 2 Router 3 Router>enable Router#config t Router(config)#hostname R1_5B-01-EE R1_5B-01-EE(config)#int e0 R1_5B-01-EE(config-if)#ip address 192.168.1.1 255.255.255.0 R1_5B-01-EE(config-if)#no shut R1_5B-01-EE(config-if)#exit R1_5B-01-EE(config)#int s0 R1_5B-01-EE(config-if)#ip address 192.168.2.1 255.255.255.0 R1_5B-01-EE(config-if)#no shut R1_5B-01-EE(config-if)#exit R1_5B-01-EE(config)#router rip

R1_5B-01-EE(config-router)#network 192.168.1.0 R1_5B-01-EE(config-router)#network 192.168.2.0

R1_5B-01-EE#show ip route C 192.168.1.0 is directly connected,Ethernet0 C 192.168.2.0 is directly connected, Serial0R1_5B-01-EE#ping 192.168.1.2 Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Router>enable Router#config t Router(config)#hostname R2_5B-01-EE R2_5B-01-EE(config)#int e0 R2_5B-01-EE(config-if)#ip address 192.168.1.2 255.255.255.0 R2_5B-01-EE(config-if)#no shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up R2_5B-01-EE(config-if)#exit R2_5B-01-EE(config)#router rip R2_5B-01-EE(config-router)#network 192.168.1.0 R2_5B-01-EE(config-router)#network 192.168.2.0

R2_5B-01-EE#show ip route C 192.168.1.0 is directly connected, Ethernet0 R 192.168.2.0 [120/1] via 192.168.1.1, 00:09:30, Ethernet0

R2_5B-01-EE#ping 192.168.2.2 Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2.2 seconds:!!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Router>enable Router#config t Router(config)#hostname R4_5B-01-EE R4_5B-01-EE(config)#int s0 R4_5B-01-EE(config-if)#ip address 192.168.2.2 255.255.255.0 R4_5B-01-EE(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up R4_5B-01-EE(config-if)#exit R4_5B-01-EE(config)#router rip R4_5B-01-EE(config-router)#network 192.168.2.0

R4_5B-01-EE#show ip route C 192.168.2.0 is directly connected, Serial0 R 192.168.1.0 [120/1] via 192.168.2.1, 00:01:23, Serial0

Data Communication & Networking Stand Alone Lab-17

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

R1_5B-01-EE#ping 192.168.2.2 Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds: Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 m

R2_5B-01-EE#traceroute192.168.2.2 Tracing the route to 192.168.2.2 1 192.168.1.1 0 msec 18 msec 0 msec 2 192.168.2.2 21 msec 18 msec *

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.

The cmd is used as: tracert yahoo.com

Depending on the ms values displayed after the processing of the cmd, the latency is found and the quality is determined.

Page 80: Data Com Notes

Data Communication & Networking Stand Alone Lab-21

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

IISSDDNN

Router 1 Router 2 Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1_5B-001-EE R1_5B-001-EE(config)#int bri0 R1_5B-001-EE(config-if)#ip address 42.34.10.121 255.255.255.0 R1_5B-001-EE(config-if)#no shut %LINK-3-UPDOWN: Interface Bri0, changed state to up R1_5B-001-EE(config-if)#end R1_5B-001-EE#config t Enter configuration commands, one per line. End with CNTL/Z. R1_5B-001-EE(config)#isdn switch-type basic-ni R1_5B-001-EE(config)#int bri0 R1_5B-001-EE(config-if)#isdn spid1 32177820010100 R1_5B-001-EE(config-if)#exit R1_5B-001-EE(config)#exit R1_5B-001-EE#show isdn status Global ISDN Switchtype = basic-ni ISDN BRI0 interface dsl 0, interface ISDN Switchtype = basic-ni Layer 1 Status: TESTING Layer 2 Status: TEI = 64, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED TEI 64, ces = 1, state = 5(init) spid1 configured, no LDN, spid1 sent, spid1 valid Layer 3 Status: 0 Active Layer 3 Call(s) Active dsl 0 CCBs = 0 The Free Channel Mask: 0x80000003 Number of L2 Discards = 0, L2 Session ID = 100

Router> Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2_5B-001-EE R2_5B-001-EE(config)#int bri0 R2_5B-001-EE(config-if)#ip address 42.34.10.121 255.255.255.0 R2_5B-001-EE(config-if)#no shut %LINK-3-UPDOWN: Interface Bri0, changed state to up R2_5B-001-EE(config-if)#end R2_5B-001-EE#config t Enter configuration commands, one per line. End with CNTL/Z. R2_5B-001-EE(config)#isdn switch-type basic-ni R2_5B-001-EE(config)#int bri0 R2_5B-001-EE(config-if)#isdn spid1 32177820020100 R2_5B-001-EE(config-if)#exit R2_5B-001-EE(config)#exit R2_5B-001-EE#show isdn status Global ISDN Switchtype = basic-ni ISDN BRI0 interface dsl 0, interface ISDN Switchtype = basic-ni Layer 1 Status: TESTING Layer 2 Status: TEI = 64, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED TEI 64, ces = 1, state = 5(init) spid1 configured, no LDN, spid1 sent, spid1 valid Layer 3 Status: 0 Active Layer 3 Call(s) Active dsl 0 CCBs = 0 The Free Channel Mask: 0x80000003

Data Communication & Networking Stand Alone Lab-21

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

Total Allocated ISDN CCBs = 0 R1_5B-001-EE#config t Enter configuration commands, one per line. End with CNTL/Z. R1_5B-001-EE(config)#int bri0 R1_5B-001-EE(config-if)#dialer string 7782001 R1_5B-001-EE(config-if)#exit R1_5B-001-EE(config)#dialer-list 1 protocol ip permit R1_5B-001-EE(config)#int bri0 R1_5B-001-EE(config-if)#dialer-group 1 R1_5B-001-EE#ping 42.34.10.121Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 42.34.10.121, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Number of L2 Discards = 0, L2 Session ID = 100 Total Allocated ISDN CCBs = 0 R2_5B-001-EE#config t Enter configuration commands, one per line. End with CNTL/Z. R2_5B-001-EE(config)#int bri0 R2_5B-001-EE(config-if)#dialer string 7782002 R2_5B-001-EE(config-if)#exit R2_5B-001-EE(config)#dialer-list 1 protocol ip permit R2_5B-001-EE(config)#int bri0 R2_5B-001-EE(config-if)#dialer-group 1 R2_5B-001-EE(config-if)#exit R2_5B-001-EE(config)#exit

What is an ISDN?

http://www.networktutorials.info/index.html

ISDN network is a digital communication system that is capable of producing the maximum transmission speed of 1.4Mbps. 128Kbps speed is however more common in the digital technology. It's a international standard for sending data, voice, video over regular digital telephone lines. ISDN uses UTP (unshielded twisted pair cable) for transmission.

Types of ISDN NetworkThere are two basic types • Basic Rate Interface (BRI) – It consists of two 64 B-channels and one D-channel for transmitting control information.• Primary Rate Interface (PRI) -- It consists of 23 B-channels and one D-channel (for U.S.) or 30 B-channels and one D-channel (for Europe). The actual version of ISDN employs base band transmission. Another version, called B-ISDN, uses broadband transmission, which is able to support transmission rate of 1.5 Mbps. B-ISDN mainly requires fiber optic cables. To access the B channel, it is necessary to subscribe the ISDN phone line. Customers are also required to have some special ISDN devices, which are known as terminal adapters, which are used to communication with the telephone company switch or other ISDN devices.

http://www.webopedia.com

SPID:

Service Profile Identifier, a number that identifies a specific ISDN line. When you obtain ISDN service, your telephone company assigns a SPID to your line. Part of the initialization procedure is to configure your ISDN terminal adapter to use this SPID.

Most telephone companies in the U.S. use the Generic SPID Format, which is a 14-digit number. The first 10 digits identify the telephone number, called the Directory Number (DN). The remaining four digits identify a particular ISDN device, in the case where multiple devices share the same Directory Number.

Page 81: Data Com Notes

Data Communication & Networking Stand Alone Lab-34

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1

TTeellnneett

Router 1 Router 2 Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1_5B-001-EE R1_5B-001-EE(config)#line vty 0 4 R1_5B-001-EE(config-line)#login R1_5B-001-EE(config-line)#password boson R1_5B-001-EE(config-line)#exit R1_5B-001-EE(config)#int e0 R1_5B-001-EE(config-if)#ip address 34.25.67.18 255.255.255.0 R1_5B-001-EE(config-if)#no shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up

Router> Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2_5B-001-EE R2_5B-001-EE(config)#int e0 R2_5B-001-EE(config-if)#ip address 34.25.67.2 255.255.255.0 R2_5B-001-EE(config-if)#no shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up R2_5B-001-EE(config-if)#end R2_5B-001-EE#telnet 34.25.67.18

Trying 34.25.67.18 ... Open

% The Message that appeared was: Password: bosonR1_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

Data Communication & Networking Stand Alone Lab-34

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2

What is Telnet?

http://www.apluskb.com/scripts/category_1pp196.html

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 of that computer. With Telnet, you log on as a regular user with whatever privileges you may have been granted to the specific application and data on that computer. A Telnet command request looks like this (the computer name is made-up): telnet the.libraryat.whatis.edu The result of this request would be an invitation to log on with a userid and a prompt for a password. If accepted, you would be logged on like any user who used this computer every day. Telnet is most likely to be used by program developers and anyone who has a need to use specific applications or data located at a particular host computer.

Page 82: Data Com Notes

1

Karachi Router:Router> Router>enable Router#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname KHI KHI(config)#int s0 KHI(config-if)#ip address 11.0.0.1 255.0.0.0 KHI(config-if)#ba KHI(config-if)#bandwidth 1544 KHI(config-if)#clock rate 64000 KHI(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI(config-if)#exit %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down KHI(config)#exitKHI#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI#configure

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)#exitKHI#copy run startup Destination filename [startup-config]? Building configuration... [OK]

%LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up KHI#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

KHI(config)#ip route 13.0.0.0 255.0.0.0 11.0.0.2 KHI(config)#ip route 13.0.0.0 255.0.0.0 11.0.0.2 KHI(config)#ping 11.0.0.2 ^ % Invalid input detected at '^' marker.

KHI(config)#exitKHI#ping 11.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 11.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms KHI#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

KHI(config)#ro KHI(config)#rou KHI(config)#router ? eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) rip Routing Information Protocol (RIP) igrp Interior Gateway Routing Protocol (IGRP) ospf Open Shortest Path First (OSPF) bgp Border Gateway Protocol (BGP) isis ISO IS-IS KHI(config)#router igrp 100 KHI(config-router)#network 10.0.0.0 KHI(config-router)#network 11.0.0.0 KHI(config-router)#exit KHI(config)#exitKHI#copy run startup Destination filename [startup-config]?

Lahore Router:Router#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Page 83: Data Com Notes

3

Router(config)#hostname LHRm LHRm(config)#int s0 LHRm(config-if)#ip address 11.0.0.2 255.0.0.0 LHRm(config-if)#bandwidth 1544 LHRm(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up LHRm(config-if)#exit LHRm(config)#int e0 LHRm(config-if)#ip address 13.0.0.1 255.0.0.0 LHRm(config-if)#no shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up LHRm(config-if)#exit LHRm(config)#int s1 LHRm(config-if)#ip address 12.0.0.1 255.0.0.0 LHRm(config-if)#bandwidth 1544 LHRm(config-if)#no shut %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 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down LHRm#copy run startup Destination filename [startup-config]? Building configuration... [OK]

%LINK-3-UPDOWN: Interface Serial1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up LHRm#ip route 10.0.0.0 255.0.0.0 11.0.0.1 ^ % Invalid input detected at '^' marker.

LHRm#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

LHRm(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1 LHRm(config)#ping 11.0.0.2 ^ % Invalid input detected at '^' marker.

LHRm(config)#exit LHRm#ping 11.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 11.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms LHRm#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

LHRm(config)#router igrp 100 LHRm(config-router)#network 11.0.0.0 LHRm(config-router)# LHRm(config-router)#network 13.0.0.0 LHRm(config-router)#network 12.0.0.0 LHRm(config-router)#exit LHRm(config)#exit LHRm#copy run startup Destination filename [startup-config]?

4

Building configuration... [OK]

LHRm#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 11.0.0.0 is directly connected, Serial0 C 13.0.0.0 is directly connected, Ethernet0 C 12.0.0.0 is directly connected, Serial1 S 10.0.0.0 [1/0] via 11.0.0.1

Lahore Router2:Router>enable Router#co Router#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname LHRs LHRs(config)#int s1 LHRs(config-if)#ip address 12.0.0.2 255.0.0.0 LHRs(config-if)#bandwidth 1544 LHRs(config-if)#clock rate 64000 LHRs(config-if)#no shut %LINK-3-UPDOWN: Interface Serial1, changed state to up LHRs(config-if)#exit LHRs(config)#exit LHRs#copy run startup Destination filename [startup-config]? Building configuration... [OK]

LHRs#ping 12.0.0.1

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms LHRs#ping 11.0.0.1

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms LHRs#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

Page 84: Data Com Notes

5

C 12.0.0.0 is directly connected, Serial1

LHRs#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

LHRs(config)#router igrp 100 LHRs(config-router)#network 12.0.0.0 LHRs(config-router)#exit LHRs(config)#exit LHRs#copy run startup Destination filename [startup-config]? Building configuration... [OK]

LHRs#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 12.0.0.0 is directly connected, Serial1 I 11.0.0.0 [100/651] via 12.0.0.1, 00:06:44, Serial1 I 13.0.0.0 [100/651] via 12.0.0.1, 00:09:12, Serial1

6

Switch>enable #configure t Enter configuration commands, one per line. End with CNTL/Z. (config)#vlan 22 name PC (config)#int eo/1 ^ % Invalid input detected at '^' marker. (config)#int e0/1 (config-if)#vlan-membership static 22 (config-if)#exit (config)#int e0/2 (config-if)#vlan-membership static 22 (config-if)#exit (config)#exit #copy run startup ^ % Invalid input detected at '^' marker.

#show vlan

VLAN Name Status Ports -------------------------------------- 1 default Enabled 3-12, AUI, A, B 22 PC Enabled 1-2 1002 fddi-default Suspended 1003 token-ring-defau Suspended 1004 fddinet-default Suspended 1005 trnet-default Suspended -------------------------------------- VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2 --------------------------------------------------------------------------- 1 Ethernet 100001 1500 0 0 0 Unkn 1002 1003 22 Ethernet 100022 1500 0 1 1 Unkn 0 0 1002 FDDI 101002 1500 0 0 0 Unkn 1 1003 1003 Token-Ring 101003 1500 1005 1 0 Unkn 1 1002 1004 FDDI-Net 101004 1500 0 0 1 IEEE 0 0 1005 Token-Ring-Net 101005 1500 0 0 1 IEEE 0 0 ---------------------------------------------------------------------------

#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

Page 85: Data Com Notes

7

PC1:C:>ipconfig /ip 10.0.0.2 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ping 10.0.0.3 Pinging 10.0.0.3 with 32 bytes of data:

Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Reply from 10.0.0.3: bytes=32 time=60ms TTL=241

Ping statistics for 10.0.0.3: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55ms

C:>ping 10.0.0.1 Pinging 10.0.0.1 with 32 bytes of data:

Request timed out. Request timed out. Request timed out. Request timed out. Request timed out.

Ping statistics for 10.0.0.1: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:>ping 13.0.0.2 Pinging 13.0.0.2 with 32 bytes of data:

Request timed out. Request timed out. Request timed out. Request timed out. Request timed out.

Ping statistics for 13.0.0.2: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:>ping 13.0.0.2 Pinging 13.0.0.2 with 32 bytes of data:

Request timed out. Request timed out. Request timed out. Request timed out. Request timed out.

Ping statistics for 13.0.0.2: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:>ipconfig

8

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation

Examples: ¢ ipconfig /ip 157.1.1.12 255.0.0.0 ¢ ipconfig /dg 157.1.1.1

Boson BOSS 5.0 IP Configuration Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 10.0.0.2 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1

You can also use winipcfg to configure the IP Address

PC2:C:>ipconfig /ip 10.0.0.3 255.0.0.0 C:>ipconfig /dg 10.0.0.1

PC3:C:>ipconfig /ip 13.0.0.2 ^ % Invalid input detected at '^' marker.

C:>ipconfig /ip 13.0.0.2 255.0.0.0 C:>ipconfig /dg 13.0.0.1 C:>ping 13.0.0.01 Pinging 13.0.0.01 with 32 bytes of data:

Request timed out. Request timed out. Request timed out. Request timed out. Request timed out.

Ping statistics for 13.0.0.01: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:>ping 13.0.0.1 Pinging 13.0.0.1 with 32 bytes of data:

Reply from 13.0.0.1: bytes=32 time=60ms TTL=241 Reply from 13.0.0.1: bytes=32 time=60ms TTL=241 Reply from 13.0.0.1: bytes=32 time=60ms TTL=241 Reply from 13.0.0.1: bytes=32 time=60ms TTL=241 Reply from 13.0.0.1: bytes=32 time=60ms TTL=241

Ping statistics for 13.0.0.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55ms

Page 86: Data Com Notes

1

Practice Sinerio 2

Karachi Router Router> Router>ENABLE Router#CONFIG Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#HOSTNAME KHI KHI(config)#INT S0 KHI(config-if)#ip address 11.0.0.1 255.0.0.0 KHI(config-if)#bandwidth 1544 KHI(config-if)#clock rate 64000 KHI(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI(config-if)#exit KHI(config)#exit%LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down KHI#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI#configure 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 shut %LINK-3-UPDOWN: Interface Ethernet0, changed state to up

2

KHI(config-if)#exit KHI(config)#exitKHI#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI#ping 11.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 11.0.0.2, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms KHI#show ip ? ospf OSPF information dhcp Show items in the DHCP database eigrp IP-EIGRP show commands route IP routing table arp IP ARP Table protocols IP routing protocol process parameters interface IP interface status and configuration nat IP NAT information bgp BGP information KHI#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Ethernet0

%LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up KHI#ping 11.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 11.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms KHI#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

KHI(config)#rou KHI(config)#router igrp 100 KHI(config-router)#network 10.0.0.0 KHI(config-router)#network 11.0.0.0 KHI(config-router)#exit KHI(config)#exitKHI#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI#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 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, * - candidate default

Page 87: Data Com Notes

3

U - per-user static route

Gateway of last resort is not set

C 10.0.0.0 is directly connected, Ethernet0 C 11.0.0.0 is directly connected, Serial0

KHI#ping 10.0.0.4

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms KHI#ping 10.0.0.10

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms KHI#ping 10.0.0.4

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms KHI#ping 10.0.0.4

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms KHI#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

KHI(config)#ip route 10.0.0.0 255.0.0.0 10.0.0.10 KHI(config)#exitKHI#copy run startup Destination filename [startup-config]? Building configuration... [OK]

KHI#ping 10.0.0.10

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms KHI#ping 10.0.0.4

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms

4

Lahore Router Router> Router>enable Router#co Router#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname LHR LHR(config)#int s0 LHR(config-if)#ip address 11.0.0.2 255.0.0.0 LHR(config-if)#bandwidth 1544 LHR(config-if)#no shut %LINK-3-UPDOWN: Interface Serial0, changed state to up LHR(config-if)#exit LHR(config)#exit %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down LHR#copy run startup Destination filename [startup-config]? Building configuration... [OK]

LHR#co LHR#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

LHR(config)#int s0 LHR(config-if)#ip address 11.0.0.2 255.0.0.0 LHR(config-if)#bandwidth 1544 LHR(config-if)#clock rate 64000 %LINK-3-UPDOWN: Interface Serial0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up LHR(config-if)#no shut LHR(config-if)#exit LHR(config)#exit LHR#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

LHR(config)#router igrp 100 LHR(config-router)#network 11.0.0.0 LHR(config-router)#exit LHR(config)#exit LHR#copy run startup Destination filename [startup-config]? Building configuration... [OK]

LHR#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 11.0.0.0 is directly connected, Serial0 I 10.0.0.0 [100/651] via 11.0.0.1, 00:09:34, Serial0

Page 88: Data Com Notes

5

LHR#ping 10.0.0.2

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds: ..... Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms LHR#configure Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.

LHR(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1 LHR(config)#exit LHR#copy run startup Destination filename [startup-config]? Building configuration... [OK]

LHR#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 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, * - candidate default U - per-user static route

Gateway of last resort is not set

C 11.0.0.0 is directly connected, Serial0 S 10.0.0.0 [1/0] via 11.0.0.1

LHR# LHR#ping 10.0.0.10

Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Switch>enable #configure %Incomplete command.

#configure t Enter configuration commands, one per line. End with CNTL/Z. (config)#int e0/1 (config-if)#exit (config)#int e0 ^ % Invalid input detected at '^' marker.

(config)#int e0/26 ^ % Invalid input detected at '^' marker.

(config)#? banner Define a login banner cdp Global CDP configuration subcommands enable Modify enable password parameters end Exit from configure mode exit Exit from configure mode

6

hostname Set the system's network name interface Select an interface to configure ip Global IP configuration subcommands line Configure a terminal line mac-address-table Configure the mac address table rip Routing information protocol configuration service Configuration Command spantree Spanning tree subsystem switching-mode Sets the switching mode uplink-fast Enable Uplink fast vlan VLAN configuration vlan-membership VLAN membership server configuration vtp Global VTP configuration commands (config)#int ? ethernet IEEE 802.3 (config)#int e? ethernet

(config)#int e0/26 ^ % Invalid input detected at '^' marker.

(config)#int e0/1 (config-if)#vlan-membership static 10 (config-if)#exit (config)#int e0/2 (config-if)#vlan-membership static 10 (config-if)#exit (config)#int e0/3 (config-if)#vlan-membership static 10 (config-if)#exit (config)#int e0/4 (config-if)#vlan-membership static 10 (config-if)#exit (config)#int e0/5 (config-if)#vlan-membership static 10 (config-if)#exit (config)#int e0/6 (config-if)#vlan-membership static 10 (config-if)#exit (config)#exit #show ? vlan Show VLAN information vtp VLAN trunk protocol vlan-membership Show VLAN membership information trunk Display trunk information tftp TFTP configuration and status terminal Display console/RS-232 port configuration spantree Spanning tree subsystem running-config Show current operating configuration cdp cdp information mac-address-table MAC forwarding table history Display the session command history ip Display IP configuration version System hardware and software status interfaces Interface status and configuration line Display console/RS-232 port configuration #show vla #show vlan-membership Port VLAN Membership Type Port VLAN Membership Type ----------------------------- ----------------------------- 1 10 Static

Page 89: Data Com Notes

7

2 10 Static 3 10 Static 4 10 Static 5 10 Static 6 10 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

##configure t Enter configuration commands, one per line. End with CNTL/Z. (config)#ip address 10.0.0.10 255.0.0.0 (config)#exit #show mac-address-table Mac Address Table ------------------------------------------ Vlan Mac Address Type Ports ---- ----------- ---- ----- 10 000C.9074.9797 DYNAMIC Ethernet0/6 10 000C.9886.8081 DYNAMIC Ethernet0/5 10 000C.8321.7106 DYNAMIC Ethernet0/4 10 000C.6686.6632 DYNAMIC Ethernet0/3 10 000C.8064.9150 DYNAMIC Ethernet0/2 10 000C.9001.1327 DYNAMIC Ethernet0/1 1 000C.3070.1825 DYNAMIC Fa0/26

Total Mac Addresses for this criterion: 7

e-Station1:Press Enter to begin C:> C:>? ipconfig ping winipcfg show tracert Trace route to destination help ver dir Shows TFTP Configs type View specific TFTP Config telnet tacacs Add or Edit TACACS database net exit C:>ipconfig /ip 10.0.0.2 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ping 10.0.0.4 Pinging 10.0.0.4 with 32 bytes of data:

Reply from 10.0.0.4: bytes=32 time=60ms TTL=241 Reply from 10.0.0.4: bytes=32 time=60ms TTL=241 Reply from 10.0.0.4: bytes=32 time=60ms TTL=241

8

Reply from 10.0.0.4: bytes=32 time=60ms TTL=241 Reply from 10.0.0.4: bytes=32 time=60ms TTL=241

Ping statistics for 10.0.0.4: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55ms

C:>ping 10.0.0.1 Pinging 10.0.0.1 with 32 bytes of data:

Request timed out. Request timed out. Request timed out. Request timed out. Request timed out.

Ping statistics for 10.0.0.1: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:>ipconfig /dg 10.0.0.10

e-Station2:C:> C:>ipconfig /ip 10.0.0.3 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ipconfig /dg 10.0.0.10

e-Station3:C:> C:>ipconfig /ip 10.0.0.4 255.0.0.0 C:> C:>ipconfig /dg 10.0.0.1 C:>show ipconfig C:>? ipconfig ping winipcfg show tracert Trace route to destination help ver dir Shows TFTP Configs type View specific TFTP Config telnet tacacs Add or Edit TACACS database net exit C:>show ip config ^ % Invalid input detected at '^' marker.

C:>show ? <name> Name of your TFTP config tftp-configs C:>ip config ^ % Invalid input detected at '^' marker.

Page 90: Data Com Notes

9

C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation

Examples: ¢ ipconfig /ip 157.1.1.12 255.0.0.0 ¢ ipconfig /dg 157.1.1.1

Boson BOSS 5.0 IP Configuration Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 10.0.0.4 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1

You can also use winipcfg to configure the IP Address

C:>ipconfig /dg 10.0.0.10

e-Station4:Press Enter to begin C:> C:>ipconfig /ip 10.0.0.5 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation

Examples: ¢ ipconfig /ip 157.1.1.12 255.0.0.0 ¢ ipconfig /dg 157.1.1.1

Boson BOSS 5.0 IP Configuration Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 10.0.0.5 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1

You can also use winipcfg to configure the IP Address

C:>ipconfig /dg 10.0.0.10

10

e-Station5:C:> C:>ipconfig /ip 10.0.0.6 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation

Examples: ¢ ipconfig /ip 157.1.1.12 255.0.0.0 ¢ ipconfig /dg 157.1.1.1

Boson BOSS 5.0 IP Configuration Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 10.0.0.6 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1

You can also use winipcfg to configure the IP Address

C:>ipconfig /dg 10.0.0.10

e-Station6:C:> C:>ipconfig /ip 10.0.0.7 255.0.0.0 C:>ipconfig /dg 10.0.0.1 C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] /ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation

Examples: ¢ ipconfig /ip 157.1.1.12 255.0.0.0 ¢ ipconfig /dg 157.1.1.1

Boson BOSS 5.0 IP Configuration Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 10.0.0.7 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.1

You can also use winipcfg to configure the IP Address

C:>ipconfig /dg 10.0.0.10 C:>ipconfig

HELP Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg]

Page 91: Data Com Notes

11

/ip Adds the ip address and subnet mask to the workstation /dg Adds the default gateway to the workstation

Examples: ¢ ipconfig /ip 157.1.1.12 255.0.0.0 ¢ ipconfig /dg 157.1.1.1

Boson BOSS 5.0 IP Configuration Ethernet adapter Local Area Connection: IP Address. . . . . . . . . . . . : 10.0.0.7 Subnet Mask . . . . . . . . . . . : 255.0.0.0 Default Gateway . . . . . . . . . : 10.0.0.10

You can also use winipcfg to configure the IP Address

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….