Você está na página 1de 91

INDEX

TAIMUR MUSHARRAF 05B-001-EE SEC:A

S. # Date Lab Description Remarks Sign


Introduction to NOS, Workgroups,
1 08-08-07
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
Interface Configuration & Static
6 19-09-07
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

Course Instructor’s Sign & Remarks:

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

Lab-5

Karachi Router
Router>enable KHI(config-if)#exit
Router#config t KHI(config)#interface serial 1
Enter configuration commands, one per line. End with KHI(config-if)#ip address 13.0.0.1 255.0.0.0
CNTL/Z. KHI(config-if)#bandwidth 1544
Router(config)#hostname KHI KHI(config-if)#clock rate 56000
KHI(config)#exit KHI(config-if)#no shutdown
KHI#config t %LINK-3-UPDOWN: Interface Serial1, changed state to up
KHI(config)#interface serial 0 KHI(config-if)#exit
KHI(config-if)#ip address 10.0.0.1 255.0.0.0 KHI(config)#exit
KHI(config-if)#bandwidth 1544 KHI#copy run startup
KHI(config-if)#clock rate 56000 KHI#show ip route
KHI(config-if)#no shutdown C 10.0.0.0 is directly connected, Serial0
%LINK-3-UPDOWN: Interface Serial0, changed state to up. C 13.0.0.0 is directly connected, Serial1

Lahore Router
Router>enable LHR(config-if)#exit
Router#config t LHR(config)#interface serial 1
Enter configuration commands, one per line. End with LHR(config-if)#ip address 11.0.0.1 255.0.0.0
CNTL/Z. LHR(config-if)#bandwidth 1544
Router(config)#hostname LHR LHR(config-if)#clock rate 56000
LHR(config)#exit LHR(config-if)#no shutdown
LHR#config t %LINK-3-UPDOWN: Interface Serial1, changed state to up
LHR(config)#interface serial 0 LHR(config-if)#exit
LHR(config-if)#ip address 10.0.0.2 255.0.0.0 LHR(config)#exit
LHR(config-if)#bandwidth 1544 LHR#copy run startup
LHR(config-if)#no shutdown LHR#show ip route
%LINK-3-UPDOWN: Interface Serial0, changed state to up. C 10.0.0.0 is directly connected, Serial0
C 11.0.0.0 is directly connected, Serial1

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


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

Islamabad Router
Router>enable ISB (config-if)#exit
Router#config t ISB (config)#interface serial 1
Enter configuration commands, one per line. End with ISB (config-if)#ip address 13.0.0.2 255.0.0.0
CNTL/Z. ISB (config-if)#bandwidth 1544
Router(config)#hostname ISB ISB (config-if)#no shutdown
ISB(config)#exit %LINK-3-UPDOWN: Interface Serial1, changed state to up
ISB#config t ISB (config-if)#exit
ISB(config)#interface serial 0 ISB (config)#exit
ISB(config-if)#ip address 11.0.0.2 255.0.0.0 ISB #copy run startup
ISB(config-if)#bandwidth 1544 ISB #show ip route
ISB(config-if)#no shutdown C 11.0.0.0 is directly connected, Serial0
%LINK-3-UPDOWN: Interface Serial0, changed state to up. C 13.0.0.0 is directly connected, Serial1

Result:

KHI#ping 10.0.0.2

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

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


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

Lab-6

Router Configurations

Karachi Router Lahore Router


