Lab - Humber College

advertisement
Humber College
Post Graduate Wireless Program
Broadband Communications (WLS 701)
Lab# 2
INTERODUCTION TO THE ROUTER AND LAYER-3 ROUTINGS
Objective:To familiarize with the basic routing commands and functions of CISCO routers
such as assigning IP address to the router interfaces, static routing, dynamic
routing like RIP protocol
Equipments Used
Cisco 1600 series routers
Console cable
Equipment Setup:-
S0
10.10.10.1
S1, 20.20.20.1
R2
S0. 20.20.20.2
S0, 10.10.10.2
R1
R3
Figure-1 Router set up
Procedure and Observations
Part –A: Assigning IP address to Router Interface
1. Connect the three Routers as shown in Figure-1
2. Connect the console cable to each router
3. One end of the serial cable is DCE site and other end of the cable is
DTE, DCE is responsible for clocking. You must provide the clock
rate for DCE side of the cable as follows. (For example if the DCE site
of the cable is connected to the serial interface 0/0/0 of R1 router
assign the clock rate as follows)
R1> enable
Type the password if any otherwise just press enter key, you will
get the following privilege mode command prompt.
1
R1#
Type show run command at privilege mode as follow
R1#show run
It will show you the existing configuration. In order to erase the existing set
up and reset the configuration of the router, type the following command:
R1# erase startup-config
Then it will ask you the following confirmation
Erasing the nvram filesystem will remove all configuration files! Continue?
[confirm]
Now type “y” for yes and press enter key
Then type “reload” command at the privilege mode as follows and
then enter key.
Router2#reload
It will take some time to bring the router up and running. When the router
is booting up it will ask you the following question:
Would you like to enter the initial configuration dialog? [Yes/no]:
Type “N” for no… then it will bring up the factory default setting rather than
you assign the default parameters.
The router is now reset and will display the following prompt.
Router>
Type “enable “command and press enter key to get the privilege mode
Router>enable
Router#
Now type “configure terminal” at command prompt to assign a name for
your router
Router# configure terminal
2
Router(config)#hostname R1 ………..press enter key
Now you will get the following global configuration mode
R1(config)#
R1(config)#interface serial 0/0/0
R1(config-if)# clockrate 56000
R1(config-if)#end
R1#
4. To assign the IP address for the interface on the R1 router, execute
following commands.
R1# configure terminal
R1(config)# interface serial 0/0/0
R1(config-if)# ip address 10.10.10.2 255.255.255.0
R1(config-if) # end
R1#
5. Test this interface and examine weather interface is up or down
using the following command
R1#show interface serial 0/0/0
What is the status of the interface?
Capture your screen output
6. You may execute the following commands to bring up this interface
R1# configure terminal
R1(config)# interface serial 0/0/0
R1(config-if)# no shutdown
R1(config-if)# end
R1#
Check the interface status again using following command
R1#show ip interface serial 0/0/0
What is the status of the interface?
Capture your screen output
3
What does “no shutdown” command do?
Follow the same procedure to assign the IP addresses for the
interfaces on other two routers (R2 and R3), remember that R2 has
two inter faces instead of one as in R1 router.
Show the steps you performed for Router 2 and Router 3 below:
7. Test the connectivity between directly connected interface of routers
using the ping command (for example ping ip address of 10.10.10.1)
R1#ping 10.10.10.1
Are you successful on pinging?
Capture your outputs
If you are not successful on pinging troubleshot and capture the
output again
4
8. Test the connectivity between interface of router R3 using the ping
command (for example ping ip address of 20.20.20.2)
R1# ping 20.20.20.2
Were you able to ping?
If not why?
9. Static Routing
Assign the static route on router R1 and R3
For R1 router
R1#config terminal
R1(config)#ip route 20.20.20.0 255.255.255.0 10.10.10.1
R1(config)# exit
For R3 router
R3#config terminal
R3(config)#ip route 10.10.10.0 255.255.255.0 20.20.20.1
R3(config)# exit
Now again test the connectivity between R1 and R3 routes using the
ping command
R1# ping 20.20.20.2
Can the ping command return the successful response?
Capture your outputs
See the routing table of the each router using “show ip route”
command
5
R1# show ip route
Capture the output for Router 1
Capture the output for Router 2
Capture the output for Router 3
10. Dynamic routing
To assign the dynamic route first remove the static route using
following commands
R1# config terminal
R1(config)#no ip route 20.20.20.0 255.255.255.0 10.10.10.1
R1(config)# exit
Then, we add dynamic routing using following command
For R1 router
R1# config terminal
R1(config) #router rip
R1(config-router)# network 10.10.10.0
R1(config-router)# end
For R2 router
R2# config terminal
R2(config) #router rip
R2(config-router)# network 10.10.10.0
6
R2(config-router)# network 20.20.20.0
R2(config-router)# end
For R3 router
R2# config terminal
R2(config) #router rip
R2(config-router)# network 20.20.20.0
R2(config-router)# end
Test the connectivity between routers R1, R2 and R3 using ping
commands
R1# ping 20.20.20.2
Did the ping command work successfully?
Capture your outputs
See the routing table of the each router using show ip route
command
R1# show ip route
Capture the output for Router 1
Capture the output for Router 2
Capture the output for Router 3
7
How many networks are shown connected?
How many networks are shown to be statically connected?
Question:1. What layer router functions on internet protocol stack?
2. What are the differences between static routing and dynamic routing?
3. What are the different types of dynamic routing protocols available?
8
Download