Você está na página 1de 29

Experiment :- 2

Aim :- To setup a serial connection. Lab Scenario :- Establish a simple serial to serial connection between Router 1 Serial 0 and Router 2 Serial 0. when the serial connection are configured they need one more command that normal Ethernet connection do not. That command is clock rate command. The clock rate command establishes a common rate at which the sending and receiving routers will send data to each other. To verify that your connection is established use command show cdp neighbors.

Router R1 Configuration:Router Con0 is now available Press RETURN to get started! Router>ENABLE Router#config

Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname 1 1(config)#hostname R1 R1(config)#interface s0/0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 08:48:26 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 08:48:26 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)# R1# Router R2 Configuration:Router Con0 is now available Press RETURN to get started! Router>ENABLE Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface s0/0 R2(config-if)#no shut 08:57:23 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 08:57:23 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)# Output:Router 1:R1>enable R1#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme R2 Ser 0/0 170 R R1# Capability Platform Port ID 2621 Ser 0/0

Router 2:R2>enable R2#show cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme R1 Ser 0/0 170 R R2# Capability Platform Port ID 2621 Ser 0/0

Experiment :-4
Aim:- To build a simple network and configure each machine on the network. Lab Scenario:- Host A (on the left) should be setup with an ip address of 192.168.101.2/24 and a default gateway of 192.168.101.1 .Host B (on the right ) should be setup with an ip address of 192.168.100.2/24 and a default gateway of 192.168.100.1 . The Ethernet interface of Router R1 should use an ip address of 192.168.101.1/24 and Serial interface of Router R1 should use an ip address of 192.168.1.1/24. . The Ethernet interface of Router R2 should use an ip address of 192.168.100.1/24 and Serial interface of Router R2 should use an ip address of 192.168.1.2/24.You have DCE cable connected to Router R1.the Serial link should have speed of 64K.configure the devices with host names and make sure that they can ping any device that is directly connected.

Router R1 Configuration:-

Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R1 R1(config)#interface f0/0 R1(config-if)#ip address 192.168.101.1 255.255.255.0 R1(config-if)#no shut 09:26:30 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 09:26:30 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#interface s0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 09:27:45 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 09:27:45 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)# Router R2 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface f0/0 R2(config-if)#ip address 192.168.100.1 255.255.255.0 R2(config-if)#no shut 09:31:25 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 09:31:25 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface s0/0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shut 09:34:20 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

09:34:20 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)#

Host A Configuration:-

Host B Configuration:-

Output:Host A Console:-

Packet transferred:-

Experiment :-5
Aim:- To define a static route between two routers so that all the devices can ping any other device . Lab Scenario:- Host A (on the left) should be setup with an ip address of 192.168.101.2/24 and a default gateway of 192.168.101.1 .Host B (on the right ) should be setup with an ip address of 192.168.100.2/24 and a default gateway of 192.168.100.1 . The Ethernet interface of Router R1 should use an ip address of 192.168.101.1/24 and Serial interface of Router R1 should use an ip address of 192.168.1.1/24. . The Ethernet interface of Router R2 should use an ip address of 192.168.100.1/24 and Serial interface of Router R2 should use an ip address of 192.168.1.2/24.You have a DCE cable connected to Router R1.the Serial link should have speed of 64K.configure the routers with static routes so that all the devices can ping any other device.

v Router R1 Configuration:Router Con0 is now available

Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R1 R1(config)#interface f0/0 R1(config-if)#ip address 192.168.101.1 255.255.255.0 R1(config-if)#no shut 10:06:53 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 10:06:53 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#interface s0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 10:07:39 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 10:07:39 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)#exit R1(config)#ip route 192.168.100.0 255.255.255.0 192.168.1.2 R1(config)# Router R2 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface f0/0 R2(config-if)#ip address 192.168.100.1 255.255.255.0 R2(config-if)#no shut 10:11:37 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 10:11:37 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface s0/0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shut 10:12:16 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

10:12:16 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)#ip route 192.168.101.0 255.255.255.0 192.168.1.1 R2(config)# Host A Configuration:-