Router>enable Router>enable
Router#config t Router#config t
Enter configuration commands, one per line. End with Enter configuration commands, one per line. End with
CNTL/Z. CNTL/Z.
Router(config)#hostname KHI Router(config)#hostname LHR
KHI(config)#exit LHR(config)#exit
KHI#config t LHR(config)#interface ethernet 0
KHI(config)#interface ethernet 0 LHR(config-if)#ip a
KHI(config-if)#ip address 10.0.0.1 255.0.0.0 LHR(config-if)#ip address 12.0.0.1 255.0.0.0
KHI(config-if)#no shutdown LHR(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Ethernet0, changed %LINK-3-UPDOWN: Interface Ethernet0, changed
state to up state to up
KHI(config-if)#exit LHR(config-if)#exit
KHI(config)#interface serial 0 LHR(config)#interface serial 0
KHI(config-if)#ip address 11.0.0.1 255.0.0.0 LHR(config-if)#ip address 11.0.0.2 255.0.0.0
KHI(config-if)#bandwidth 1544 LHR(config-if)#bandwidth 1544
KHI(config-if)#clock rate 6400 LHR(config-if)#no shutdown
KHI(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state
%LINK-3-UPDOWN: Interface Serial0, changed state to up
to up LHR(config-if)#exit
KHI(config-if)#exit LHR(config)#exit
KHI(config)#exit
KHI#copy run startup LHR#copy run startup
KHI#show ip route LHR#show ip route
C 10.0.0.0 is directly connected, Ethernet0 C 12.0.0.0 is directly connected, Ethernet0
C 11.0.0.0 is directly connected, Serial0 C 11.0.0.0 is directly connected, Serial0

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


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

PC Configurations

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

HELP HELP
Manipulates ip address for Workstation. Manipulates ip address for Workstation.

IPCONFIG [/ip] [/dg] IPCONFIG [/ip] [/dg]


/ip Adds the ip address and subnet mask to /ip Adds the ip address and subnet mask to
the workstation the workstation
/dg Adds the default gateway to the /dg Adds the default gateway to the
workstation workstation
Ethernet adapter Local Area Connection: Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . . . : 10.0.0.2 IP Address. . . . . . . . . . . . : 12.0.0.2
Subnet Mask . . . . . . . . . . . . : 255.0.0.0 Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1 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 LHR(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1
KHI(config)#exit LHR(config)#exit

Result
PC1 PC2
C:>ping 12.0.0.2 C:>ping 10.0.0.2
Pinging 12.0.0.2 with 32 bytes of data: Pinging 10.0.0.2 with 32 bytes of data:

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

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

New Commands:
ip config /ip [IP of Machine + Subnet Mask]
ip config /dg [Default Gateway for Machine]
ip route [Destination Network + Mask] [Gateway]

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


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

Lab-7

¤Karachi Router
Router> KHI_01_5B#show ip route
Router>ENABLE Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Router#CONFIG T mobile, B - BGP
Enter configuration commands, one per line. End with D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
CNTL/Z. inter area
Router(config)#hostname KHI_01_5B E1 - OSPF external type 1, E2 - OSPF external type 2,
KHI_01_5B(config)#interface serial 0 E - EGP
KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B(config-if)#bandwidth 1544 candidate default
KHI_01_5B(config-if)#clock rate 64000 U - per-user static route
KHI_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up Gateway of last resort is not set
KHI_01_5B(config-if)#exit
KHI_01_5B(config)#interface serial 1 C 13.0.0.0 is directly connected, Serial1
%LINK-3-UPDOWN: Interface Serial0, changed state to
down %LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface %LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial0, changed state to down Serial0, changed state to up
KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 %LINK-3-UPDOWN: Interface Serial1, changed state to up
KHI_01_5B(config-if)#bandwidth 1544 %LINEPROTO-5-UPDOWN: Line protocol on Interface
KHI_01_5B(config-if)#clock rate 64000 Serial1, changed state to up
KHI_01_5B(config-if)#no shutdown KHI_01_5B#show ip route
%LINK-3-UPDOWN: Interface Serial1, changed state to up Codes: C - connected, S - static, I - IGRP, R - RIP, M -
KHI_01_5B(config-if)#exit mobile, B - BGP
KHI_01_5B(config)#exit D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
%LINK-3-UPDOWN: Interface Serial1, changed state to inter area
down E1 - OSPF external type 1, E2 - OSPF external type 2,
%LINEPROTO-5-UPDOWN: Line protocol on Interface E - EGP
Serial1, changed state to down i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B#copy run startup candidate default
Destination filename [startup-config]? U - per-user static route
Building configuration...
[OK] Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0


C 13.0.0.0 is directly connected, Serial1.

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


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

¤Lahore Router ¤Islamabad Router


Router> Gateway of last resort is not set Router> C 13.0.0.0 is directly connected, Serial1
Router>enable Router>enable
Router#config C 10.0.0.0 is directly connected, Serial0 Router#config t ISB_01_5B#co
Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with ISB_01_5B#configure terminal
Enter configuration commands, one per line. End with LHR_01_5B#configure t CNTL/Z. Enter configuration commands, one per line. End with
CNTL/Z. Enter configuration commands, one per line. End with Router(config)#hostname ISB_01_5B CNTL/Z.
CNTL/Z. ISB_01_5B(config)#interface serial 0 ISB_01_5B(config)#i9n
Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 1 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config)#interface serial 0
LHR_01_5B(config)#interface serial 0 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0
LHR_01_5B(config-if)#ip address 10.0.0.2 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#bann
LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#no clock rate 64000 %LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#bandwidth 1544
LHR_01_5B(config-if)#no shutdown LHR_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#exit ISB_01_5B(config-if)#clock rate 64000
%LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to up
LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit %LINK-3-UPDOWN: Interface Serial0, changed state to %LINEPROTO-5-UPDOWN: Line protocol on Interface
LHR_01_5B(config)#interface serial 1 LHR_01_5B#copy run startup down Serial0, changed state to up
LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 Destination filename [startup-config]? %LINEPROTO-5-UPDOWN: Line protocol on Interface ISB_01_5B(config-if)#no shutdown
LHR_01_5B(config-if)#bandwidth 1544 Building configuration... Serial0, changed state to down ISB_01_5B(config-if)#exit
LHR_01_5B(config-if)#clock rate 64000 [OK] ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config)#exit
LHR_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B#copy run startup
%LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B#show ip route ISB_01_5B(config-if)#no shutdown Destination filename [startup-config]?
LHR_01_5B(config-if)#exit Codes: C - connected, S - static, I - IGRP, R - RIP, M - %LINK-3-UPDOWN: Interface Serial1, changed state to up Building configuration...
LHR_01_5B(config)#exit mobile, B - BGP ISB_01_5B(config-if)#exit [OK]
%LINK-3-UPDOWN: Interface Serial1, changed state to D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF ISB_01_5B(config)#exit
down inter area ISB_01_5B#copy run startup ISB_01_5B#show ip route
%LINEPROTO-5-UPDOWN: Line protocol on Interface E1 - OSPF external type 1, E2 - OSPF external type 2, Destination filename [startup-config]? Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Serial1, changed state to down E - EGP Building configuration... mobile, B - BGP
LHR_01_5B#copy run startup i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - [OK] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
Destination filename [startup-config]? candidate default inter area
Building configuration... U - per-user static route ISB_01_5B#show ip route E1 - OSPF external type 1, E2 - OSPF external type 2,
[OK] Codes: C - connected, S - static, I - IGRP, R - RIP, M - E - EGP
Gateway of last resort is not set mobile, B - BGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
LHR_01_5B#show ip route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF candidate default
Codes: C - connected, S - static, I - IGRP, R - RIP, M - C 10.0.0.0 is directly connected, Serial0 inter area U - per-user static route
mobile, B - BGP E1 - OSPF external type 1, E2 - OSPF external type 2,
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF %LINK-3-UPDOWN: Interface Serial1, changed state to up E - EGP Gateway of last resort is not set
inter area %LINEPROTO-5-UPDOWN: Line protocol on Interface i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
E1 - OSPF external type 1, E2 - OSPF external type 2, Serial1, changed state to up candidate default C 13.0.0.0 is directly connected, Serial1
E - EGP LHR_01_5B#show ip route U - per-user static route C 11.0.0.0 is directly connected, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Codes: C - connected, S - static, I - IGRP, R - RIP, M -
candidate default mobile, B - BGP Gateway of last resort is not set
U - per-user static route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
inter area C 13.0.0.0 is directly connected, Serial1
Gateway of last resort is not set E1 - OSPF external type 1, E2 - OSPF external type 2,
E - EGP ISB_01_5B#show ip route
C 10.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Codes: C - connected, S - static, I - IGRP, R - RIP, M -
C 11.0.0.0 is directly connected, Serial1 candidate default mobile, B - BGP
U - per-user static route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
LHR_01_5B#show ip route inter area
Codes: C - connected, S - static, I - IGRP, R - RIP, M - Gateway of last resort is not set E1 - OSPF external type 1, E2 - OSPF external type 2,
mobile, B - BGP E - EGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF C 10.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
inter area candidate default
C 11.0.0.0 is directly connected, Serial1
E1 - OSPF external type 1, E2 - OSPF external type 2, U - per-user static route
E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Gateway of last resort is not set
candidate default
U - per-user static route
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3
Data Communication & Networking Lab7 Task: 26-09-07 Data Communication & Networking Lab7 Task: 26-09-07
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
Setting-Up RIP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
¤Karachi Router U - per-user static route

KHI_01_5B#configure t Gateway of last resort is not set


Enter configuration commands, one per line. End with CNTL/Z.
KHI_01_5B(config)#router rip C 10.0.0.0 is directly connected, Serial0
KHI_01_5B(config-router)#network 10.0.0.0 C 11.0.0.0 is directly connected, Serial1
KHI_01_5B(config-router)#network 13.0.0.0 R 13.0.0.0 [120/1] via 10.0.0.1, 00:06:17, Serial0
KHI_01_5B(config-router)#exit
KHI_01_5B(config)#exit
KHI_01_5B#copy run startup
¤Islamabad Router
Destination filename [startup-config]? ISB_01_5B#configure t
Building configuration... Enter configuration commands, one per line. End with CNTL/Z.
[OK] ISB_01_5B(config)#router rip
ISB_01_5B(config-router)#network 13.0.0.0
KHI_01_5B#show ip route ISB_01_5B(config-router)#network 11.0.0.0
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP ISB_01_5B(config-router)#exit
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area ISB_01_5B(config)#exit
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP ISB_01_5B#copy run startup
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default Destination filename [startup-config]?
U - per-user static route Building configuration...
[OK]
Gateway of last resort is not set
ISB_01_5B#show ip route
C 10.0.0.0 is directly connected, Serial0 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
C 13.0.0.0 is directly connected, Serial1 D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
KHI_01_5B#show ip route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP U - per-user static route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP Gateway of last resort is not set
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route C 13.0.0.0 is directly connected, Serial1
C 11.0.0.0 is directly connected, Serial0
Gateway of last resort is not set R 10.0.0.0 [120/1] via 11.0.0.1, 00:02:43, Serial0
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
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 4 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 5
Data Communication & Networking Lab8 Task: 03-10-07 Data Communication & Networking Lab8 Task: 03-10-07

Lab-8
¤Lahore Router
Router> Gateway of last resort is not set
Router>enable
Router#config C 10.0.0.0 is directly connected, Serial0
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with LHR_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 1
LHR_01_5B(config)#interface serial 0 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0
LHR_01_5B(config-if)#ip address 10.0.0.2 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544
LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#no clock rate 64000
LHR_01_5B(config-if)#no shutdown LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit
LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit
LHR_01_5B(config)#interface serial 1 LHR_01_5B#copy run startup
LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 Destination filename [startup-config]?
LHR_01_5B(config-if)#bandwidth 1544 Building configuration...
LHR_01_5B(config-if)#clock rate 64000 [OK]
¤Karachi Router LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B#show ip route
Router> KHI_01_5B#show ip route
LHR_01_5B(config-if)#exit Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Router>ENABLE Codes: C - connected, S - static, I - IGRP, R - RIP, M -
LHR_01_5B(config)#exit mobile, B - BGP
Router#CONFIG T mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial1, changed state to D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
Enter configuration commands, one per line. End with D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
down inter area
CNTL/Z. inter area
%LINEPROTO-5-UPDOWN: Line protocol on Interface E1 - OSPF external type 1, E2 - OSPF external type 2,
Router(config)#hostname KHI_01_5B E1 - OSPF external type 1, E2 - OSPF external type 2,
Serial1, changed state to down E - EGP
KHI_01_5B(config)#interface serial 0 E - EGP
LHR_01_5B#copy run startup i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Destination filename [startup-config]? candidate default
KHI_01_5B(config-if)#bandwidth 1544 candidate default
Building configuration... U - per-user static route
KHI_01_5B(config-if)#clock rate 64000 U - per-user static route
[OK]
KHI_01_5B(config-if)#no shutdown
Gateway of last resort is not set
%LINK-3-UPDOWN: Interface Serial0, changed state to up Gateway of last resort is not set
LHR_01_5B#show ip route
KHI_01_5B(config-if)#exit
Codes: C - connected, S - static, I - IGRP, R - RIP, M - C 10.0.0.0 is directly connected, Serial0
KHI_01_5B(config)#interface serial 1 C 13.0.0.0 is directly connected, Serial1
mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial0, changed state to
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF %LINK-3-UPDOWN: Interface Serial1, changed state to up
down %LINK-3-UPDOWN: Interface Serial0, changed state to up
inter area %LINEPROTO-5-UPDOWN: Line protocol on Interface
%LINEPROTO-5-UPDOWN: Line protocol on Interface %LINEPROTO-5-UPDOWN: Line protocol on Interface
E1 - OSPF external type 1, E2 - OSPF external type 2, Serial1, changed state to up
Serial0, changed state to down Serial0, changed state to up
E - EGP LHR_01_5B#show ip route
KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 %LINK-3-UPDOWN: Interface Serial1, changed state to up
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Codes: C - connected, S - static, I - IGRP, R - RIP, M -
KHI_01_5B(config-if)#bandwidth 1544 %LINEPROTO-5-UPDOWN: Line protocol on Interface
candidate default mobile, B - BGP
KHI_01_5B(config-if)#clock rate 64000 Serial1, changed state to up
U - per-user static route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
KHI_01_5B(config-if)#no shutdown KHI_01_5B#show ip route
inter area
%LINK-3-UPDOWN: Interface Serial1, changed state to up Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Gateway of last resort is not set E1 - OSPF external type 1, E2 - OSPF external type 2,
KHI_01_5B(config-if)#exit mobile, B - BGP
E - EGP
KHI_01_5B(config)#exit D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
C 10.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
%LINK-3-UPDOWN: Interface Serial1, changed state to inter area
C 11.0.0.0 is directly connected, Serial1 candidate default
down E1 - OSPF external type 1, E2 - OSPF external type 2,
U - per-user static route
%LINEPROTO-5-UPDOWN: Line protocol on Interface E - EGP
LHR_01_5B#show ip route
Serial1, changed state to down i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Codes: C - connected, S - static, I - IGRP, R - RIP, M - Gateway of last resort is not set
KHI_01_5B#copy run startup candidate default
mobile, B - BGP
Destination filename [startup-config]? U - per-user static route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF C 10.0.0.0 is directly connected, Serial0
Building configuration...
inter area C 11.0.0.0 is directly connected, Serial1
[OK] Gateway of last resort is not set
E1 - OSPF external type 1, E2 - OSPF external type 2,
E - EGP
C 10.0.0.0 is directly connected, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
C 13.0.0.0 is directly connected, Serial1.
candidate default
U - per-user static route
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Data Communication & Networking Lab8 Task: 03-10-07 Data Communication & Networking Lab8 Task: 03-10-07
Setting-Up RIP
¤Islamabad Router
Router> C 13.0.0.0 is directly connected, Serial1
Router>enable ¤Karachi Router ¤Lahore Router ¤Islamabad Router
Router#config t ISB_01_5B#co
Enter configuration commands, one per line. End with ISB_01_5B#configure terminal KHI_01_5B#configure t LHR_01_5B#config t ISB_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with Enter configuration commands, one per Enter configuration commands, one per Enter configuration commands, one per
Router(config)#hostname ISB_01_5B CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z.
ISB_01_5B(config)#interface serial 0 ISB_01_5B(config)#i9n KHI_01_5B(config)#router rip LHR_01_5B(config)#route ISB_01_5B(config)#router rip
KHI_01_5B(config-router)#network LHR_01_5B(config)#router rip ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config)#interface serial 0
10.0.0.0 LHR_01_5B(config-router)#network 13.0.0.0
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 KHI_01_5B(config-router)#network 10.0.0.0 ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#bann 13.0.0.0 LHR_01_5B(config-router)#network 11.0.0.0
%LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-router)#exit 11.0.0.0 ISB_01_5B(config-router)#exit
ISB_01_5B(config-if)#exit ISB_01_5B(config-if)#clock rate 64000 KHI_01_5B(config)#exit LHR_01_5B(config-router)# ISB_01_5B(config)#exit
ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B#copy run startup LHR_01_5B(config-router)#exit ISB_01_5B#copy run startup
%LINK-3-UPDOWN: Interface Serial0, changed state to %LINEPROTO-5-UPDOWN: Line protocol on Interface Destination filename [startup-config]? LHR_01_5B(config)#exit Destination filename [startup-config]?
down Serial0, changed state to up Building configuration... LHR_01_5B#copy run startup Building configuration...
%LINEPROTO-5-UPDOWN: Line protocol on Interface ISB_01_5B(config-if)#no shutdown [OK] Destination filename [startup-config]? [OK]
Building configuration...
Serial0, changed state to down ISB_01_5B(config-if)#exit
KHI_01_5B#show ip route [OK] ISB_01_5B#show ip route
ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config)#exit Codes: C - connected, S - static, I - IGRP, Codes: C - connected, S - static, I - IGRP,
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B#copy run startup R - RIP, M - mobile, B - BGP LHR_01_5B#show ip route R - RIP, M - mobile, B - BGP
ISB_01_5B(config-if)#no shutdown Destination filename [startup-config]? D - EIGRP, EX - EIGRP external, O - Codes: C - connected, S - static, I - IGRP, D - EIGRP, EX - EIGRP external, O -
%LINK-3-UPDOWN: Interface Serial1, changed state to up Building configuration... OSPF, IA - OSPF inter area R - RIP, M - mobile, B - BGP OSPF, IA - OSPF inter area
ISB_01_5B(config-if)#exit [OK] E1 - OSPF external type 1, E2 - OSPF D - EIGRP, EX - EIGRP external, O - E1 - OSPF external type 1, E2 - OSPF
ISB_01_5B(config)#exit external type 2, E - EGP OSPF, IA - OSPF inter area external type 2, E - EGP
ISB_01_5B#copy run startup ISB_01_5B#show ip route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS E1 - OSPF external type 1, E2 - OSPF i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
Destination filename [startup-config]? Codes: C - connected, S - static, I - IGRP, R - RIP, M - level-2, * - candidate default external type 2, E - EGP level-2, * - candidate default
U - per-user static route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS U - per-user static route
Building configuration... mobile, B - BGP
level-2, * - candidate default
[OK] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF Gateway of last resort is not set U - per-user static route Gateway of last resort is not set
inter area
ISB_01_5B#show ip route E1 - OSPF external type 1, E2 - OSPF external type 2, C 10.0.0.0 is directly connected, Serial0 Gateway of last resort is not set C 13.0.0.0 is directly connected,
Codes: C - connected, S - static, I - IGRP, R - RIP, M - E - EGP C 13.0.0.0 is directly connected, Serial1 Serial1
mobile, B - BGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - C 10.0.0.0 is directly connected, C 11.0.0.0 is directly connected,
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF candidate default KHI_01_5B#show ip route Serial0 Serial0
inter area U - per-user static route Codes: C - connected, S - static, I - IGRP, C 11.0.0.0 is directly connected, R 10.0.0.0 [120/1] via 11.0.0.1,
E1 - OSPF external type 1, E2 - OSPF external type 2, R - RIP, M - mobile, B - BGP Serial1 00:02:43, Serial0
D - EIGRP, EX - EIGRP external, O - R 13.0.0.0 [120/1] via 10.0.0.1,
E - EGP Gateway of last resort is not set
OSPF, IA - OSPF inter area 00:06:17, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - E1 - OSPF external type 1, E2 - OSPF
candidate default C 13.0.0.0 is directly connected, Serial1 external type 2, E - EGP
U - per-user static route C 11.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
level-2, * - candidate default
Gateway of last resort is not set U - per-user static route

