Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Module 2 - Routing
FLASH MEMORY
• Contains The Operating System (Cisco IOS).
• Flash Memory Is Nonvolatile Computer Memory That Can Be Electrically Stored And Erased.
• Flash Is Used As Permanent Storage For The Operating System, Cisco IOS.
• In Most Models Of Cisco Routers, The IOS Is Permanently Stored In Flash Memory And Copied Into
RAM During The Bootup Process, Where It Is Then Executed By The CPU.
• Some Older Models Of Cisco Routers Run The IOS Directly From Flash.
Network Interfaces
Routers always have lots of network interfaces.
The operating system contains 'drivers' that allow the operating system to access the network
hardware in the interface modules.
Routers will learn which networks are configured on which ports as they start up.
After that, they will 'learn' routes from other routers they are connected to, and learn which interface
to transmit packets on to reach a remote network destination.
• Ethernet
• Fast Ethernet
• Gigabit Ethernet
• Serial interface
• console port
• Auxiliary port
• loopback interface
Ethernet
Ethernet is the traditional technology for connecting wired local area networks (LANs),
Enabling devices to communicate with each other via a protocol
A set of rules or common network language.
An Ethernet cable is the physical, encased wiring over which the data travels.
Fast Ethernet
• Fast Ethernet is a local area network (LAN) transmission standard that provides a data rate of 100
megabits per second (referred to as "100BASE-T").
Gigabit Ethernet
• Gigabit Ethernet is part of the Ethernet family of computer networking and communication standards.
• The Gigabit Ethernet standard supports a theoretical maximum data rate of 1 gigabit per second
(Gbps) (1000 Mbps)
• These cable types follow the 1000BASE-T cabling standard (also called IEEE 802.3ab).
Serial interface
In computer networking, a serial port enables external modems to connect to a PC or network router
via a serial cable.
The term "serial" signifies that data sent in one direction always travels over a single wire within
the cable.
console port
Console port is used to connect a computer directly to a router or switch and manage the router or
switch since there is no display device for a router or switch .
The console port must be used to initially to install routers onto because there is no network
connection initially to connect using SSH, HTTP or HTTPS.
Auxiliary port
The purpose of the auxiliary port is for connecting to an external modem.
Once configured, this modem can be used as a backup demand-dial connection to another location,
(or)
As a way to dial in to the router for troubleshooting purposes should regular connectivity fail.
loopback interface
Most IP implementations support a loopback interface to represent the loopback facility.
Any traffic that a computer program sends on the loopback network is addressed to the same
computer.
The most commonly used IP address on the loopback network is 127.0.0.1 for IPv4 and ::1 for IPv6.
WHY DO I NEED A ROUTER?
FUNCTIONS OF A ROUTER
Restrict broadcasts to the LAN
Console
CAT 5
CAT 5
RJ45
Enter privileged EXEC mode.
Router>enable (>disable)
Router#?
Router#interface?
R1(config)#do #show
Router##show running configuration (sh run)
********************************
!!!AUTHORIZED ACCESS ONLY!!!
********************************
&
Use cisco as the password. When you are finished, exit from line configuration mode.
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#
Use cisco as the password. When you are finished, exit from line configuration mode.
R1(config)#line vty ?
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#
Configure the Serial0/0/0 interface.
Configure the Serial0/0/0 interface with the IP address 192.168.2.1/24. Set the clock
rate to 64000.
Note: The purpose of the clock rate command is explained in Chapter 2: Static
Routes.
Note: The interface will be activated until the serial interface on R2 is configured
and activated
R1(config)#clock set 10:46:03 6 march 2019
R1(config)##show clock
R1#reload
R1#ping ?
Static Routing & Default routing
Types of Routing
1. Static Routing
2. Default Routing
3. Dynamic Routing
1. Static routing is when you statically configure a router to send traffic for particular destinations in preconfigured
directions.
2. Default route is a setting on a computer that defines the packet forwarding rule to use when no specific route can
be determined for a given Internet Protocol (IP) destination address. All packets for destinations not established in
the routing table are sent via the default route.
3. Dynamic routing is when you use a routing protocol such as OSPF, ISIS, EIGRP, and/or BGP to figure out what paths
traffic should take.
Static Routing
Configuring Routes on Cisco Router(Static Routing)
Assign each host(PC) an IP.
Also we have to assign an IP for each interface on the router.
Assign an IP for the Router interface and start it up using the following commands:
#sh ip int bri
R1(config)#interface fa0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
(And do the same thing for the other routers)
Where:
R1#sh ip config
Run the same commands for all routers interfaces and assign each interface an appropriate IP/mask pair.
R1#sh ip route
R1#ip route 192.168.3.0 255.255.255.0 192.168.2.2 (Next hop)
R1#sh ip route
Run the same commands for all routers
Now check the connectivity of the network using “ping” command, or “tracert” command.
Default Routing
Default Routing
#sh ip int bri
Assign an IP for the Router interface and start it up using the following commands:
R2(config)#interface fa0/1
R2(config-if)#ip address 10.0.0.1 255.0.0.0
R2(config-if)#no shutdown
#ip route 0.0.0.0 0.0.0.0 192.168.2.2(next hop)
(And do the same thing for the other router R1)
Where:
0.0.0.0 is the destination network IP [0.0.0.0 in case of default routing]
0.0.0.0 is the subnet mask being used on the destination network.
192.168.2.2 is the address of the next-hop router that will receive the packet and forward it to the
destination network.
Now check the connectivity of the network using “ping” command, or “tracert” command.
Dynamic routing
Dynamic routing uses a dynamic routing protocol to automatically select the best route to put into the
routing table.
So instead of manually entering static routes in the routing table, dynamic routing automatically
receives routing updates, and dynamically decides which routes are best to go into the routing table.
Its this intelligent and hands-off approach that makes dynamic routing so useful.
There are three major types of routing protocols.
• Routing Information Protocols(RIP)
• Interior Gateway Protocol (IGRP)
• Open Shortest Path First (OSPF)
• Exterior Gateway Protocol (EGP)
• Enhanced interior gateway routing protocol (EIGRP)
• Border Gateway Protocol (BGP)
• Intermediate System-to-Intermediate System (IS-IS)
Open Shortest Path First(OSPF)
OSPF (Open Shortest Path First) is a link state routing protocol.
Because it is an open standard, it is implemented by a variety of network vendors.
OSPF will run on most routers that doesn’t necessarily have to be Cisco routers.
Port no. 89
Each OSPF router stores routing and topology information in three tables:
• Neighbor table – stores information about OSPF neighbors
• Topology table – stores the topology structure of a network
• Routing table – stores the best routes
OSPF neighbors
• OSPF routers need to establish a neighbor relationship before exchanging routing
updates.
• OSPF neighbors are dynamically discovered by sending Hello packets out each OSPF-
enabled interface on a router.
• Hello packets are sent to the multicast IP address of 224.0.0.5.
Cmd>ipconfig
#sh ip route
Implementing OSPF R1
#config t
#router ospf 1 (Process ID)
#network 192.168.3.0 0.0.0.255 area 0
#network 192.168.2.0 0.0.0.255 area 0
Implementing OSPF in R2
#config t
#router ospf 1 (Process ID)
#network 192.168.2.0 0.0.0.255 area 0
#network 192.168.1.0 0.0.0.255 area 0 Now Routers can
learn and maintain
#sh ip route their neighbor
#sh ip protocols #sh ip ospf neighbor relation
>ping #sh ip ospf database
Broadcast OSPF Configuration
• All routers should be same series.
• Assign the same network IP address(1.0)
1.3 1.4
To make router as DR we have to change its IP address range
#interface gi0/0
#ip ospf priority 100
Then clear the ospf in all the routers with same command.
OSPF Areas
An OSPF network can be divided into sub-domains called areas.
An area is a logical collection of OSPF networks, routers, and links that have the same area identification.
A router within an area must maintain a topological database for the area to which it belongs.
The router does not have detailed information about network topology outside of its area, which thereby
reduces the size of its database.
It is sometimes referred to as a hybrid routing protocol because it has characteristics of both distance-
vector and link-state routing protocols.
EIGRP replaced Interior Gateway Routing Protocol (IGRP), an older proprietary Cisco routing protocol.
EIGRP was also a proprietary protocol, but Cisco decided in 2013 to convert it to an open standard.
This routing protocol is mostly used on Cisco devices and all routers in the network must support it.
The following features make EIGRP especially helpful in large and complex networks:
support for classless routing and VLSM (Variable Length Subnet Masking).
routes can be summarized on any router in the network.
incremental routing updates.
support for load-balancing.
support for IPv4 and IPv6.
EIGRP uses Cisco’s Reliable Transport Protocol (RTP) to send messages and uses the multicast address
of 224.0.0.10.
The default administrative distance of EIGRP is 90, which is less than the default administrative distances
of RIP and OSPF, which means that EIGRP routes will be preferred over RIP and OSPF routes.
The metric is calculated using bandwidth, delay, reliability and load.
The hold time is the amount of time that a router will consider a neighbor alive without receiving a hello
packet. The hold time is typically three times the hello interval, by default, 15 seconds.
Port no.88
Diffusing Update Algorithm (DUAL)
EIGRP neighbors
Routers that run EIGRP must become neighbors before exchanging routing information.
To dynamically discover neighbors on the directly attached networks, EIGRP routers use the multicast
address of 224.0.0.10 to send Hello packets every couple of seconds.
Configuration of EIGRP
Verifying EIGRP
Router#show ip eigrp neighbors
Router#show ip eigrp traffic
Router#show ip route
Router#show ip route eigrp