Iprouting
Iprouting
Todd Lammle
CCNA
Routing & Switching Study Guide
SYBEX, A Wiley Brand
Routing basics
Default routing
Review Questions
Routers use routing protocols to dynamically find all networks within the
greater internetwork and to ensure that all routers have the same routing
table.
Routing protocols are also employed to determine the best path a packet
should take through an internetwork to get to its destination most effi-
ciently.
Once all routers know about all networks, a routed protocol can be used
to send user data (packets) through the established enterprise.
Routers don’t really care about hosts. They only care about networks
and the best path to each one of them rather
The logical network address of the destination host is key to getting pack-
ets through a routed network.
It’s the hardware address of the host that’s used to deliver the packet
from a router and ensure it arrives at the correct destination host.
If a network isn’t directly connected to the router, the router must use one of two ways
(i.e static routing or dynamic routing) to learn how to get to the remote network.
192.168.10.0/24
Gig0/0/0 Gig0/1/0
10.10.10.0/30
10.10.10.1
Next hop address:
Exit Interface
at R1 towards R2 Next hop
Default Routing
Remove the static route at SF
router
Add default route at SF router
Verify the configuration
Network Loops ???
Differentiate static vs default
route
CNW CSE4541 IPR
Static Route at Corp Router
The Corp router is connected to three networks. For the Corp router to be able
to route to all networks, the following networks have to be configured into its
routing table:
192.168.10.0/24
192.168.20.0/24
Corp#config t
Corp(config)#ip route 192.168.10.0 255.255.255.0 172.16.10.2 150
Corp(config)#ip route 192.168.20.0 255.255.255.0 s0/1 150
SF# config t
SF(config)#ip route 10.10.10.0 255.255.255.0 172.16.10.1 150
SF(config)#ip route 172.16.10.4 255.255.255.252 172.16.10.1 150
SF(config)#ip route 192.168.20.0 255.255.255.0 172.16.10.1 150
LA#config t
LA(config)#ip route 10.10.10.0 255.255.255.0 172.16.10.5 150
LA(config)#ip route 172.16.10.0 255.255.255.252 172.16.10.5 150
LA(config)#ip route 192.168.10.0 255.255.255.0 172.16.10.5 150
192.168.10.0/24
Gig0/0/0 Gig0/1/0
10.10.10.0/30
10.10.10.1
Next hop address:
Exit Interface
at R1 towards R2 Next hop
LA#config t
LA(config)#no ip route 10.10.10.0 255.255.255.0 172.16.10.5 150
LA(config)#no ip route 172.16.10.0 255.255.255.252 172.16.10.5
150
LA(config)#no ip route 192.168.10.0 255.255.255.0 172.16.10.5 150
LA#config t
LA(config)#ip route 0.0.0.0 0.0.0.0 172.16.10.5
LA#config t
LA(config)#do sho ip route
Dynamic routing is when protocols are used to find networks and update
routing tables on routers.
This is whole lot easier than using static or default routing, but it will cost
you in terms of router CPU processing and bandwidth on network links.
A routing protocol defines the set of rules used by a router when it com-
municates routing information between neighboring routers.
Two types of routing protocols are used in internetworks: interior gateway
protocols (IGPs) and exterior gateway protocols (EGPs).
IGPs are used to exchange routing information with routers in the same
autonomous system (AS). An AS is either a single network or a collec-
tion of networks under a common administrative domain, which basically
means that all routers sharing the same routing-table information are in
the same AS. Examples: RIP, OSPF etc.
EGPs are used to communicate between ASs. An example of an EGP
is Border Gateway Protocol (BGP)
Static Route:
Corp#config t
Corp(config)#ip route 192.168.10.0 255.255.255.0 172.16.10.2 150
Corp(config)#ip route 192.168.20.0 255.255.255.0 s0/1 150
Corp#config t
Corp(config)#router rip
Corp(config-router)#network 10.0.0.0
Corp(config-router)#network 172.16.0.0
Corp(config-router)#version 2
(A) C (C) S
(B) L (D) D
3. If your routing table has a static, an RIP, and an EIGRP route to the same
network, which route will be used to route packets by default?