C 13.0.0.0 is directly connected, Serial1 Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0


ISB_01_5B#show ip route C 13.0.0.0 is directly connected, Serial1
Codes: C - connected, S - static, I - IGRP, R - RIP, M - R 11.0.0.0 [120/1] via 13.0.0.2, 00:09:19,
mobile, B - BGP Serial1
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
inter area Negating RIP
E1 - OSPF external type 1, E2 - OSPF external type 2,
E - EGP ¤Karachi Router ¤Lahore Router ¤Islamabad Router
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
candidate default KHI_01_5B#configure t LHR_01_5B#configure t ISB_01_5B#configure t
U - per-user static route Enter configuration commands, one per Enter configuration commands, one per Enter configuration commands, one per
line. End with CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z.
Gateway of last resort is not set KHI_01_5B(config)#no router rip LHR_01_5B(config)#no router rip ISB_01_5B(config)#no router rip
KHI_01_5B(config)#exit LHR_01_5B(config)#exit ISB_01_5B(config)#exit
KHI_01_5B#copy run startup LHR_01_5B#copy run startup ISB_01_5B#copy run startup
Destination filename [startup-config]? Destination filename [startup-config]? Destination filename [startup-config]?
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 4
Data Communication & Networking Lab8 Task: 03-10-07
Building configuration... Building configuration... Building configuration...
[OK] [OK] [OK]

KHI_01_5B#show ip route LHR_01_5B#show ip route ISB_01_5B#show ip route

Gateway of last resort is not set Gateway of last resort is not set Gateway of last resort is not set

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

KHI_01_5B#show ip route LHR_01_5B#show ip route


Codes: C - connected, S - static, I - IGRP, Codes: C - connected, S - static, I - IGRP,
R - RIP, M - mobile, B - BGP R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - D - EIGRP, EX - EIGRP external, O -
OSPF, IA - OSPF inter area OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF E1 - OSPF external type 1, E2 - OSPF
external type 2, E - EGP external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
level-2, * - candidate default level-2, * - candidate default
U - per-user static route U - per-user static route
Gateway of last resort is not set Gateway of last resort is not set

C 10.0.0.0 is directly connected, Serial0 C 10.0.0.0 is directly connected, Serial0


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

Setting-Up IGRIP
¤Karachi Router ¤Lahore Router ¤Islamabad Router
KHI_01_5B#config t LHR_01_5B#configure t ISB_01_5B#config t
KHI_01_5B(config)#router igrp 100 LHR_01_5B(config)#router igrp 100 ISB_01_5B(config)#router igrp 100
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network
10.0.0.0 10.0.0.0 11.0.0.0
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network
13.0.0.0 11.0.0.0 13.0.0.0
KHI_01_5B(config-router)#exit LHR_01_5B(config-router)#exit ISB_01_5B(config-router)#exit
KHI_01_5B(config)#exit LHR_01_5B(config)#exit ISB_01_5B(config)#exit
KHI_01_5B#copy run startup LHR_01_5B#copy run startup ISB_01_5B#copy run startup
Destination filename [startup-config]? Destination filename [startup-config]? Destination filename [startup-config]?
Building configuration... Building configuration... Building configuration...
[OK] [OK] [OK]

Gateway of last resort is not set Gateway of last resort is not set Gateway of last resort is not set

C 10.0.0.0 is directly connected, C 10.0.0.0 is directly connected, C 13.0.0.0 is directly connected,


Serial0 Serial0 Serial1
C 13.0.0.0 is directly connected, C 11.0.0.0 is directly connected, C 11.0.0.0 is directly connected,
Serial1 Serial1 Serial0
I 13.0.0.0 [100/651] via 10.0.0.1, I 10.0.0.0 [100/651] via 13.0.0.1,
KHI_01_5B#show ip route 00:07:41, Serial0 00:07:44, Serial1

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
I 11.0.0.0 [100/651] via 13.0.0.2,
00:08:28, Serial1

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


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