Host B Configuration:-

Output:Host A Console:-

Packets :-

Experiment :-6
Aim:- To define a default route between two routers so that all the devices can ping any other device . Lab Scenario:- Host A (on the left) should be setup with an ip address of 192.168.101.2/24 and a default gateway of 192.168.101.1 .Host B (on the right ) should be setup with an ip address of 192.168.100.2/24 and a default gateway of 192.168.100.1 . The Ethernet interface of Router R1 should use an ip address of 192.168.101.1/24 and Serial interface of Router R1 should use an ip address of 192.168.1.1/24. . The Ethernet interface of Router R2 should use an ip address of 192.168.100.1/24 and Serial interface of Router R2 should use an ip address of 192.168.1.2/24.You have a DCE cable connected to Router R1.the Serial link should have speed of 64K.configure the routers with default routes so that all the devices can ping any other device.

Router R1 Configuration:Router Con0 is now available Press RETURN to get started!

Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R1 R1(config)#interface f0/0 R1(config-if)#ip address 192.168.101.1 255.255.255.0 R1(config-if)#no shut 20:09:27 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 20:09:27 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#interface s0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 20:10:45 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 20:10:45 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)#exit R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2 R1(config)#exit R1# Router R2 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface f0/0 R2(config-if)#ip address 192.168.100.1 255.255.255.0 R2(config-if)#no shut 20:14:36 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 20:14:36 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface s0/0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shut 20:15:10 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

20:15:10 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1 R2(config)#exit R2# Host A Configuration:-

Host B Configuration:-

Output:-

Host A Console:-

Packets:-

Experiment :-7
Aim:- To configure a dynamic route(using RIP version 1) between two routers so that all the devices can ping any other device . Lab Scenario:- Host A (on the left) should be setup with an ip address of 192.168.101.2/24 and a default gateway of 192.168.101.1 .Host B (on the right ) should be setup with an ip address of 192.168.100.2/24 and a default gateway of 192.168.100.1 . The Ethernet interface of Router R1 should use an ip address of 192.168.101.1/24 and Serial interface of Router R1 should use an ip address of 192.168.1.1/24. . The Ethernet interface of Router R2 should use an ip address of 192.168.100.1/24 and Serial interface of Router R2 should use an ip address of 192.168.1.2/24.You have a DCE cable connected to Router R1.the Serial link should have speed of 64K.configure the routers with RIP version 1 so that all the devices can ping any other device.

Router R1 Configuration:Router Con0 is now available Press RETURN to get started!

Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R1 R1(config)#interface f0/0 R1(config-if)#ip address 192.168.101.1 255.255.255.0 R1(config-if)#no shut 15:53:59 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 15:53:59 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#interface s0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 15:56:01 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 15:56:01 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)#exit R1(config)#router rip R1(config-router)#network 192.168.1.0 R1(config-router)#network 192.168.101.0 R1(config-router)#exit R1(config)# Router R1 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface f0/0 R2(config-if)#ip address 192.168.100.1 255.255.255.0 R2(config-if)#no shut 16:02:43 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 16:02:43 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface s0/0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shut

16:03:12 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 16:03:12 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)#router rip R2(config-router)#network 192.168.1.0 R2(config-router)#network 192.168.100.0 R2(config-router)#exit R2(config)#exit R2# Host A Configuration:-

Host A Configuration:-

Output:-

Packets:-

Experiment :-8
Aim:- To configure a dynamic route(using IGRP (autonomous system 100)) between two routers so that all the devices can ping any other device . Lab Scenario:- Host A (on the left) should be setup with an ip address of 192.168.101.2/24 and a default gateway of 192.168.101.1 .Host B (on the right ) should be setup with an ip address of 192.168.100.2/24 and a default gateway of 192.168.100.1 . The Ethernet interface of Router R1 should use an ip address of 192.168.101.1/24 and Serial interface of Router R1 should use an ip address of 192.168.1.1/24. . The Ethernet interface of Router R2 should use an ip address of 192.168.100.1/24 and Serial interface of Router R2 should use an ip address of 192.168.1.2/24.You have a DCE cable connected to Router R1.the Serial link should have speed of 64K.configure the routers using IGRP (autonomous system 100) so that all the devices can ping any other device.

