Lecture - 7 - Routing Basics
Lecture - 7 - Routing Basics
Lecture - 7 - Routing Basics
Routing Basics
IP Routing in a Larger
Network
IP Routing in a Larger
Network
IP Routing in a Larger
Network
IP Routing in a Larger
Network
Lab_A Configuration
To configure the Lab_A router, you just need to add an IP
address to interface FastEthernet 0/0 as well as the serial
0/0. Configuring the hostnames of each router will make
identification easier. And you can set the interface
descriptions, banner, and router passwords too.
IP Routing in a Larger
Network
IP Routing in a Larger
Network
IP Routing in a Larger
Network
IP Routing in a Larger
Network
Lab_C#sh ip route
[output cut]
Gateway of last resort is not set
C 192.168.50.0/24 is directly connected, FastEthernet0/0
C 192.168.40.0/24 is directly connected, Serial0/0
Lab_C#
Static Routing
Static routing occurs when you manually add routes in
each routers routing table. There are pros and cons to
static routing, but thats true for all routing processes
Static Routing
Static Routing
Static Routing
Static Routing
Static Routing
Static Routing
look at a sample static route and see,what we can find out about it.
Router(config)#ip route 172.16.3.0 255.255.255.0 192.168.2.4
The ip route command tells us simply that it is a static route.
172.16.3.0 is the remote network we want to send packets to.
255.255.255.0 is the mask of the remote network.
192.168.2.4 is the next hop, or router, we will send packets to.
However, if the static route looked like this:
Router(config)#ip route 172.16.3.0 255.255.255.0 192.168.2.4 150
The 150 at the end changes the default administrative distance (AD)
of 1 to 150
Static Routing
Static Routing
Static Routing
After the router is configured, you can type show runningconfig and show ip route to see the static routes:
Lab_A#sh ip route
[output cut]
S 192.168.50.0 [1/0] via 192.168.20.2
S 192.168.40.0 [1/0] via 192.168.20.2
S 192.168.30.0 [1/0] via 192.168.20.2
C 192.168.20.0 is directly connected, Serial 0/0
C 192.168.10.0 is directly connected, FastEthernet0/0
Static Routing
Static Routing
Lab_B
Lab_C
Lab_C(config)#ip route 192.168.30.0 255.255.255.0 192.168.40.1
Lab_C(config)#ip route 192.168.20.0 255.255.255.0 192.16.40.1
Lab_C(config)#ip route 192.168.10.0 255.255.255.0 192.168.40.1
Static Routing
All the routers have the correct routing table, and all the
routers and hosts should be able to communicate without a
problem for now. But if you add even one more network or
another router to the internetwork, youll have to update all
routers routing tables by hand. This isnt a problem at all if
youve got a small network, but its way too time-consuming a
task if youre dealing with a large internetwork.
Verifying Your
Configuration
Default Routing
Default Routing
Default Routing
Default Routing
If you look at the routing table now, youll see only the two
directly connected networks plus an S*, which indicates that
this entry is a candidate for a default route.
Lab_C#sh ip route
[output cut]
Gateway of last resort is 192.168.40.1 to network 0.0.0.0
C 192.168.50.0 is directly connected, FastEthernet0/0
C 192.168.40.0 is directly connected, Serial0/0
S* 0.0.0.0/0 [1/0] via 192.168.40.1
Default Routing
Default Routing
Default Routing
Default Routing
Default Routing
Default Routing
Corp#sh ip route
[output cut]
Gateway of last resort is 10.1.5.5 to network 0.0.0.0
R 10.1.3.0 [120/1] via 101.2.2, 00:00:00, Serial 0/0
C 10.1.2.0 is directly connected, Serial0/0
C 10.1.5.0 is directly connected, Serial0/1
C 10.1.6.0 is directly connected, Fastethernet0/0
R* 0.0.0.0/0 [120/0] via 10.1.5.5, 00:00:00 Serial 0/1
Dynamic Routing
Administrative Distances
The administrative distance (AD) is used to rate the
trustworthiness of routing information received on a router
from a neighbor router. An administrative distance is an
integer from 0 to 255, where 0 is the most trusted and 255
means no traffic will be passed via this route.
If a router receives two updates listing the same remote
network, the first thing the router checks is the AD. If one
of the advertised routes has a lower AD than the other, then
the route with the lowest AD will be placed in the routing
table.
Routing Protocols
Link state In link-state protocols, also called shortest-pathfirst protocols, the routers each create three separate tables.
One of these tables keeps track of directly attached
neighbors, one determines the topology of the entire
internetwork, and one is used as the routing table. Linkstate
routers know more about the internetwork than any
distance-vector routing protocol.
OSPF is an IP routing protocol that is completely link state.
Link state protocols send updates containing the state of
their own links to all other routers on the network
Hybrid Hybrid protocols use aspects of both distance vector
and link statefor example,EIGRP.
Distance-Vector
Routing Protocols
Routing Loops