Lab-9
¤Lahore Router
Router> Gateway of last resort is not set
Router>enable
Router#config C 10.0.0.0 is directly connected, Serial0
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with LHR_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#hostname LHR_01_5B LHR_01_5B(config)#interface serial 1
LHR_01_5B(config)#interface serial 0 LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0
LHR_01_5B(config-if)#ip address 10.0.0.2 255.0.0.0 LHR_01_5B(config-if)#bandwidth 1544
LHR_01_5B(config-if)#bandwidth 1544 LHR_01_5B(config-if)#no clock rate 64000
LHR_01_5B(config-if)#no shutdown LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up LHR_01_5B(config-if)#exit
LHR_01_5B(config-if)#exit LHR_01_5B(config)#exit
LHR_01_5B(config)#interface serial 1 LHR_01_5B#copy run startup
LHR_01_5B(config-if)#ip address 11.0.0.1 255.0.0.0 Destination filename [startup-config]?
LHR_01_5B(config-if)#bandwidth 1544 Building configuration...
LHR_01_5B(config-if)#clock rate 64000 [OK]
¤Karachi Router LHR_01_5B(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial1, changed state to up LHR_01_5B#show ip route
Router> KHI_01_5B#show ip route
LHR_01_5B(config-if)#exit Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Router>ENABLE Codes: C - connected, S - static, I - IGRP, R - RIP, M -
LHR_01_5B(config)#exit mobile, B - BGP
Router#CONFIG T mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial1, changed state to D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
Enter configuration commands, one per line. End with D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
down inter area
CNTL/Z. inter area
%LINEPROTO-5-UPDOWN: Line protocol on Interface E1 - OSPF external type 1, E2 - OSPF external type 2,
Router(config)#hostname KHI_01_5B E1 - OSPF external type 1, E2 - OSPF external type 2,
Serial1, changed state to down E - EGP
KHI_01_5B(config)#interface serial 0 E - EGP
LHR_01_5B#copy run startup i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
KHI_01_5B(config-if)#ip address 10.0.0.1 255.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Destination filename [startup-config]? candidate default
KHI_01_5B(config-if)#bandwidth 1544 candidate default
Building configuration... U - per-user static route
KHI_01_5B(config-if)#clock rate 64000 U - per-user static route
[OK]
KHI_01_5B(config-if)#no shutdown
Gateway of last resort is not set
%LINK-3-UPDOWN: Interface Serial0, changed state to up Gateway of last resort is not set
LHR_01_5B#show ip route
KHI_01_5B(config-if)#exit
Codes: C - connected, S - static, I - IGRP, R - RIP, M - C 10.0.0.0 is directly connected, Serial0
KHI_01_5B(config)#interface serial 1 C 13.0.0.0 is directly connected, Serial1
mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial0, changed state to
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF %LINK-3-UPDOWN: Interface Serial1, changed state to up
down %LINK-3-UPDOWN: Interface Serial0, changed state to up
inter area %LINEPROTO-5-UPDOWN: Line protocol on Interface
%LINEPROTO-5-UPDOWN: Line protocol on Interface %LINEPROTO-5-UPDOWN: Line protocol on Interface
E1 - OSPF external type 1, E2 - OSPF external type 2, Serial1, changed state to up
Serial0, changed state to down Serial0, changed state to up
E - EGP LHR_01_5B#show ip route
KHI_01_5B(config-if)#ip address 13.0.0.1 255.0.0.0 %LINK-3-UPDOWN: Interface Serial1, changed state to up
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - Codes: C - connected, S - static, I - IGRP, R - RIP, M -
KHI_01_5B(config-if)#bandwidth 1544 %LINEPROTO-5-UPDOWN: Line protocol on Interface
candidate default mobile, B - BGP
KHI_01_5B(config-if)#clock rate 64000 Serial1, changed state to up
U - per-user static route D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
KHI_01_5B(config-if)#no shutdown KHI_01_5B#show ip route
inter area
%LINK-3-UPDOWN: Interface Serial1, changed state to up Codes: C - connected, S - static, I - IGRP, R - RIP, M -
Gateway of last resort is not set E1 - OSPF external type 1, E2 - OSPF external type 2,
KHI_01_5B(config-if)#exit mobile, B - BGP
E - EGP
KHI_01_5B(config)#exit D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF
C 10.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
%LINK-3-UPDOWN: Interface Serial1, changed state to inter area
C 11.0.0.0 is directly connected, Serial1 candidate default
down E1 - OSPF external type 1, E2 - OSPF external type 2,
U - per-user static route
%LINEPROTO-5-UPDOWN: Line protocol on Interface E - EGP
LHR_01_5B#show ip route
Serial1, changed state to down i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
Codes: C - connected, S - static, I - IGRP, R - RIP, M - Gateway of last resort is not set
KHI_01_5B#copy run startup candidate default
mobile, B - BGP
Destination filename [startup-config]? U - per-user static route
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF C 10.0.0.0 is directly connected, Serial0
Building configuration...
inter area C 11.0.0.0 is directly connected, Serial1
[OK] Gateway of last resort is not set
E1 - OSPF external type 1, E2 - OSPF external type 2,
E - EGP
C 10.0.0.0 is directly connected, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * -
C 13.0.0.0 is directly connected, Serial1.
candidate default
U - per-user static route
TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V
Data Communication & Networking Lab9 Task: 24-10-07 Data Communication & Networking Lab9 Task: 24-10-07
Setting-Up RIP
¤Islamabad Router
Router> C 13.0.0.0 is directly connected, Serial1
Router>enable ¤Karachi Router ¤Lahore Router ¤Islamabad Router
Router#config t ISB_01_5B#co
Enter configuration commands, one per line. End with ISB_01_5B#configure terminal KHI_01_5B#configure t LHR_01_5B#config t ISB_01_5B#configure t
CNTL/Z. Enter configuration commands, one per line. End with Enter configuration commands, one per Enter configuration commands, one per Enter configuration commands, one per
Router(config)#hostname ISB_01_5B CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z. line. End with CNTL/Z.
ISB_01_5B(config)#interface serial 0 ISB_01_5B(config)#i9n KHI_01_5B(config)#router rip LHR_01_5B(config)#route ISB_01_5B(config)#router rip
KHI_01_5B(config-router)#network LHR_01_5B(config)#router rip ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 ISB_01_5B(config)#interface serial 0
10.0.0.0 LHR_01_5B(config-router)#network 13.0.0.0
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B(config-if)#ip address 11.0.0.2 255.0.0.0 KHI_01_5B(config-router)#network 10.0.0.0 ISB_01_5B(config-router)#network
ISB_01_5B(config-if)#no shutdown ISB_01_5B(config-if)#bann 13.0.0.0 LHR_01_5B(config-router)#network 11.0.0.0
%LINK-3-UPDOWN: Interface Serial0, changed state to up ISB_01_5B(config-if)#bandwidth 1544 KHI_01_5B(config-router)#exit 11.0.0.0 ISB_01_5B(config-router)#exit
ISB_01_5B(config-if)#exit ISB_01_5B(config-if)#clock rate 64000 KHI_01_5B(config)#exit LHR_01_5B(config-router)# ISB_01_5B(config)#exit
ISB_01_5B(config)#interface serial 1 %LINK-3-UPDOWN: Interface Serial0, changed state to up KHI_01_5B#copy run startup LHR_01_5B(config-router)#exit ISB_01_5B#copy run startup
%LINK-3-UPDOWN: Interface Serial0, changed state to %LINEPROTO-5-UPDOWN: Line protocol on Interface Destination filename [startup-config]? LHR_01_5B(config)#exit Destination filename [startup-config]?
down Serial0, changed state to up Building configuration... LHR_01_5B#copy run startup Building configuration...
%LINEPROTO-5-UPDOWN: Line protocol on Interface ISB_01_5B(config-if)#no shutdown [OK] Destination filename [startup-config]? [OK]
Building configuration...
Serial0, changed state to down ISB_01_5B(config-if)#exit
KHI_01_5B#show ip route [OK] ISB_01_5B#show ip route
ISB_01_5B(config-if)#ip address 13.0.0.2 255.0.0.0 ISB_01_5B(config)#exit Codes: C - connected, S - static, I - IGRP, Codes: C - connected, S - static, I - IGRP,
ISB_01_5B(config-if)#bandwidth 1544 ISB_01_5B#copy run startup R - RIP, M - mobile, B - BGP LHR_01_5B#show ip route R - RIP, M - mobile, B - BGP
ISB_01_5B(config-if)#no shutdown Destination filename [startup-config]? D - EIGRP, EX - EIGRP external, O - Codes: C - connected, S - static, I - IGRP, D - EIGRP, EX - EIGRP external, O -
%LINK-3-UPDOWN: Interface Serial1, changed state to up Building configuration... OSPF, IA - OSPF inter area R - RIP, M - mobile, B - BGP OSPF, IA - OSPF inter area
ISB_01_5B(config-if)#exit [OK] E1 - OSPF external type 1, E2 - OSPF D - EIGRP, EX - EIGRP external, O - E1 - OSPF external type 1, E2 - OSPF
ISB_01_5B(config)#exit external type 2, E - EGP OSPF, IA - OSPF inter area external type 2, E - EGP
ISB_01_5B#copy run startup ISB_01_5B#show ip route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS E1 - OSPF external type 1, E2 - OSPF i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
Destination filename [startup-config]? Codes: C - connected, S - static, I - IGRP, R - RIP, M - level-2, * - candidate default external type 2, E - EGP level-2, * - candidate default
U - per-user static route i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS U - per-user static route
Building configuration... mobile, B - BGP
level-2, * - candidate default
[OK] D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF Gateway of last resort is not set U - per-user static route Gateway of last resort is not set
inter area
ISB_01_5B#show ip route E1 - OSPF external type 1, E2 - OSPF external type 2, C 10.0.0.0 is directly connected, Serial0 Gateway of last resort is not set C 13.0.0.0 is directly connected,
Codes: C - connected, S - static, I - IGRP, R - RIP, M - E - EGP C 13.0.0.0 is directly connected, Serial1 Serial1
mobile, B - BGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - C 10.0.0.0 is directly connected, C 11.0.0.0 is directly connected,
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF candidate default KHI_01_5B#show ip route Serial0 Serial0
inter area U - per-user static route Codes: C - connected, S - static, I - IGRP, C 11.0.0.0 is directly connected, R 10.0.0.0 [120/1] via 11.0.0.1,
E1 - OSPF external type 1, E2 - OSPF external type 2, R - RIP, M - mobile, B - BGP Serial1 00:02:43, Serial0
D - EIGRP, EX - EIGRP external, O - R 13.0.0.0 [120/1] via 10.0.0.1,
E - EGP Gateway of last resort is not set
OSPF, IA - OSPF inter area 00:06:17, Serial0
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - E1 - OSPF external type 1, E2 - OSPF
candidate default C 13.0.0.0 is directly connected, Serial1 external type 2, E - EGP
U - per-user static route C 11.0.0.0 is directly connected, Serial0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS
level-2, * - candidate default
Gateway of last resort is not set U - per-user static route

C 13.0.0.0 is directly connected, Serial1 Gateway of last resort is not set

C 10.0.0.0 is directly connected,


ISB_01_5B#show ip route
Serial0
Codes: C - connected, S - static, I - IGRP, R - RIP, M - C 13.0.0.0 is directly connected,
mobile, B - BGP Serial1
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF R 11.0.0.0 [120/1] via 13.0.0.2,
inter area 00:09:19, Serial1
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

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V
Data Communication & Networking Lab9 Task: 24-10-07 Data Communication & Networking Lab9 Task: 24-10-07

Setting-Up IGRIP Debugging IGRIP

¤Karachi Router ¤Lahore Router ¤Islamabad Router ¤Karachi Router ¤Lahore Router ¤Islamabad Router
KHI_01_5B#debug ip igrp events LHR_01_5B#debug ip igrp events ISB_01_5B#debug ip igrp events
KHI_01_5B#config t LHR_01_5B#configure t ISB_01_5B#config t IGRP event debugging is on IGRP event debugging is on IGRP event debugging is on
KHI_01_5B(config)#router igrp 100 LHR_01_5B(config)#router igrp 100 ISB_01_5B(config)#router igrp 100 IGRP: sending update to IGRP: received update from 10.0.0.1 IGRP: received update from 11.0.0.1
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network 255.255.255.255 via Serial0 (10.0.0.1) on Serial0 on Serial0
10.0.0.0 10.0.0.0 11.0.0.0 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
KHI_01_5B(config-router)#network LHR_01_5B(config-router)#network ISB_01_5B(config-router)#network system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
13.0.0.0 11.0.0.0 13.0.0.0 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2
KHI_01_5B(config-router)#exit LHR_01_5B(config-router)#exit ISB_01_5B(config-router)#exit
KHI_01_5B(config)#exit LHR_01_5B(config)#exit ISB_01_5B(config)#exit IGRP: sending update to IGRP: sending update to IGRP: sending update to
KHI_01_5B#copy run startup LHR_01_5B#copy run startup ISB_01_5B#copy run startup 255.255.255.255 via Serial1 (13.0.0.1) 255.255.255.255 via Serial0 (10.0.0.2) 255.255.255.255 via Serial0 (11.0.0.2)
Destination filename [startup-config]? Destination filename [startup-config]? Destination filename [startup-config]? IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1
Building configuration... Building configuration... Building configuration... system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
[OK] [OK] [OK] IGRP: Total routes in update: 1 IGRP: Total routes in update: 1 IGRP: Total routes in update: 1
Gateway of last resort is not set Gateway of last resort is not set Gateway of last resort is not set IGRP: received update from 10.0.0.2 IGRP: sending update to IGRP: sending update to
on Serial0 255.255.255.255 via Serial1 (11.0.0.1) 255.255.255.255 via Serial1 (13.0.0.2)
C 10.0.0.0 is directly connected, C 10.0.0.0 is directly connected, C 13.0.0.0 is directly connected, IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
Serial0 Serial0 Serial1 system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
C 13.0.0.0 is directly connected, C 11.0.0.0 is directly connected, C 11.0.0.0 is directly connected, IGRP: Total routes in update: 1 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2
Serial1 Serial1 Serial0
I 13.0.0.0 [100/651] via 10.0.0.1, I 10.0.0.0 [100/651] via 13.0.0.1, IGRP: received update from 13.0.0.2 IGRP: received update from 11.0.0.2 IGRP: received update from 13.0.0.1
KHI_01_5B#show ip route 00:07:41, Serial0 00:07:44, Serial1 on Serial1 on Serial1 on Serial1
IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1
Gateway of last resort is not set system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
IGRP: Total routes in update: 2 IGRP: Total routes in update: 1 IGRP: Total routes in update: 1
C 10.0.0.0 is directly connected,
Serial0 IGRP: sending update to IGRP: received update from 10.0.0.1 IGRP: received update from 11.0.0.1
C 13.0.0.0 is directly connected, 255.255.255.255 via Serial0 (10.0.0.1) on Serial0 on Serial0
Serial1 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
I 11.0.0.0 [100/651] via 13.0.0.2, system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
00:08:28, Serial1 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2

IGRP: sending update to IGRP: sending update to IGRP: sending update to


RESULT: 255.255.255.255 via Serial1 (13.0.0.1) 255.255.255.255 via Serial0 (10.0.0.2) 255.255.255.255 via Serial0 (11.0.0.2)
IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 1
system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
Note that first router table for remote networks was formed by RIP and when IGRP is enabled IGRP: Total routes in update: 1 IGRP: Total routes in update: 1 IGRP: Total routes in update: 1
the new routing table or the information about remote networks to respective router is gathered by
IGRP. IGRP: received update from 10.0.0.2 IGRP: sending update to IGRP: sending update to
It is due the administrative distance of IGRP i.e. 100 which less than that of RIP i.e. 120. on Serial0 255.255.255.255 via Serial1 (11.0.0.1) 255.255.255.255 via Serial1 (13.0.0.2)
IGRP: Update contains 0 interior, 1 IGRP: Update contains 0 interior, 2 IGRP: Update contains 0 interior, 2
system, and 0 exterior routes. system, and 0 exterior routes. system, and 0 exterior routes.
IGRP: Total routes in update: 1 IGRP: Total routes in update: 2 IGRP: Total routes in update: 2

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

KHI_01_5B#no debug all LHR_01_5B#no debug all ISB_01_5B#no debug all


All possible debugging has been All possible debugging has been All possible debugging has been
turned off turned off turned off

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V
Data Communication & Networking Lab9 Task: 24-10-07
Debugging IGRIP
¤Karachi Router ¤Lahore Router ¤Islamabad Router
KHI_01_5B# show ip protocols LHR_01_5B#no debug all ISB_01_5B#no debug all
Routing Protocol is "igrp 100" All possible debugging has been All possible debugging has been
Sending updates every 90 seconds, turned off turned off
next due in 13 seconds LHR_01_5B#show ip protocols ISB_01_5B#show ip protocols
Invalid after 270 seconds, hold down Routing Protocol is "igrp 100" Routing Protocol is "igrp 100"
280, flushed after 630 Sending updates every 90 seconds, Sending updates every 90 seconds,
Outgoing update filter list for all next due in 13 seconds next due in 79 seconds
interfaces is not set Invalid after 270 seconds, hold down Invalid after 270 seconds, hold down
Incoming update filter list for all 280, flushed after 630 280, flushed after 630
interfaces is not set Outgoing update filter list for all Outgoing update filter list for all
Default networks flagged in outgoing interfaces is not set interfaces is not set
updates Incoming update filter list for all Incoming update filter list for all
Default networks accepted from interfaces is not set interfaces is not set
incoming updates Default networks flagged in outgoing Default networks flagged in outgoing
IGRP metric weight K1=1, K2=0, updates updates
K3=1, K4=0, K5=0 Default networks accepted from Default networks accepted from
IGRP maximum hopcount 100 incoming updates incoming updates
IGRP maximum metric variance 1 IGRP metric weight K1=1, K2=0, IGRP metric weight K1=1, K2=0,
Redistributing: igrp 100 K3=1, K4=0, K5=0 K3=1, K4=0, K5=0
Routing for Networks: IGRP maximum hopcount 100 IGRP maximum hopcount 100
10.0.0.0 IGRP maximum metric variance 1 IGRP maximum metric variance 1
13.0.0.0 Redistributing: igrp 100 Redistributing: igrp 100
Routing Information Sources: Routing for Networks: Routing for Networks:
10.0.0.2 100 00:00:03 10.0.0.0 11.0.0.0
13.0.0.2 100 00:00:03 11.0.0.0 13.0.0.0
Distance: (default is 100) Routing Information Sources: Routing Information Sources:
11.0.0.2 100 00:00:06 13.0.0.1 100 00:00:00
10.0.0.1 100 00:00:03 11.0.0.1 100 00:00:03
Distance: (default is 100) Distance: (default is 100)

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


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

Lab-12

SNIFFERS
Ethereal:

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


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

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 3
Data Communication & Networking Lab12 Task: 15-11-07
Smart Sniff:

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


Data Communication & Networking Stand Alone Lab-17 Data Communication & Networking Stand Alone Lab-17
R1_5B-01-EE#ping 192.168.2.2 R2_5B-01-EE#traceroute
Traceroute Sending 5, 100-byte ICMP Echos to 192.168.2.2
192.168.2.2, timeout is 2 seconds: Tracing the route to 192.168.2.2
Success rate is 100 percent (5/5), 1 192.168.1.1 0 msec 18 msec 0
round-trip min/avg/max = 1/2/4 m 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.
Router 1 Router 2 Router 3
Router>enable Router>enable Router>enable
Router#config t Router#config t Router#config t
Router(config)#hostname R1_5B- Router(config)#hostname R2_5B- Router(config)#hostname R4_5B-
01-EE 01-EE 01-EE
R1_5B-01-EE(config)#int e0 R2_5B-01-EE(config)#int e0 R4_5B-01-EE(config)#int s0
R1_5B-01-EE(config-if)#ip address R2_5B-01-EE(config-if)#ip address R4_5B-01-EE(config-if)#ip address
192.168.1.1 255.255.255.0 192.168.1.2 255.255.255.0 192.168.2.2 255.255.255.0
R1_5B-01-EE(config-if)#no shut R2_5B-01-EE(config-if)#no shut R4_5B-01-EE(config-if)#no shut
R1_5B-01-EE(config-if)#exit %LINK-3-UPDOWN: Interface %LINK-3-UPDOWN: Interface
R1_5B-01-EE(config)#int s0 Ethernet0, changed state to up Serial0, changed state to up
R1_5B-01-EE(config-if)#ip address R2_5B-01-EE(config-if)#exit R4_5B-01-EE(config-if)#exit
192.168.2.1 255.255.255.0 R2_5B-01-EE(config)#router rip R4_5B-01-EE(config)#router rip
R1_5B-01-EE(config-if)#no shut R2_5B-01-EE(config- R4_5B-01-EE(config-
R1_5B-01-EE(config-if)#exit router)#network 192.168.1.0 router)#network 192.168.2.0
R1_5B-01-EE(config)#router rip R2_5B-01-EE(config-
router)#network 192.168.2.0 R4_5B-01-EE#show ip route
R1_5B-01-EE(config- C 192.168.2.0 is directly
router)#network 192.168.1.0 R2_5B-01-EE#show ip route connected, Serial0
R1_5B-01-EE(config- C 192.168.1.0 is directly R 192.168.1.0 [120/1] via
router)#network 192.168.2.0 connected, Ethernet0 192.168.2.1, 00:01:23, Serial0
R 192.168.2.0 [120/1] via
R1_5B-01-EE#show ip route 192.168.1.1, 00:09:30, Ethernet0
C 192.168.1.0 is directly
connected,Ethernet0 R2_5B-01-EE#ping 192.168.2.2
C 192.168.2.0 is directly connected, Sending 5, 100-byte ICMP Echos to
Serial0 192.168.2.2, timeout is 2.2
R1_5B-01-EE#ping 192.168.1.2 seconds:!!!!!
Sending 5, 100-byte ICMP Echos to Success rate is 100 percent (5/5),
192.168.1.2, timeout is 2 seconds: round-trip min/avg/max = 1/2/4 ms
Success rate is 100 percent (5/5),
round-trip min/avg/max = 1/2/4 ms

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Data Communication & Networking Stand Alone Lab-21 Data Communication & Networking Stand Alone Lab-21
Total Allocated ISDN CCBs = 0 Number of L2 Discards = 0, L2 Session ID = 100
ISDN R1_5B-001-EE#config t Total Allocated ISDN CCBs = 0
Enter configuration commands, one per line. End with R2_5B-001-EE#config t
CNTL/Z. Enter configuration commands, one per line. End with
R1_5B-001-EE(config)#int bri0 CNTL/Z.
R1_5B-001-EE(config-if)#dialer string 7782001 R2_5B-001-EE(config)#int bri0
R1_5B-001-EE(config-if)#exit R2_5B-001-EE(config-if)#dialer string 7782002
R1_5B-001-EE(config)#dialer-list 1 protocol ip permit R2_5B-001-EE(config-if)#exit
R1_5B-001-EE(config)#int bri0 R2_5B-001-EE(config)#dialer-list 1 protocol ip permit
R1_5B-001-EE(config-if)#dialer-group 1 R2_5B-001-EE(config)#int bri0
R1_5B-001-EE#ping 42.34.10.121 R2_5B-001-EE(config-if)#dialer-group 1
Type escape sequence to abort. R2_5B-001-EE(config-if)#exit
Sending 5, 100-byte ICMP Echos to 42.34.10.121, R2_5B-001-EE(config)#exit
timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 1/2/4 ms

