You are on page 1of 10

Computer Networks Experiment no.

05(a) Configuring a Serial Connection


Student Name: Roll No:

Objective
Configure a serial interface on each of two routers so they can communicate. Background/Preparation Any router that meets the interface requirements may be used. Possible routers include 800, 1600, 1700, 2500, 2600 routers, or a combination. Start a HyperTerminal session as performed in the Establishing a HyperTerminal session lab. Note: Go to the erase and reload instructions at the end of this lab. Perform those steps on all routers in this lab assignment before continuing. Step 1 Basic Router Configuration a. Configure the router. Connect the routers as shown in the diagram. This lab requires a null serial cable and two rollover or console cables Step 2 Configure the name and passwords for Router 1 a. On Router 1, enter the global configuration mode and configure the hostname as shown in the chart.

b. Configure the console, virtual terminal and enable passwords. Step 3 Configure serial interface Serial 0 From global configuration mode, configure serial interface Serial 0 on Router GAD. Refer to Interface Summary. GAD(config)#interface serial 0 GAD(config-if)#ip address 192.168.15.1 255.255.255.0 GAD(config-if)#clock rate 56000 GAD(config-if)#no shutdown GAD(config-if)#exit GAD(config)#exit Note: Once the interface configuration mode is entered, note the IP address of the interface. Enter the subnet mask. Enter the clock rate only on the DCE side of the device. The command no shutdownturns on the interface. Shutdown is when the interface is off. Step 4 Save the running configuration Save the running configuration to the startup configuration at the privileged EXEC mode: GAD#copy running-config startup-config Note: Save the running configuration for the next time that the router is restarted. The router can be restarted either by a software reload command or a power shutdown. The running configuration will be lost if the running configuration is not saved. The router uses the startup configuration when the router is started. Step 5 Display information about Serial interface 0 on GAD a. Enter the command show interface serial 0 on GAD. Refer to interface chart. GAD#show interface serial 0 Hardware is HD64570 Internet address is 192.168.15.1/24 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/0/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 96 kilobits/sec 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 output buffer failures, 0 output buffers swapped out --More--

This will show the details of interface serial 0. b. List at least three details discovered by issuing this command. c. Serial 0 is ___________________. Line protocol is___________________ d. Internet address is _____________________. e. Encapsulation _________________________ f. To what OSI layer is the Encapsulation referring? _______________________________ g. If the Serial interface was configured, why did the show interface serial 0 say that the interface is down? __________________________________________________________________________ Step 6 Configure the name and passwords for Router 2 a. On the Birmingham router, enter the global configuration mode. Configure hostname, console, virtual terminal and enable passwords as shown in the previous chart.

Step 7 Configure serial interface Serial 0 From the global configuration mode, configure serial interface Serial 0 on Router BHM. Refer to interface chart. BHM(config)#interface serial 0 BHM(config-if)#ip address 192.168.15.2 255.255.255.0 BHM(config-if)#no shutdown BHM(config-if)#exit BHM(config)#exit Step 8 Save the running configuration Save the running configuration to the startup configuration at the privileged EXEC mode: BHM#copy running-config startup-config Step 9 Display information about Serial interface 0 on BHM a. Enter the command show interface serial 0 on BHM. Refer to interface chart. BHM#show interface serial 0 Serial2/0 is up, line protocol is down (disabled) Hardware is HD64570 Internet address is 192.168.15.2/24 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/0/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 96 kilobits/sec 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 output buffer failures, 0 output buffers swapped out

This will show the details of interface serial 0. b. List at least three details discovered by issuing this command. c. Serial 0 is ___________________, line protocol is ___________________ d. Internet address is ___________________ e. Encapsulation ___________________ f. What is the difference in the Line and Protocol status recorded on GAD earlier? Why? __________________________________________________________________________ Step 10 Verify that the serial connection is functioning a.ping the serial interface of the other router. BHM#ping 192.168.15.1 GAD#ping 192.168.15.2 b. From GAD, ping the BHM router serial interface. Does the ping work? ________yes_________ c. From BHM, ping the GAD router serial interface. Does the ping work? _________yes________ d. If the answer is no for either question, troubleshoot the router configurations to find the error. Then ping the interfaces again until the answer to both questions is yes. Upon completion of the previous steps, logoff by typing exit. Turn the router off. Remove and store the cables and adapter.

