Chapter 1 Introduction to Routing
nvram - startup file
flask - cisco IOS
enable password and enable secret password not need to exist together. If only enable secret password, it already enof
important, if without this line, the user will be granted access to the line without entering a password.
Router#copy running-config startup-config
RIP (Routing Information Protocol)
IGRP (Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
OSPF (Open Shortest Path First)
IS-IS (Intermediate System-to-Intermediate System)
BGP (Border Gateway Protocol)
Note: RIP (versions 1 and 2), EIGRP, and OSPF are discussed in this course. EIGRP and OSPF are also explained in more detail in CCNP, along with IS-IS and BGP. IGRP is a legacy routing protocol and has been replaced by EIGRP. Both IGRP and EIGRP are Cisco proprietary routing protocols, whereas all other routing protocols listed are standard, non-proprietary protocols.
As a packet is forwarded from router to router, the Layer 3 source and destination IP addresses will not change; however, the Layer 2 source and destination data link addresses will change. This process will be examined more closely later in this section.
Best path for RIP - hop count
Best path for OSPF - bandwidth of the link
Chapter 2 Static routing
Two types of cables can be used with Ethernet LAN interfaces:
A straight-through, or patch cable, with the order of the colored pins the same on each end of the cable
A crossover cable, with pin 1 connected to pin 3, and pin 2 connected to pin 6
Straight-through cables are used for:
Crossover cables are used for:
#show ip interface brief
#show interface fastethernet 0/0
Typically, the router is the DTE device and is connected to a CSU/DSU, which is the DCE device. The CSU/DSU (DCE device) is used to convert the data from the router (DTE device) into a form acceptable to the WAN service provider.
Although Cisco serial interfaces are DTE devices by default, they can be configured as DCE devices.
To configure a router to be the DCE device:
1. Connect the DCE end of the cable to the serial interface.
2. Configure the clock signal on the serial interface using the clock rate command.
!!! Note: If a router's interface with a DTE cable is configured with the clock rate command, the IOS will disregard the command and there will be no ill effects.
A stub network is a network accessed by a single route.
R1(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.2
( is at priv mode, not at line mode)
- We will see in the next section that static routes can be configured with an exit interface. This means that they do not need to be resolve using another route entry.
- if in static route, the exit interface column is 'IP', recursive lookup need to be done to get the exit interface
- if the exit interface is 'fa 0/0' or 'serial 0/0/0', x recursive lookup
There is an advantage to utilizing exit interfaces in static routes for both serial point-to-point and Ethernet outbound networks. The routing table process only has to perform a single lookup to find the exit interface instead of a second lookup to resolve a next-hop address.
What are the most common metrics used in IP dynamic routing?
Hop count,bandwidth, delay and cost
The key to this configuration is the /0 mask.
Default routes are very common on routers.
The original static route must be remove before add in anything
Exit interface is down
Let's consider what would happen if an exit interface goes down. For example, what would happen to R1's static route to 22.214.171.124/24 if its Serial 0/0/0 interface went down? If the static route cannot be resolved to an exit interface, in this case Serial 0/0/0, the static route is removed from the routing table.
The rate configured on the DEC determnies the clock rate
A static route that points to the next hop IP will have 1 administrative distance and metric 0
Chapter 3 Intro to dynamic routing protocols
BGP is typically used between ISPs and sometimes between a company and an ISP.
Distance vector protocols work best in situations where:
The network is simple and flat and does not require a special hierarchical design.
The administrators do not have enough knowledge to configure and troubleshoot link-state protocols.
Specific types of networks, such as hub-and-spoke networks, are being implemented.
Worst-case convergence times in a network are not a concern.
In contrast to distance vector routing protocol operation, a router configured with a link-state routing protocol can create a "complete view" or topology of the network by gathering information from all of the other routers.
Link-state routing protocols do not use periodic updates. After the network has converged, a link-state update only sent when there is a change in the topology.
Link-state protocols work best in situations where:
The network design is hierarchical, usually occurring in large networks.
The administrators have a good knowledge of the implemented link-state routing protocol.
Fast convergence of the network is crucial.
Classful routing protocols include RIPv1 and IGRP
Classless routing protocols are RIPv2, EIGRP, OSPF, IS-IS, BGP.
Generally, RIP and IGRP are slow to converge, whereas EIGRP and OSPF are faster to converge.
Each routing protocol uses its own metric. For example, RIP uses hop count, ,IGRP and EIGRP uses a combination of bandwidth and delay, and Cisco's implementation of OSPF uses bandwidth.
All the routing protocols discussed in this course are capable of automatically load balancing traffic for up to four equal-cost routes by default. EIGRP is also capable of load balancing across unequal-cost paths.
Administrative distance (AD) defines the preference of a routing source.
Only a directly connected network has an administrative distance of 0, which cannot be changed.
static route - AD 1
To see the AD value of a directly connected network, use the [route] option.
at 'show ip route', Administrative distance/hop
EIGRP internal route has the most trustworthy administrative distance by default
How many equal cost paths can a dynamic routing protocol use for load balancing by default? 4
when do directly connected networks appear in the routing table? as soon as they addressed and operational at layer 3
20 - eBGP
90- EIGRP (internal)
170 -EIGRP (external)
120 - RIP
Chapter 4 Distance Vector Routing Protocol
Periodic Updates are sent at regular intervals (30 seconds for RIP and 90 seconds for IGRP).
Distance vector routing protocols share certain characteristic :
entire routing table updates
invalid timer : 180s
flush timer : 240s
holddown timer : 180s
Holddown Timer. This timer stabilizes routing information and helps prevent routing loops during periods when the topology is converging on new information. Once a route is marked as unreachable, it must stay in holddown long enough for all routers in the topology to learn about the unreachable network. By default, the holddown timer is set for 180 seconds.
EIGRP uses updates that are:
Non-periodic because they are not sent out on a regular basis.
Partial updates sent only when there is a change in topology that influences routing information.
Bounded, meaning the propagation of partial updates are automatically bounded so that only those routers that need the information are updated.
Note: Collisions are only an issue with hubs and not with switches.
To prevent the synchronization of updates between routers, the Cisco IOS uses a random variable, called RIP_JITTER,
Distance vector routing protocols are simple in their operations. Their simplicity results in protocol drawbacks like routing loops.
There are a number of mechanisms available to eliminate routing loops, primarily with distance vector routing protocols. These mechanisms include:
Defining a maximum metric to prevent count to infinity
Route poisoning or poison reverse
Holddown timers are used to prevent regular update messages from inappropriately reinstating a route that may have gone bad
Holddown timers also help prevent the count to infinity condition.
The split horizon rule says that a router should not advertise a network through the interface from which the update came.
Route poisoning is used to mark the route as unreachable in a routing update that is sent to other routers.
Route poisoning speeds up the convergence process as the information about 10.4.0.0 spreads through the network more quickly than waiting for the hop count to reach "infinity".
Note: Split horizon is enabled by default. However split horizon with poison reverse may not be the default on all IOS implementations.
Features of RIP:
Supports split horizon and split horizon with poison reverse to prevents loops.
Is capable of load balancing up to six equal cost paths . The default is four equal cost paths.
EIGRP features include:
Triggered updates (EIGRP has no periodic updates).
Use of a topology table to maintain all the routes received from neighbors (not only the best paths).
Establishment of adjacencies with neighboring routers using the EIGRP hello protocol.
Support for VLSM and manual route summarization. These allow EIGRP to create hierarchically structured large networks.
RIP and IGRP are distance verctor routing protocols characterized by periodic updates that are broadcast to directly connected neighbours. The entire routing table is sent in the updat.
Three router running a distance-vector routing protocols lost all power, including the baterry backups. When router reload, they will send updates that include only directly connected routes to their directly connected neighbours.
(All note taken from CCNA2 Exploration)