What is an ISDN?
Router 1 Router 2
Router> Router> x http://www.networktutorials.info/index.html
Router>enable Router>
Router#config t Router>enable ISDN network is a digital communication system that is capable of producing the maximum transmission
Enter configuration commands, one per line. End with Router#config t speed of 1.4Mbps. 128Kbps speed is however more common in the digital technology. It's a international standard
CNTL/Z. Enter configuration commands, one per line. End with for sending data, voice, video over regular digital telephone lines. ISDN uses UTP (unshielded twisted pair cable)
Router(config)#hostname R1_5B-001-EE CNTL/Z. for transmission.
R1_5B-001-EE(config)#int bri0 Router(config)#hostname R2_5B-001-EE
R1_5B-001-EE(config-if)#ip address 42.34.10.121 R2_5B-001-EE(config)#int bri0 Types of ISDN Network
255.255.255.0 R2_5B-001-EE(config-if)#ip address 42.34.10.121 There are two basic types
R1_5B-001-EE(config-if)#no shut 255.255.255.0 • Basic Rate Interface (BRI) – It consists of two 64 B-channels and one D-channel for transmitting control
%LINK-3-UPDOWN: Interface Bri0, changed state to R2_5B-001-EE(config-if)#no shut information.
up %LINK-3-UPDOWN: Interface Bri0, changed state to • Primary Rate Interface (PRI) -- It consists of 23 B-channels and one D-channel (for U.S.) or 30 B-channels and
R1_5B-001-EE(config-if)#end up one D-channel (for Europe).
R1_5B-001-EE#config t R2_5B-001-EE(config-if)#end The actual version of ISDN employs base band transmission. Another version, called B-ISDN, uses broadband
Enter configuration commands, one per line. End with R2_5B-001-EE#config t transmission, which is able to support transmission rate of 1.5 Mbps. B-ISDN mainly requires fiber optic cables.
CNTL/Z. Enter configuration commands, one per line. End with To access the B channel, it is necessary to subscribe the ISDN phone line. Customers are also required to have
R1_5B-001-EE(config)#isdn switch-type basic-ni CNTL/Z. some special ISDN devices, which are known as terminal adapters, which are used to communication with the
R1_5B-001-EE(config)#int bri0 R2_5B-001-EE(config)#isdn switch-type basic-ni telephone company switch or other ISDN devices.
R1_5B-001-EE(config-if)#isdn spid1 32177820010100 R2_5B-001-EE(config)#int bri0
R1_5B-001-EE(config-if)#exit R2_5B-001-EE(config-if)#isdn spid1 32177820020100
R1_5B-001-EE(config)#exit R2_5B-001-EE(config-if)#exit
x http://www.webopedia.com
R1_5B-001-EE#show isdn status R2_5B-001-EE(config)#exit
Global ISDN Switchtype = basic-ni R2_5B-001-EE#show isdn status
ISDN BRI0 interface Global ISDN Switchtype = basic-ni SPID:
dsl 0, interface ISDN Switchtype = basic-ni ISDN BRI0 interface
Layer 1 Status: dsl 0, interface ISDN Switchtype = basic-ni Service Profile Identifier, a number that identifies a specific ISDN line. When you obtain ISDN service, your
TESTING Layer 1 Status: telephone company assigns a SPID to your line. Part of the initialization procedure is to configure your ISDN
Layer 2 Status: TESTING terminal adapter to use this SPID.
TEI = 64, Ces = 1, SAPI = 0, State = Layer 2 Status:
MULTIPLE_FRAME_ESTABLISHED TEI = 64, Ces = 1, SAPI = 0, State = Most telephone companies in the U.S. use the Generic SPID Format, which is a 14-digit number. The first 10 digits
TEI 64, ces = 1, state = 5(init) MULTIPLE_FRAME_ESTABLISHED identify the telephone number, called the Directory Number (DN). The remaining four digits identify a particular
spid1 configured, no LDN, spid1 sent, spid1 TEI 64, ces = 1, state = 5(init) ISDN device, in the case where multiple devices share the same Directory Number.
valid spid1 configured, no LDN, spid1 sent, spid1
Layer 3 Status: valid
0 Active Layer 3 Call(s) Layer 3 Status:
Active dsl 0 CCBs = 0 0 Active Layer 3 Call(s)
The Free Channel Mask: 0x80000003 Active dsl 0 CCBs = 0
Number of L2 Discards = 0, L2 Session ID = 100 The Free Channel Mask: 0x80000003

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Data Communication & Networking Stand Alone Lab-34 Data Communication & Networking Stand Alone Lab-34

