Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 1
IP routing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 2
IP Routing- Network Diagram
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 3
Condition for IP Routing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 4
Types of Routing
Static Routing
Default Routing
Dynamic Routing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 5
Static Routing for IPv4 Network
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 6
Static Routing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 7
Enabling Routing on IPv4 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 8
Enabling Routing on IPv4 Network-
Configuration and Verification
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Static Routing on IPv4 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 10
Static Routing for IPv6 Network
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 11
Enabling Routing on IPv6 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 12
Enabling Routing on IPv6 Network-
Configuration
Router(config)#ipv6 unicast-routing
Verification :
Router#show ipv6 route
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 13
Static Routing on IPv6 Network-
Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 14
Advantages and Disadvantages of Static
routing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 15
Dynamic Routing
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 16
Overview of Routing Protocol
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 17
Advantages of Dynamic Routing
Automatic updates.
Changes in the network topology are updated by
dynamically.
Only the directly connected network information is
required for the configuration
Less Administrative work
Selecting the best path to destination networks
Finding the second best path if best path is no longer
available.
More scalable
Used for medium or large networks
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 18
Types of Dynamic Routing Protocols
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 19
Classfull vs Classless Routing Protocol
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 20
Routing Information Protocol (RIP)
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 21
RIP Characteristics
Distance Vector Protocol
Open Standard
Uses Bellman Ford Algorithm
Classless routing protocol
Metric=Hop count
Maximum hop count is 15
Updates are sent through the multicast address
224.0.0.9
RIP send periodic updates for every 30 seconds
RIP support equal cost load balancing by default 4
path(Max upto 16 paths)
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 22
RIP Characteristics
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 23
Loopback Interface
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 24
Loopback Interface - Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 25
RIP on IPv4 Network - Configuration
Router(config)#ip routing
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network <network id>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 26
RIP on IPv4 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 27
RIP on IPv4 Network - Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 28
RIP on IPv4 Network - Verification
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 29
RIP Timers
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 30
RIP Updates
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 31
Change RIP Timer
Examble:
Router(config)#router ip
Router(config-router)#timers basic 15 30 90 90
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 32
Passive Interface
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 33
Summarization
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 34
RIPng
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 35
RIPng Characteristics
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 36
RIPng on IPv6 Network - Configuration
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router rip <name>
Router(config)#interface <interface type><no.>
Router(config-if)#ipv6 rip <name> enable
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 37
RIPng on IPv6 Network - Configuration
Verify:
Router#show ipv6 route
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 38
Disadvantages of RIP
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 39
Link State Routing Protocol
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 40
Open Shortest Path First (OSPF)
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 41
OSPF characteristics
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 43
Router ID
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 44
OSPF Neighbor States
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 45
OSPF Terminology
Neighbor
- Routers that share a common link become neighbors.
-Neighbors are discovered by Hello Packets
-To become neighbors the following should match:
Area ID
Network ID and Subnet Mask
Hello and Dead Intervals
Authentication (optional)
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 46
OSPF Terminology
Adjacencies
- Adjacencies are formed once neighbor relation is
established
- In adjacencies the database detail are exchanged
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 47
OSPF Tables
It maintains three details:
Neighbor table
- Neighbor talbe contains information about the directly
connectedd OSPF neighbors forming adjacency.
Database table
- Database table contains information about the entire
view of the topology with respect to each router.
Routing table
-Routing table contains information about the best path
calculated by the shortest path firest algorithm in the
database table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 48
OSPF - Neighbor table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 49
OSPF - Database Table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 50
OSPF - Database Table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 51
Wild Card Mask
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 52
OSPF Single Area on IPv4 Network-
Configuration
Router(config)#ip routing
Router(config)#router ospf <process id>
Router(config-router)#router-id <router id>
Router(config-router)#network <Network ID><Wildcard
Mask> area <area ID>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 53
OSPF Single Area on IPv4 Network-
Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 54
OSPF Single Area on IPv4 Network -
Verification
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 55
Link State Advertisement(LSA)
Link
-Router interface
State
- Description of interface and neighbor relation and
sending to neighbor routers
LSA are aditionally refreshed every 30 minutes.
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 56
OSPF Packet Types
Hello
- To discover the neighbor
- To form neighbor relation
- Keep alive mechanism
DBD
-Database description the update are exchanged
LSR : Link State Request
- Used for requesting for a newer updated information
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 57
OSPF Packet Types
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 58
OSPF Hello Packets
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 59
Passive Interface
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 60
OSPF Metric
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 61
OSPF Cost metric on Interface
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 62
Issues with OSPF Single Area
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 63
Hierarchical Network Design using Areas
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 64
OSPF Multiple Area
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 65
Types of Routers
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 66
OSPF Multiple Area on IPv4 Network
Configuration
Router(config)#ip routing
Router(config)#router ospf <process id>
Router(config-router)#network <network id><subnet
mask> area <area id>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 67
OSPF Multiple Area on IPv4 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 68
Router Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 69
Open Shortest Path Firstv3
(OSPFv3)
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 70
OSPFv3 Characteristics
RFC 2740
Multicast Address is FF02::5 and FF02::6
OSPFv3 is configured on link basis.
OSPFv3 supports multiple instance on a single link.
OSPFv3 adjacencies are formed using link-local
address.
Still uses the router-id from IPv4.
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 71
OSPFv3 on IPv6 Network-Configuration
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf <Process ID>
Router(config-router)#router-id <router id>
Router(config)#interface <interface type><no.>
Router(config-if)#ipv6 ospf <process id> area <area id>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 72
OSPFv3 on IPv6 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 73
OSPFv3 on IPv6 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 74
Disadvantages of OSPF
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 75
Enhanced Interior Gateway Routing Protocol
(EIGRP)
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 76
EIGRP Characteristics
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 77
EIGRP Characteristics
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 78
EIGRP Tables
Neighbor Table
- Contains information about directly connected
neighbors.
Topology Table
- Contains entries for all destinations, along with the
feasible distance and the advertised distance.
- Contains the successors.
- Contains feasible successor if any
Routing Table
- Entries with the best path for each destination from the
topology table are moved into the routing table.
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 79
EIGRP Terminology
Feasible Distance(FD)
- Feasible distance is the metric of the best route to a destination,
including the local link distance.
- Feasible distance=AD+local link distance (of the best pasth)
Advertised Distance (AD)
- The distance of a route as advertised by the neighbor. it does not
include the local link distance.
Successor
- The neighbor with best distance to the destination.
Feasible Successor
-The neighbor with second best distance to the destination, which
meets this criteria: advertised distance should be less than the
feasible distance (AD<FD)
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 80
EIGRP - Neighbor Table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 81
EIGRP - Topology Table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 82
EIGRP - Routing Table
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 83
Autonomous System
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 84
Routing Protocol Classification
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 85
IGP and EGP
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 86
EIGRP on IPv4 Network-Configuration
Router(config)#ip routing
Router(config)#router eigrp <as No.>
Router(config)#network <network id><wildcard mask>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 87
EIGRP on IPv4 Network - Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 88
EIGRP Multi-AF Mode
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 89
EIGRP on IPv4 Network - Verification
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 90
EIGRP Metric
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 91
EIGRP Metric Calculation
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 92
EIGRP Packets
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 93
Passive Interface
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 94
Router ID
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 95
EIGRP Load Balancing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 96
EIGRP Equal/Unequal Cost Load Balancing
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 97
Enhanced Interior Gateway Routing Protocol
(EIGRPv6)
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 98
EIGRPv6 Characteristics
RFC 7868
Multicast Address for EIGRPv6 is FF02::A
Still uses the router-id from IPv4
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 99
EIGRPv6 on IPv6 Network-Configuration
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router eigrp <AS no.>
Router(config-router)#eigrp router-id <router-id>
Router(config)#interface <interface type><no.>
Router(config-if)#ipv6 eigrp <as no.>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 100
EIGRPv6 on IPv6 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 101
EIGRPv6 on IPv6 Network
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 102
Border Gateway Protocol (BGP)
ITE I Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 103
BGP Features
Path Vector Protocol
Open Standard Protocol
Uses the path vector algorithm
Classless routing protocol
AD for EBGP is 20
BGP exchanges routing information between Autonomous
system
External BGP (EBGP) which is also known as an inter-
domain routing protocol, opterate outside an AS and
connects one AS to another.
Hello timer is 60 sec, Hold on timer is 180 sec.
BGP use the TCP port number 179
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 104
Advertising routes with BGP
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 105
Internal and External BGP
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 106
eBGP and the Internet Egde
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 107
Advertising the Enterprise public prefix
into the Internet
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 108
EBGP on IPv4 Network - Configuration
Router(config)#ip routing
Router(config)#router bgp <AS no.>
Router(config-router)#neighbor <peer address>
remote-as <peer-as-no.>
Router(config-router)#network <network id> mask
<subnet mask>
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 109
EBGP on IPv4 Network-Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 110
EBGP on IPv4 Network-Configuration
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 111
EBGP on IPv4 Network-Verification
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 112
Administrative Distance
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 113
ITE 1 Chapter 6 © 2006 Cisco Systems, Inc. All rights reserved. Cisco Public 114