Router R1 Configuration:Router Con0 is now available

Press RETURN to get started Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R1 R1(config)#interface f0/0 R1(config-if)#ip address 192.168.101.1 255.255.255.0 R1(config-if)#no shut 10:10:05 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 10:10:05 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#interface s0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 10:10:37 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 10:10:37 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)#exit R1(config)#router igrp 100 R1(config-router)#network 192.168.1.0 R1(config-router)#network 192.168.101.0 R1(config-router)#exit R1(config)# Router R2 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface f0/0 R2(config-if)#ip address 192.168.100.1 255.255.255.0 R2(config-if)#no shut 10:14:27 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 10:14:27 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface s0/0

R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shut 10:16:03 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 10:16:03 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)#router igrp 100 R2(config-router)#network 192.168.1.0 R2(config-router)#network 192.168.100.0 R2(config-router)#exit R2(config)#exit R2# Host A Configuration:-

Host B Configuration:-

Output:-

Host A Console:-

Packets:-

Experiment :-9
Aim:- To configure a dynamic route using RIP and create a loopback interface on router R1. Lab Scenario:- Host A (on the left) should be setup with an ip address of 192.168.101.2/24 and a default gateway of 192.168.101.1 .Host B (on the right ) should be setup with an ip address of 192.168.100.2/24 and a default gateway of 192.168.100.1 . The Ethernet interface of Router R1 should use an ip address of 192.168.101.1/24 and Serial interface of Router R1 should use an ip address of 192.168.1.1/24. . The Ethernet interface of Router R2 should use an ip address of 192.168.100.1/24 and Serial interface of Router R2 should use an ip address of 192.168.1.2/24.You have a DCE cable connected to Router R1.the Serial link should have speed of 64K.configure the routers using RIP so that all the devices can ping any other device. After that create an additional interface loopback 0 on router 1 with ip address 10.1.1.1/24 and include a network statement for RIP.

Router R1 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R1 R1(config)#interface f0/0 R1(config-if)#ip address 192.168.101.1 255.255.255.0 R1(config-if)#no shut 11:11:40 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 11:11:40 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#interface s0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shut 11:12:18 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 11:12:18 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)#interface loopback0 R1(config-if)#ip address 10.1.1.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#exit R1(config)#router rip R1(config-router)#network 192.168.101.0 R1(config-router)#network 192.168.1.0 R1(config-router)#network 10.0.0.0 R1(config-router)#exit R1(config)# R1>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 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR, P - periodic downloaded static route T - traffic engineered route Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 C 192.168.101.0/24 is directly connected, FastEthernet0/0 C 192.168.1.0/24 is directly connected, Serial0/0 R 192.168.100.0 [120/1] via 192.168.1.2, 00:00:27, Serial0/0 R1> Router R2 Configuration:Router Con0 is now available Press RETURN to get started! Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z Router(config)#hostname R2 R2(config)#interface f0/0 R2(config-if)#ip address 192.168.100.1 255.255.255.0 R2(config-if)#no shut 11:18:04 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 11:18:04 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface s0/0 R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config-if)#no shut 11:18:36 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 11:18:36 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R2(config-if)#exit R2(config)#router rip R2(config-router)#network 192.168.100.0 R2(config-router)#network 192.168.1.0 R2(config-router)#exit R2(config)#exit R2#disable R2>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 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR, P - periodic downloaded static route T - traffic engineered route

Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets R 10.1.1.0 [120/1] via 192.168.1.1, 00:00:30, Serial0/0 R 192.168.101.0 [120/1] via 192.168.1.1, 00:00:30, Serial0/0 C 192.168.100.0/24 is directly connected, FastEthernet0/0 C 192.168.1.0/24 is directly connected, Serial0/0 R2> Host A Configuration:-

Host B Configuration:-

Output:-

Host A Console:-

Packets:-

Você também pode gostar