Routing Protocol and Routed Protocol: Lab #5 IP Routing I
Routing Protocol and Routed Protocol: Lab #5 IP Routing I
through an internetwork.
Once all routers know about all networks, a routed protocol can be used to
send user data (packets) through the established enterprise . Routed protocols
are assigned to an interface and determine the method of packet delivery.
Routing basis
The term routing is used for taking a packet from one device and sending
it through the network to another device on a different network. Routers do
not really care about hosts - they only care about networks and the best path
to each network.
The logical network address of the destination host is used to get packets to
a network through a routed network, and then the hardware address of the host
is used to deliver the packet from a router to the correct destination host.
If a network is not directly connected to the router, then the router must
use one of two ways to learn how to get to the remote network: static
routing, meaning that someone must hand-type all network locations into
the routing table, or something called dynamic routing (next lab ).
Lab #5 IP Routing I : Static Routing & Default routing
Static Routing
Static routing occurs when you manually add routes in each router’s
routing table. There are pros and cons to static routing, but that is true for all
routing processes.
2
Lab #5 IP Routing I : Static Routing & Default routing
Default Routing
We use default routing to send packets with a remote destination network
not in the routing table to the next-hop router. You should only use default
routing on stub networks—those with only one exit path out of the network.
Where:
fa0/0 isthe name of the interface.
192.168.1.129 is the IP address for interface fa0/0.
255.255.255.192 is the subnet mask being used on the network that
connected directly to the interface.
no shutdown to start up the interface.
3
Lab #5 IP Routing I : Static Routing & Default routing
Run the same commands for all routers interfaces and assign
each interface an appropriate IP/mask pair.
Now we start routing …
Network 10 is connected directly to Router 3 and no other subnets is
connected to Router 3, so we can configure default route on it using
the following command:
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.221
Where:
0.0.0.0 is the destination network IP [0.0.0.0 in case of default routing]
0.0.0.0 is the subnet mask being used on the destination network.
192.168.1.221 is the address of the next-hop router that will receive
the packet and forward it to the destination network.
For the other routers, we cannot implement default routing since each
of them is connected to more than one network. In this case, we use
static routing.
We can configure static route on router0 as follow:
Router(config)#ip route 192.168.1.64 255.255.255.192 192.168.1.214
Where:
192.168.1.64 is the destination network we wants to send packets to it.
255.255.255.192 is the subnet mask being used on the destination network.
192.168.1.214 is the address of the next-hop router that will receive the
packet and forward it to the destination network.
Configuring all other static routes on router0:
4
Lab #5 IP Routing I : Static Routing & Default routing
Alternatively, by using the Inspect tool from the right panel, and
select “Routing Table” from the menu:
5
Lab #5 IP Routing I : Static Routing & Default routing
Note: to tell the cisco router to Stops looking for meaning for wrong written
words while configuring Cisco router type:
“Corp(config)#no ip domain-lookup”
Another quick note: to mention that when (if) the packet is lost on the
way back to the originating host, you will typically see a “Request timed
out” message because it is an unknown error.
If the error occurs because of a known issue, such as if a route is not in the
routing table on the way to the destination device, you will see a
“Destination host unreachable” message. This should help you determine if
the problem occurred on the way to the destination or on the way.
6
Lab #5 IP Routing I : Static Routing & Default routing
7
Lab #5 IP Routing I : Static Routing & Default routing
Exercise:
For the network shown below, assign an appropriate IP address for each
host and router interface. Then configure all routers and implement all
necessary static/default routes. Try to review routing tables on all routers
and test the connectivity of your network using “ping” command before
send the exercise file to AT’s email.