Telnet 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
Router 1 Router 2 of that computer. With Telnet, you log on as a regular user with whatever privileges you may have been granted to
Router> Router> the specific application and data on that computer.
Router>enable Router>enable A Telnet command request looks like this (the computer name is made-up):
Router#config t Router#config t telnet the.libraryat.whatis.edu
Enter configuration commands, one per line. End Enter configuration commands, one per line. End with The result of this request would be an invitation to log on with a userid and a prompt for a password. If accepted,
with CNTL/Z. CNTL/Z. you would be logged on like any user who used this computer every day.
Router(config)#hostname R1_5B-001-EE Router(config)#hostname R2_5B-001-EE Telnet is most likely to be used by program developers and anyone who has a need to use specific applications or
R1_5B-001-EE(config)#line vty 0 4 R2_5B-001-EE(config)#int e0 data located at a particular host computer.
R1_5B-001-EE(config-line)#login R2_5B-001-EE(config-if)#ip address 34.25.67.2
R1_5B-001-EE(config-line)#password boson 255.255.255.0
R1_5B-001-EE(config-line)#exit R2_5B-001-EE(config-if)#no shut
R1_5B-001-EE(config)#int e0 %LINK-3-UPDOWN: Interface Ethernet0, changed state to
R1_5B-001-EE(config-if)#ip address 34.25.67.18 up
255.255.255.0 R2_5B-001-EE(config-if)#end
R1_5B-001-EE(config-if)#no shut R2_5B-001-EE#telnet 34.25.67.18
%LINK-3-UPDOWN: Interface Ethernet0, changed
state to up Trying 34.25.67.18 ... Open
% The Message that appeared was:
Password: boson
R1_5B-001-EE>
R1_5B-001-EE><ctrl>+<shift>+<6>- - -+<X>
R2_5B-001-EE#
%Screen Resumed back Router2

R2_5B-001-EE#show sessions
Conn Host Address Byte Idle Conn
Name
* 1 34.25.67.18 34.25.67.18 0 9
34.25.67.18

R2_5B-001-EE#resume 1
Resuming connection 1 to 34.25.67.18

R2_5B-001-EE#disconnect 1
Closing connection to 34.25.67.18

TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 1 TAIMUR MUSHARRAF 05B-001-EE SEC:A SEM-V 2
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.

KHI(config)#int e0
KHI(config-if)#ip address 10.0.0.1 255.0.0.0
KHI(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
KHI(config-if)#exit
KHI(config)#exit
KHI#copy run startup
Destination filename [startup-config]?
Building configuration...
[OK]

%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)#exit
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#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Karachi Router:
Router> KHI(config)#ro
Router>enable KHI(config)#rou
Router#configure KHI(config)#router ?
Configuring from terminal, memory, or network [terminal]? eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
Enter configuration commands, one per line. End with CNTL/Z. rip Routing Information Protocol (RIP)
igrp Interior Gateway Routing Protocol (IGRP)
Router(config)#hostname KHI ospf Open Shortest Path First (OSPF)
KHI(config)#int s0 bgp Border Gateway Protocol (BGP)
KHI(config-if)#ip address 11.0.0.1 255.0.0.0 isis ISO IS-IS
KHI(config-if)#ba KHI(config)#router igrp 100
KHI(config-if)#bandwidth 1544 KHI(config-router)#network 10.0.0.0
KHI(config-if)#clock rate 64000 KHI(config-router)#network 11.0.0.0
KHI(config-if)#no shutdown KHI(config-router)#exit
%LINK-3-UPDOWN: Interface Serial0, changed state to up KHI(config)#exit
KHI(config-if)#exit KHI#copy run startup
%LINK-3-UPDOWN: Interface Serial0, changed state to down Destination filename [startup-config]?
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
KHI(config)#exit
KHI#copy run startup
Destination filename [startup-config]? Lahore Router:
Building configuration... Router#configure
[OK] Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
KHI#configure

