Routing
Routing
Malaka Pathirana
MSc – Cyber Security (Reading), BSc in IT | Cisco Certified CCNA Instructor
Static Routing
When to Use Static Routes
Any packets
not matching
route entries
are forwarded
to 172.16.2.2
ip route Command
Configure a Directly Connected Static Route
▪ Use the exit interface to specify next-hop so
no other lookups are required
▪ Administrative distance of static route is 1
Configure a Fully Specified Static Route
▪ Both the exit interface and the next-hop IP
address are specified
▪ When the exit interface is an Ethernet
network, the fully specified static route is
used
Default Static Route
▪ Default static routes are commonly used when connecting:
▪ Default route is used when no other routes in the routing table match the destination IP
Dynamic Routing
Dynamic Routing Protocols
▪ Routing Protocols are used to facilitate the exchange of routing information between routers.
Automatically share information about remote networks Part of a router’s resources are dedicated for protocol
operation, including CPU time and network link bandwidth
Determine the best path to each network and add this Times when static routing is more appropriate
information to their routing tables
Compared to static routing, dynamic routing protocols require
less administrative overhead
Help the network administrator manage the time-consuming
process of configuring and maintaining static routes
Dynamic Routing Protocols Uses
handle routing inside the AS. However, only one interdomain routing
protocol handles routing between AS.
Regional Internet Registry (RIR)
RIR Located Service Region
▪ Link state protocols send information about directly connected links to all the routers in the network
▪ Distance vector protocols send their entire routing table to directly connected neighbours.
▪ Routing Table Calculation: Routers iteratively update their routing tables by exchanging information
with neighbours. The Bellman-Ford algorithm calculates the shortest path based on each destination's
minimum cumulative distance (hop count).
▪ Routing Updates: Distance vector routers periodically send their routing tables to neighbouring
routers. Updates include information about all known destinations.
▪ Convergence Time: Distance vector routing may experience longer convergence time than link state
routing. It takes time for routers to exchange information, update routing tables, and propagate
changes throughout the network.
▪ Scalability: Distance vector routing protocols, such as RIP (Routing Information Protocol), are less
scalable and may face challenges in larger networks due to the continuous exchange of large routing
tables.
Routing Metrics
▪ Routing metrics are parameters or factors used by routing algorithms to determine the
best path for forwarding data packets between network nodes. These metrics measure the
characteristics of network links or paths and influence the routing decisions routers make.
show ip protocols – displays IPv4 routing show ip route – displays RIP routes
protocols configured on the router. installed in the routing table.
Enable and Verify RIPv2
▪ RIP updates:
• Are forwarded out all RIP-enabled
interfaces by default.
• Only need to be sent out interfaces
connected to other RIP-enabled
routers.
▪ Sending RIP updates to LANs wastes
bandwidth and resources and is a
security risk.
▪ Use the passive-interface router
configuration command to stop routing
updates out of the interface. Still allows
that network to be advertised to other
routers.
Propagate a Default Route
1989
1988 updated in
2008
Features of OSPF
Components of OSPF
Components of OSPF (cont.)
▪ Elect the Designated Router (DR) and Backup Designated Router (BDR) on
multiaccess networks like Ethernet and Frame Relay.
Hello Packet Intervals
▪ Dead interval is the period that the router waits to receive a Hello packet before
declaring the neighbour down
▪ Router floods the LSDB with information about down neighbors out all OSPF-
enabled interfaces
▪ Reach convergence
▪ Sending out unneeded messages on a LAN affects the network in three ways:
▪ Inefficient Use of Bandwidth
▪ Inefficient Use of Resources
▪ Increased Security Risk
▪ The Passive Interface feature helps limit the scope of routing updates advertisements.
Configuring Passive Interfaces
Use the passive-interface router configuration mode command to prevent the transmission
of routing messages through a router interface but still allow that network to be advertised to
other routers.
OSPF Metric = Cost
Cost = reference bandwidth / interface bandwidth
(default reference bandwidth is 10^8)
The cost of an OSPF route is the accumulated value from one router to the destination
network.
Adjusting the Reference Bandwidth
▪ Use the command - auto-cost reference-bandwidth
▪ Must be configured on every router in the OSPF domain
▪ Notice that the value is expressed in Mb/s:
▪ Gigabit Ethernet - auto-cost reference-bandwidth 1000
▪ 10 Gigabit Ethernet - auto-cost reference-bandwidth 10000
Default Interface Bandwidths
On Cisco routers, the default bandwidth on most serial interfaces is set to 1.544 Mb/s.
Adjusting the Interface Bandwidths
Manually Setting the OSPF Cost
Both the bandwidth interface command and the ip ospf cost interface command achieve the same
result: to provide an accurate value for use by OSPF in determining the best route.
Verify OSPF Neighbors
Verify that the router has formed an adjacency with its neighbouring routers.
OSPFv3
Similarities Between OSPFv2 to OSPFv3
Differences Between OSPFv2 to OSPFv3
OSPFv3 Network Topology
OSPFv3 Network Topology (cont.)
Link-Local Addresses