ACN Practical 7th Sem

40
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:-

Transcript of ACN Practical 7th Sem

Page 1: ACN Practical 7th Sem

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

Page 2: ACN Practical 7th Sem

Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname 11(config)#hostname R1R1(config)#interface s0/0R1(config-if)#clock rate 64000R1(config-if)#no shut08:48:26 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up08: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>ENABLERouter#configConfiguring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface s0/0R2(config-if)#no shut08:57:23 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up08:57:23 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#

Output:-

Router 1:-

R1>enableR1#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port IDR2 Ser 0/0 170 R 2621 Ser 0/0

Page 3: ACN Practical 7th Sem

R1#

Router 2:-

R2>enableR2#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability Platform Port IDR1 Ser 0/0 170 R 2621 Ser 0/0R2#

Page 4: ACN Practical 7th Sem

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:-

Page 5: ACN Practical 7th Sem

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.101.1 255.255.255.0R1(config-if)#no shut09:26:30 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up09:26:30 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#interface s0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shut09:27:45 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up09: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>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168.100.1 255.255.255.0R2(config-if)#no shut09:31:25 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up09:31:25 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#interface s0/0R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shut

Page 6: ACN Practical 7th Sem

09:34:20 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up09:34:20 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#

Host A Configuration:-

Host B Configuration:-

Page 7: ACN Practical 7th Sem

Output:-

Host A Console:-

Packet transferred:-

Page 8: ACN Practical 7th Sem
Page 9: ACN Practical 7th Sem

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

Page 10: ACN Practical 7th Sem

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.101.1 255.255.255.0R1(config-if)#no shut10:06:53 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up10:06:53 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#interface s0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shut10:07:39 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up10:07:39 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R1(config-if)#exitR1(config)#ip route 192.168.100.0 255.255.255.0 192.168.1.2R1(config)#

Router R2 Configuration:-

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168.100.1 255.255.255.0R2(config-if)#no shut10:11:37 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up10:11:37 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#interface s0/0R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shut10:12:16 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

Page 11: ACN Practical 7th Sem

10:12:16 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#ip route 192.168.101.0 255.255.255.0 192.168.1.1R2(config)#

Host A Configuration:-

Host B Configuration:-

Output:-

Host A Console:-

Page 12: ACN Practical 7th Sem

Packets :-

Page 13: ACN Practical 7th Sem

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!

Page 14: ACN Practical 7th Sem

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.101.1 255.255.255.0R1(config-if)#no shut20:09:27 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up20:09:27 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#interface s0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shut20:10:45 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up20:10:45 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R1(config-if)#exitR1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2R1(config)#exitR1#

Router R2 Configuration:-

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168.100.1 255.255.255.0R2(config-if)#no shut20:14:36 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up20:14:36 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#interface s0/0R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shut20:15:10 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

Page 15: ACN Practical 7th Sem

20:15:10 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1R2(config)#exitR2#

Host A Configuration:-

Host B Configuration:-

Output:-

Page 16: ACN Practical 7th Sem

Host A Console:-

Packets:-

Page 17: ACN Practical 7th Sem
Page 18: ACN Practical 7th Sem

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!

Page 19: ACN Practical 7th Sem

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.101.1 255.255.255.0R1(config-if)#no shut15:53:59 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up15:53:59 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#interface s0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 64000R1(config-if)#no shut15:56:01 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up15:56:01 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R1(config-if)#exitR1(config)#router ripR1(config-router)#network 192.168.1.0R1(config-router)#network 192.168.101.0R1(config-router)#exitR1(config)#

Router R1 Configuration:-

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168.100.1 255.255.255.0R2(config-if)#no shut16:02:43 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up16:02:43 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#interface s0/0R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shut

Page 20: ACN Practical 7th Sem

16:03:12 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up16:03:12 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#router ripR2(config-router)#network 192.168.1.0R2(config-router)#network 192.168.100.0R2(config-router)#exitR2(config)#exitR2#

Host A Configuration:-

Host A Configuration:-

Output:-

Page 21: ACN Practical 7th Sem

Packets:-

Page 22: ACN Practical 7th Sem

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

Page 23: ACN Practical 7th Sem

Press RETURN to get started

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.101.1 255.255.255.0R1(config-if)#no shut10:10:05 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up10:10:05 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#interface s0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shut10:10:37 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up10:10:37 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R1(config-if)#exitR1(config)#router igrp 100R1(config-router)#network 192.168.1.0R1(config-router)#network 192.168.101.0R1(config-router)#exitR1(config)#

Router R2 Configuration:-

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168.100.1 255.255.255.0R2(config-if)#no shut10:14:27 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up10:14:27 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#interface s0/0

Page 24: ACN Practical 7th Sem

R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shut10:16:03 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up10:16:03 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#router igrp 100R2(config-router)#network 192.168.1.0R2(config-router)#network 192.168.100.0R2(config-router)#exitR2(config)#exitR2#

Host A Configuration:-

Host B Configuration:-

Output:-

Page 25: ACN Practical 7th Sem

Host A Console:-

Packets:-

Page 26: ACN Practical 7th Sem

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.

Page 27: ACN Practical 7th Sem

Router R1 Configuration:-

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.101.1 255.255.255.0R1(config-if)#no shut11:11:40 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up11:11:40 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#interface s0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shut11:12:18 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up11:12:18 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R1(config-if)#interface loopback0R1(config-if)#ip address 10.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#router ripR1(config-router)#network 192.168.101.0R1(config-router)#network 192.168.1.0R1(config-router)#network 10.0.0.0R1(config-router)#exitR1(config)#

R1>show ip routeCodes: 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

Page 28: ACN Practical 7th Sem

10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Loopback0C 192.168.101.0/24 is directly connected, FastEthernet0/0C 192.168.1.0/24 is directly connected, Serial0/0R 192.168.100.0 [120/1] via 192.168.1.2, 00:00:27, Serial0/0R1>

Router R2 Configuration:-

Router Con0 is now available

Press RETURN to get started!

Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/ZRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168.100.1 255.255.255.0R2(config-if)#no shut11:18:04 %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up11:18:04 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#interface s0/0R2(config-if)#ip address 192.168.1.2 255.255.255.0R2(config-if)#no shut11:18:36 %LINK-3-UPDOWN: Interface Serial0/0, changed state to up11:18:36 %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

R2(config-if)#exitR2(config)#router ripR2(config-router)#network 192.168.100.0R2(config-router)#network 192.168.1.0R2(config-router)#exitR2(config)#exitR2#disableR2>show ip routeCodes: 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

Page 29: ACN Practical 7th Sem

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnetsR 10.1.1.0 [120/1] via 192.168.1.1, 00:00:30, Serial0/0R 192.168.101.0 [120/1] via 192.168.1.1, 00:00:30, Serial0/0C 192.168.100.0/24 is directly connected, FastEthernet0/0C 192.168.1.0/24 is directly connected, Serial0/0R2>

Host A Configuration:-

Host B Configuration:-

Output:-

Page 30: ACN Practical 7th Sem

Host A Console:-

Packets:-