1 2
Router(config)#hostname LHRm Building configuration...
LHRm(config)#int s0 [OK]
LHRm(config-if)#ip address 11.0.0.2 255.0.0.0
LHRm(config-if)#bandwidth 1544 LHRm#show ip route
LHRm(config-if)#no shutdown Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
%LINK-3-UPDOWN: Interface Serial0, changed state to up D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
LHRm(config-if)#exit E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
LHRm(config)#int e0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
LHRm(config-if)#ip address 13.0.0.1 255.0.0.0 U - per-user static route
LHRm(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up Gateway of last resort is not set
LHRm(config-if)#exit
LHRm(config)#int s1 C 11.0.0.0 is directly connected, Serial0
LHRm(config-if)#ip address 12.0.0.1 255.0.0.0 C 13.0.0.0 is directly connected, Ethernet0
LHRm(config-if)#bandwidth 1544 C 12.0.0.0 is directly connected, Serial1
LHRm(config-if)#no shut S 10.0.0.0 [1/0] via 11.0.0.1
%LINK-3-UPDOWN: Interface Serial1, changed state to up
LHRm(config-if)#exit
LHRm(config)#exit
%LINK-3-UPDOWN: Interface Serial1, changed state to down
Lahore Router2:
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down Router>enable
LHRm#copy run startup Router#co
Destination filename [startup-config]? Router#configure
Building configuration... Configuring from terminal, memory, or network [terminal]?
[OK] Enter configuration commands, one per line. End with CNTL/Z.

%LINK-3-UPDOWN: Interface Serial1, changed state to up Router(config)#hostname LHRs


%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up LHRs(config)#int s1
LHRm#ip route 10.0.0.0 255.0.0.0 11.0.0.1 LHRs(config-if)#ip address 12.0.0.2 255.0.0.0
^ LHRs(config-if)#bandwidth 1544
% Invalid input detected at '^' marker. LHRs(config-if)#clock rate 64000
LHRs(config-if)#no shut
LHRm#configure %LINK-3-UPDOWN: Interface Serial1, changed state to up
Configuring from terminal, memory, or network [terminal]? LHRs(config-if)#exit
Enter configuration commands, one per line. End with CNTL/Z. LHRs(config)#exit
LHRs#copy run startup
LHRm(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1 Destination filename [startup-config]?
LHRm(config)#ping 11.0.0.2 Building configuration...
^ [OK]
% Invalid input detected at '^' marker.
LHRs#ping 12.0.0.1
LHRm(config)#exit
LHRm#ping 11.0.0.2 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
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
!!!!! LHRs#ping 11.0.0.1
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
LHRm#configure Type escape sequence to abort.
Configuring from terminal, memory, or network [terminal]? Sending 5, 100-byte ICMP Echos to 11.0.0.1, timeout is 2 seconds:
Enter configuration commands, one per line. End with CNTL/Z. .....
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
LHRm(config)#router igrp 100 LHRs#show ip route
LHRm(config-router)#network 11.0.0.0 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
LHRm(config-router)# D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
LHRm(config-router)#network 13.0.0.0 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
LHRm(config-router)#network 12.0.0.0 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
LHRm(config-router)#exit U - per-user static route
LHRm(config)#exit
LHRm#copy run startup Gateway of last resort is not set
Destination filename [startup-config]?
3 4
C 12.0.0.0 is directly connected, Serial1
Switch
LHRs#config >enable
Configuring from terminal, memory, or network [terminal]? #configure t
Enter configuration commands, one per line. End with CNTL/Z. Enter configuration commands, one per line. End with CNTL/Z.
(config)#vlan 22 name PC
LHRs(config)#router igrp 100 (config)#int eo/1
LHRs(config-router)#network 12.0.0.0 ^
LHRs(config-router)#exit % Invalid input detected at '^' marker.
LHRs(config)#exit (config)#int e0/1
LHRs#copy run startup (config-if)#vlan-membership static 22
Destination filename [startup-config]? (config-if)#exit
Building configuration... (config)#int e0/2
[OK] (config-if)#vlan-membership static 22
(config-if)#exit
LHRs#show ip route (config)#exit
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP #copy run startup
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area ^
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP % Invalid input detected at '^' marker.
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route #show vlan

Gateway of last resort is not set VLAN Name Status Ports


--------------------------------------
C 12.0.0.0 is directly connected, Serial1 1 default Enabled 3-12, AUI, A, B
I 11.0.0.0 [100/651] via 12.0.0.1, 00:06:44, Serial1 22 PC Enabled 1-2
I 13.0.0.0 [100/651] via 12.0.0.1, 00:09:12, Serial1 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

5 6
HELP
PC1: Manipulates ip address for Workstation.
C:>ipconfig /ip 10.0.0.2 255.0.0.0
C:>ipconfig /dg 10.0.0.1 IPCONFIG [/ip] [/dg]
C:>ping 10.0.0.3 /ip Adds the ip address and subnet mask to the workstation
Pinging 10.0.0.3 with 32 bytes of data: /dg Adds the default gateway to the workstation
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Examples:
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 ¢ ipconfig /ip 157.1.1.12 255.0.0.0
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 ¢ ipconfig /dg 157.1.1.1
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241
Reply from 10.0.0.3: bytes=32 time=60ms TTL=241 Boson BOSS 5.0 IP Configuration
Ethernet adapter Local Area Connection:
Ping statistics for 10.0.0.3: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss), IP Address. . . . . . . . . . . . : 10.0.0.2
Approximate round trip times in milli-seconds: Subnet Mask . . . . . . . . . . . : 255.0.0.0
Minimum = 50ms, Maximum = 60ms, Average = 55ms Default Gateway . . . . . . . . . : 10.0.0.1
C:>ping 10.0.0.1
Pinging 10.0.0.1 with 32 bytes of data: You can also use winipcfg to configure the IP Address
Request timed out.
Request timed out.
Request timed out.
PC2:
Request timed out. C:>ipconfig /ip 10.0.0.3 255.0.0.0
Request timed out. C:>ipconfig /dg 10.0.0.1

Ping statistics for 10.0.0.1: PC3:


Packets: Sent = 5, Received = 0, Lost = 5 (100% loss), C:>ipconfig /ip 13.0.0.2
Approximate round trip times in milli-seconds: ^
Minimum = 0ms, Maximum = 0ms, Average = 0ms % Invalid input detected at '^' marker.

C:>ping 13.0.0.2 C:>ipconfig /ip 13.0.0.2 255.0.0.0


Pinging 13.0.0.2 with 32 bytes of data: C:>ipconfig /dg 13.0.0.1
C:>ping 13.0.0.01
Request timed out. 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.
Request timed out. Request timed out.
Request timed out.
Ping statistics for 13.0.0.2: Request timed out.
Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
Approximate round trip times in milli-seconds: Ping statistics for 13.0.0.01:
Minimum = 0ms, Maximum = 0ms, Average = 0ms Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
Approximate round trip times in milli-seconds:
C:>ping 13.0.0.2 Minimum = 0ms, Maximum = 0ms, Average = 0ms
Pinging 13.0.0.2 with 32 bytes of data:
C:>ping 13.0.0.1
Request timed out. Pinging 13.0.0.1 with 32 bytes of data:
Request timed out.
Request timed out. Reply from 13.0.0.1: bytes=32 time=60ms TTL=241
Request timed out. Reply from 13.0.0.1: bytes=32 time=60ms TTL=241
Request timed out. 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.2: Reply from 13.0.0.1: bytes=32 time=60ms TTL=241
Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
Approximate round trip times in milli-seconds: Ping statistics for 13.0.0.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Minimum = 0ms, Maximum = 0ms, Average = 0ms Approximate round trip times in milli-seconds:
Minimum = 50ms, Maximum = 60ms, Average = 55ms
C:>ipconfig

7 8
KHI(config-if)#exit
Practice Sinerio 2 KHI(config)#exit
KHI#copy run startup
Destination filename [startup-config]?
Building configuration...
[OK]

KHI#ping 11.0.0.2

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

Karachi Router Gateway of last resort is not set


Router>
Router>ENABLE C 10.0.0.0 is directly connected, Ethernet0
Router#CONFIG
Configuring from terminal, memory, or network [terminal]? %LINK-3-UPDOWN: Interface Serial0, changed state to up
Enter configuration commands, one per line. End with CNTL/Z. %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
KHI#ping 11.0.0.2
Router(config)#HOSTNAME KHI
KHI(config)#INT S0 Type escape sequence to abort.
KHI(config-if)#ip address 11.0.0.1 255.0.0.0 Sending 5, 100-byte ICMP Echos to 11.0.0.2, timeout is 2 seconds:
KHI(config-if)#bandwidth 1544 !!!!!
KHI(config-if)#clock rate 64000 Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
KHI(config-if)#no shut KHI#configure
%LINK-3-UPDOWN: Interface Serial0, changed state to up Configuring from terminal, memory, or network [terminal]?
KHI(config-if)#exit Enter configuration commands, one per line. End with CNTL/Z.
KHI(config)#exit
%LINK-3-UPDOWN: Interface Serial0, changed state to down KHI(config)#rou
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down KHI(config)#router igrp 100
KHI#copy run startup KHI(config-router)#network 10.0.0.0
Destination filename [startup-config]? KHI(config-router)#network 11.0.0.0
Building configuration... KHI(config-router)#exit
[OK] KHI(config)#exit
KHI#copy run startup
KHI#configure Destination filename [startup-config]?
Configuring from terminal, memory, or network [terminal]? Building configuration...
Enter configuration commands, one per line. End with CNTL/Z. [OK]

KHI(config)#int e0 KHI#show ip route


KHI(config-if)#ip address 10.0.0.1 255.0.0.0 Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
KHI(config-if)#no shut D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up 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
1 2
U - per-user static route Lahore Router
Router>
Gateway of last resort is not set Router>enable
Router#co
C 10.0.0.0 is directly connected, Ethernet0 Router#configure
C 11.0.0.0 is directly connected, Serial0 Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
KHI#ping 10.0.0.4
Router(config)#hostname LHR
Type escape sequence to abort. LHR(config)#int s0
Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: LHR(config-if)#ip address 11.0.0.2 255.0.0.0
..... LHR(config-if)#bandwidth 1544
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms LHR(config-if)#no shut
KHI#ping 10.0.0.10 %LINK-3-UPDOWN: Interface Serial0, changed state to up
LHR(config-if)#exit
Type escape sequence to abort. LHR(config)#exit
Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds: %LINK-3-UPDOWN: Interface Serial0, changed state to down
!!!!! %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms LHR#copy run startup
KHI#ping 10.0.0.4 Destination filename [startup-config]?
Building configuration...
Type escape sequence to abort. [OK]
Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds:
..... LHR#co
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms LHR#configure
KHI#ping 10.0.0.4 Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: LHR(config)#int s0
..... LHR(config-if)#ip address 11.0.0.2 255.0.0.0
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms LHR(config-if)#bandwidth 1544
KHI#configure LHR(config-if)#clock rate 64000
Configuring from terminal, memory, or network [terminal]? %LINK-3-UPDOWN: Interface Serial0, changed state to up
Enter configuration commands, one per line. End with CNTL/Z. %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
LHR(config-if)#no shut
KHI(config)#ip route 10.0.0.0 255.0.0.0 10.0.0.10 LHR(config-if)#exit
KHI(config)#exit LHR(config)#exit
KHI#copy run startup LHR#config
Destination filename [startup-config]? Configuring from terminal, memory, or network [terminal]?
Building configuration... Enter configuration commands, one per line. End with CNTL/Z.
[OK]
LHR(config)#router igrp 100
KHI#ping 10.0.0.10 LHR(config-router)#network 11.0.0.0
LHR(config-router)#exit
Type escape sequence to abort. LHR(config)#exit
Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds: LHR#copy run startup
!!!!! Destination filename [startup-config]?
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms Building configuration...
KHI#ping 10.0.0.4 [OK]
Type escape sequence to abort. LHR#show ip route
Sending 5, 100-byte ICMP Echos to 10.0.0.4, timeout is 2 seconds: Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
..... D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms 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

3 4
hostname Set the system's network name
LHR#ping 10.0.0.2 interface Select an interface to configure
ip Global IP configuration subcommands
Type escape sequence to abort. line Configure a terminal line
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds: mac-address-table Configure the mac address table
..... rip Routing information protocol configuration
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms service Configuration Command
LHR#configure spantree Spanning tree subsystem
Configuring from terminal, memory, or network [terminal]? switching-mode Sets the switching mode
Enter configuration commands, one per line. End with CNTL/Z. uplink-fast Enable Uplink fast
vlan VLAN configuration
LHR(config)#ip route 10.0.0.0 255.0.0.0 11.0.0.1 vlan-membership VLAN membership server configuration
LHR(config)#exit vtp Global VTP configuration commands
LHR#copy run startup (config)#int ?
Destination filename [startup-config]? ethernet IEEE 802.3
Building configuration... (config)#int e?
[OK] ethernet

LHR#show ip route (config)#int e0/26


Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP ^
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area % Invalid input detected at '^' marker.
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 (config)#int e0/1
U - per-user static route (config-if)#vlan-membership static 10
(config-if)#exit
Gateway of last resort is not set (config)#int e0/2
(config-if)#vlan-membership static 10
C 11.0.0.0 is directly connected, Serial0 (config-if)#exit
S 10.0.0.0 [1/0] via 11.0.0.1 (config)#int e0/3
(config-if)#vlan-membership static 10
LHR# (config-if)#exit
LHR#ping 10.0.0.10 (config)#int e0/4
(config-if)#vlan-membership static 10
Type escape sequence to abort. (config-if)#exit
Sending 5, 100-byte ICMP Echos to 10.0.0.10, timeout is 2 seconds: (config)#int e0/5
!!!!! (config-if)#vlan-membership static 10
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms (config-if)#exit
(config)#int e0/6
Switch (config-if)#vlan-membership static 10
>enable (config-if)#exit
#configure (config)#exit
%Incomplete command. #show ?
vlan Show VLAN information
#configure t vtp VLAN trunk protocol
Enter configuration commands, one per line. End with CNTL/Z. vlan-membership Show VLAN membership information
(config)#int e0/1 trunk Display trunk information
(config-if)#exit tftp TFTP configuration and status
(config)#int e0 terminal Display console/RS-232 port configuration
^ spantree Spanning tree subsystem
% Invalid input detected at '^' marker. running-config Show current operating configuration
cdp cdp information
(config)#int e0/26 mac-address-table MAC forwarding table
^ history Display the session command history
% Invalid input detected at '^' marker. ip Display IP configuration
version System hardware and software status
(config)#? interfaces Interface status and configuration
banner Define a login banner line Display console/RS-232 port configuration
cdp Global CDP configuration subcommands #show vla
enable Modify enable password parameters #show vlan-membership
end Exit from configure mode Port VLAN Membership Type Port VLAN Membership Type
exit Exit from configure mode ----------------------------- -----------------------------
1 10 Static
5 6
2 10 Static Reply from 10.0.0.4: bytes=32 time=60ms TTL=241
3 10 Static Reply from 10.0.0.4: bytes=32 time=60ms TTL=241
4 10 Static
5 10 Static Ping statistics for 10.0.0.4: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
6 10 Static Approximate round trip times in milli-seconds:
7 1 Static Minimum = 50ms, Maximum = 60ms, Average = 55ms
8 1 Static
9 1 Static C:>ping 10.0.0.1
10 1 Static Pinging 10.0.0.1 with 32 bytes of data:
11 1 Static
12 1 Static Request timed out.
Request timed out.
AUI 1 Static Request timed out.
A 1 Static Request timed out.
B 1 Static Request timed out.

# Ping statistics for 10.0.0.1:


#configure t Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
Enter configuration commands, one per line. End with CNTL/Z. Approximate round trip times in milli-seconds:
(config)#ip address 10.0.0.10 255.0.0.0 Minimum = 0ms, Maximum = 0ms, Average = 0ms
(config)#exit
#show mac-address-table C:>ipconfig /dg 10.0.0.10
Mac Address Table
------------------------------------------
Vlan Mac Address Type Ports e-Station2:
---- ----------- ---- ----- C:>
10 000C.9074.9797 DYNAMIC Ethernet0/6 C:>ipconfig /ip 10.0.0.3 255.0.0.0
10 000C.9886.8081 DYNAMIC Ethernet0/5 C:>ipconfig /dg 10.0.0.1
10 000C.8321.7106 DYNAMIC Ethernet0/4 C:>ipconfig /dg 10.0.0.10
10 000C.6686.6632 DYNAMIC Ethernet0/3
10 000C.8064.9150 DYNAMIC Ethernet0/2
10 000C.9001.1327 DYNAMIC Ethernet0/1 e-Station3:
1 000C.3070.1825 DYNAMIC Fa0/26 C:>
C:>ipconfig /ip 10.0.0.4 255.0.0.0
Total Mac Addresses for this criterion: 7 C:>
C:>ipconfig /dg 10.0.0.1
C:>show ipconfig
e-Station1: C:>?
Press Enter to begin ipconfig
C:> ping
C:>? winipcfg
ipconfig show
ping tracert Trace route to destination
winipcfg help
show ver
tracert Trace route to destination dir Shows TFTP Configs
help type View specific TFTP Config
ver telnet
dir Shows TFTP Configs tacacs Add or Edit TACACS database
type View specific TFTP Config net
telnet exit
tacacs Add or Edit TACACS database C:>show ip config
net ^
exit % Invalid input detected at '^' marker.
C:>ipconfig /ip 10.0.0.2 255.0.0.0
C:>ipconfig /dg 10.0.0.1 C:>show ?
C:>ping 10.0.0.4 <name> Name of your TFTP config
Pinging 10.0.0.4 with 32 bytes of data: tftp-configs
C:>ip config
Reply from 10.0.0.4: bytes=32 time=60ms TTL=241 ^
Reply from 10.0.0.4: bytes=32 time=60ms TTL=241 % Invalid input detected at '^' marker.
Reply from 10.0.0.4: bytes=32 time=60ms TTL=241

7 8
C:>ipconfig e-Station5:
C:>
HELP C:>ipconfig /ip 10.0.0.6 255.0.0.0
Manipulates ip address for Workstation. C:>ipconfig /dg 10.0.0.1
C:>ipconfig
IPCONFIG [/ip] [/dg]
/ip Adds the ip address and subnet mask to the workstation HELP
/dg Adds the default gateway to the workstation Manipulates ip address for Workstation.
Examples: IPCONFIG [/ip] [/dg]
¢ ipconfig /ip 157.1.1.12 255.0.0.0 /ip Adds the ip address and subnet mask to the workstation
¢ ipconfig /dg 157.1.1.1 /dg Adds the default gateway to the workstation
Boson BOSS 5.0 IP Configuration Examples:
Ethernet adapter Local Area Connection: ¢ ipconfig /ip 157.1.1.12 255.0.0.0
IP Address. . . . . . . . . . . . : 10.0.0.4 ¢ ipconfig /dg 157.1.1.1
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1 Boson BOSS 5.0 IP Configuration
Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . : 10.0.0.6
You can also use winipcfg to configure the IP Address Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1
C:>ipconfig /dg 10.0.0.10

e-Station4: You can also use winipcfg to configure the IP Address


Press Enter to begin
C:> C:>ipconfig /dg 10.0.0.10
C:>ipconfig /ip 10.0.0.5 255.0.0.0
C:>ipconfig /dg 10.0.0.1 e-Station6:
C:>ipconfig C:>
C:>ipconfig /ip 10.0.0.7 255.0.0.0
HELP C:>ipconfig /dg 10.0.0.1
Manipulates ip address for Workstation. C:>ipconfig
IPCONFIG [/ip] [/dg] HELP
/ip Adds the ip address and subnet mask to the workstation Manipulates ip address for Workstation.
/dg Adds the default gateway to the workstation
IPCONFIG [/ip] [/dg]
Examples: /ip Adds the ip address and subnet mask to the workstation
¢ ipconfig /ip 157.1.1.12 255.0.0.0 /dg Adds the default gateway to the workstation
¢ ipconfig /dg 157.1.1.1
Examples:
Boson BOSS 5.0 IP Configuration ¢ ipconfig /ip 157.1.1.12 255.0.0.0
Ethernet adapter Local Area Connection: ¢ ipconfig /dg 157.1.1.1
IP Address. . . . . . . . . . . . : 10.0.0.5
Subnet Mask . . . . . . . . . . . : 255.0.0.0 Boson BOSS 5.0 IP Configuration
Default Gateway . . . . . . . . . : 10.0.0.1 Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . : 10.0.0.7
Subnet Mask . . . . . . . . . . . : 255.0.0.0
You can also use winipcfg to configure the IP Address Default Gateway . . . . . . . . . : 10.0.0.1
C:>ipconfig /dg 10.0.0.10
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]


9 10
/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….

11

Você também pode gostar