Lab 5
Lab 5
Lab 5
NED University of Engineering & Technology – Department of Computer & Information Systems Engineering
Lab Session 05
OBJECT
Configuring static routes on Cisco routers
• A Routed Protocol is a protocol by which data can be routed. Routed protocols are
IP, AppleTalk, and IPX. In this kind of protocols we require an addressing scheme and
sub netting. Addressing scheme will be used to determine the network to which a host
belongs and to identifying that host on that particular network. All hosts on an
internetwork use the services of a routed protocol.
• A Routing Protocol is different and is only used between routers. It makes possible
for routers to build and maintain routing tables. There are three classes of routing
protocols-
1) Distance Vector,
2) Link State,
3) Hybrid
The simplest method to route packets on a network is static routes. Although dynamic routing
protocols are flexible and adjust to network changes, they do have associated network traffic
which competes for network bandwidth with the user data traffic.
Static routes specify a fixed route for a certain destination network. They need to be
configured on any router that needs to reach a network that it is not directly connected to. The
IOS command used to configure static routes is ip route. The syntax is:
23
Computer Communication Networks Lab Session 5
NED University of Engineering & Technology – Department of Computer & Information Systems Engineering
where:
destination-address is the destination address prefix for the network that we would
like the router to reach
subnet-mask is the subnet mask to be used on the address prefix to match for
destination addresses. Multiple networks may be combined such that the destination-
address and subnet-mask combination matches all hosts on those networks.
ip-address specifies what ip address to forward a packet to if an IP packet arrives with
a destination address that matches the destination-address subnet-mask pair specified
in this command.
Alternatively outgoing-interface specifies which interface the packet should be sent
out of. Adding a static route to an Ethernet or other broadcast interface (for example,
ip route 0.0.0.0 0.0.0.0 Ethernet 1/2) will cause the route to be
inserted into the routing table only when the interface is up. This configuration is not
generally recommended. When the next hop of a static route points to an interface, the
router considers each of the hosts within the range of the route to be directly connected
through that interface, and therefore it will send ARP requests to any destination
addresses that route through the static route.
distance is the optional administrative distance value for the route. If unspecified the
default value is 1.
tag value can be used as a "match" value for controlling redistribution via route maps.
permanenet specifies that the route will not be removed even if the interface shuts
down.
DTE/DCE
DCE and DTE are the interfaces. The DCE-DTE connection between routers is referred to as
a null serial cable DCE(data communication equipment) and DTE (Data terminal equipment).
DCE is located at the service provider end while the DTE is attached device.
The services that are given to the DTE is often accessed via modems or channel service
unit/data service unit(CSU/DSU). DCE provides clocking and DTE receives the clock
PROCEDURE
1. Connect the network as shown in the network diagram.
2. Configure appropriate ip addresses and clock rates(if needed) on the router interfaces
as specified in the network diagram.
4. On R2 enter:
ip route 172.16.10.0 255.255.255.0 192.168.10.1
ip route 172.16.20.0 255.255.255.0 192.168.20.2
5. On R3 enter:
24
Computer Communication Networks Lab Session 5
NED University of Engineering & Technology – Department of Computer & Information Systems Engineering
6. After that verify the static routes by entering the following commands in the
privilege mode:
router# sh ip route
EXERCISES
1. Run the command show IP route and write its output.
1. What is the default administrative distance of static route? Write the IP route command to
modify the same.
3. Create a loop back interface on R3 and assign an IP address 10.1.0.1 /16 to it. Now add
static routes to each of the other routers to reach this interface. Verify your work by pinging
the newly created interface from routers R1 and R2 respectively.
25