Computer Networks Experiment no. 05(b)


Configuring Static Router

Student Name:

Roll No:

Objective: Configure routers without using dynamic routing protocol for routing between two routers Background/Preparation: Any router that meets the interface requirements may be used. Possible routers include 800, 1600, 1700, 2500, 2600 routers, or a combination. The following steps are intended to be executed on each router unless specifically instructed otherwise. Start a HyperTerminal session as performed in the Establishing a HyperTerminal session lab. Step 1 Basic Router Configuration a. Configure the router. Connect the routers as shown in the diagram. This lab requires a null serial cable and two rollover or console cables. Step 2 Configure the name and passwords for Router 1 a. On Router 1, enter the global configuration mode and configure the hostname as shown in the chart(GAD). b. Configure the console, virtual terminal and enable passwords.

Step 3 Configure serial interface Serial 0 From global configuration mode, configure serial interface Serial 0 on Router GAD. GAD(config)#interface serial 0 GAD(config-if)#ip address 192.168.15.1 255.255.255.0 GAD(config-if)#clock rate 56000 GAD(config-if)#no shutdown GAD(config-if)#exit GAD(config)#exit Step4 configure ip address on fastethernet0/0 GAD(config)#interface fastEthernet 0 GAD(config-if)#ip address 192.168.14.1 255.255.255.0 GAD(config-if)#no shutdown GAD(config-if)#exit GAD (config)#exit Step5 Go to the second router and configure name and passwords for Router 1 a. On Router 2, enter the global configuration mode and configure the hostname as shown in the chart (BHM). b. Configure the console, virtual terminal and enable passwords. Configuring Router passwords. Step 6 Configure serial interface Serial 0 From global configuration mode, configure serial interface Serial 0 on Router GAD. BHM(config)#interface serial 0 BHM (config-if)#ip address 192.168.15.2 255.255.255.0 BHM (config-if)#no shutdown BHM (config-if)#exit BHM (config)#exit Step7 configure ip address on fastethernet0/0 BHM (config)#interface fastEthernet 0/0 BHM (config-if)#ip address 192.168.16.1 255.255.255.0 BHM (config-if)#no shutdown BHM (config-if)#exit BHM (config)#exit Step8 Configure both the pcs with the ip addresses On pc connected to GAD Ip: 192.168.14.2 Subnet mask: 255.255.255.0 Default gateway: 192.168.15.1

On pc connected to BHM Ip: 192.168.16.2 Subnet mask: 255.255.255.0 Default gateway: 192.168.15.2

Step9 Show route Use show route command on both the routers GAD and BHM and write the results down. _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _________________________________________________ Step 10 Ping Ping the GAD from BHM and BHM from GAD and write the results below _____________________________________________________________________________________ _____________________________________________________________________________________ __________________________________________________________ Step 11 Configure the static route To configure static route we have to go to configure terminal of router and then configure following configuration on routers GAD(config)# ip route 192.168.16.0 255.255.255.0 192.168.15.2 BHM(config)# ip route 192.168.14.0 255.255.255.0 192.168.15.1 Why is static rout configured on both routers? _____________________________________________________________________________________ _____________________________________________________________________________________ __________________________________________________________ Step 12 Show ip route Show ip routes at both GAD and BHM and write down the results below GAD# 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, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.14.0/24 is directly connected, FastEthernet0/0_________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ __________________________________ BHM# show ip route ________________________ BHM#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, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.16.0/24 is directly connected, FastEthernet0/0_________________________________________________________________________ _____________________________________________________________________________________ _____________________________________________________________________________________ _____________________________________

Step 13 Ping

Ping Both pcs and write the results down. Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.14.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 47/59/63 ms _____________________________________________________________________________________ _______________ ype escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.16.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 31/31/32 ms___________________________________________________________________________________ _____________________________________________

Note: If ping is not successful, review your work in the lab for possible errors.

You might also like