Two Basic Methods: Lab Manual Section 1: Static vs. Dynamic Routing
Two Basic Methods: Lab Manual Section 1: Static vs. Dynamic Routing
Two Basic Methods: Lab Manual Section 1: Static vs. Dynamic Routing
RouterA will have the 172.16.0.0/16 and 172.17.0.0/16 networks in its routing table as directly-
connected routes. To add a static route on RouterA, pointing to the 172.18.0.0/16 network off of
RouterB:
RouterA(config)# ip route 172.18.0.0 255.255.0.0 172.17.1.2
Notice that we point to the IP address on RouterB’s fa0/0 interface as the next-hop address.
Likewise, to add a static route on RouterB, pointing to the 172.16.0.0/16 network off of RouterA:
RouterB(config)# ip route 172.16.0.0 255.255.0.0 172.17.1.1
To remove a static route, simply type no in front of it:
RouterA(config)# no ip route 172.18.0.0 255.255.0.0 172.17.1.2
On point-to-point links, an exit-interface can be specified instead of a nexthop address. Still
using the previous diagram as an example:
RouterA(config)# ip route 172.18.0.0 255.255.0.0 fa0/1
RouterB(config)# ip route 172.16.0.0 255.255.0.0 fa0/0
A static route using an exit-interface has an Administrative Distance of 0, as opposed to the
default AD of 1 for static routes. An exit-interface is only functional on a point-to-point link, as
there is only one possible next-hop device.
RIPv2 overcomes the limitations of RIPv1 by including the subnet mask in its routing updates.
By default, Cisco routers will use RIPv1. To change to
Version 2, you must type:
Router(config)# router rip
Router(config-router)# version 2
Thus, the configuration of Router A would be:
RouterA(config)# router rip
RouterA(config-router)# version 2
RouterA(config-router)# network 10.1.5.0
RouterA(config-router)# network 10.3.5.0
Despite the fact that RIPv2 is a classless routing protocol, we still specify networks at their
classful boundaries, without a subnet mask. However, when Router A sends a RIPv2 update to
Router B via Serial0, by default it will still summarize the 10.1.5.0/16 and 10.3.5.0/16 networks
Section 3:
Interior Gateway Routing Protocol
IGRP (Interior Gateway Routing Protocol)
IGRP is a Cisco-proprietary Distance-Vector protocol, designed to be more scalable than RIP, its
standardized counterpart. IGRP adheres to the following Distance-Vector characteristics:
IGRP sends out periodic routing updates (every 90 seconds).
IGRP sends out the full routing table every periodic update.
IGRP uses a form of distance as its metric (in this case, a composite of bandwidth and
delay).
Section Five
Open Shortest Path First
OSPF (Open Shortest Path First)
OSPF is a standardized Link-State routing protocol, designed to scale efficiently to support
larger networks. OSPF adheres to the following Link State characteristics:
OSPF employs a hierarchical network design using Areas.
OSPF will form neighbor relationships with adjacent routers in the same Area.
Instead of advertising the distance to connected networks, OSPF advertises the status of
directly connected links using Link-State Advertisements (LSAs).
OSPF sends updates (LSAs) when there is a change to one of its links, and will only send
the change in the update. LSAs are additionally refreshed every 30 minutes.
OSPF traffic is multicast either to address 224.0.0.5 (all OSPF routers) or 224.0.0.6 (all
Designated Routers).
Types of NAT
Consider the above example. For a connection from HostA to HostB, the NAT addresses are
identified as follows:
The above example demonstrates how the source (SRC) and destination (DST) IP addresses
within the Network-Layer header are translated by NAT.