-
Routing Process
-
Basics
-
To route packets, Router needs:
- Destination Address
- Neighbour Routers from which to learn about remote networks
- Possible Routes to all remote networks
- Best route
- How to maintain and verify routing info
-
MAC addressees
- AKA Hardware address
- Never leaves LAN
-
Internal routing
- MAC addresses will be of sending host and receiving host
-
External routing
- If heading outside of LAN, MAC addresses will be of sending host and Gateway interface
-
Frame changed at each hop
- Packet unchanged
-
Frame on a LAN
- Takes packet to destination host
- Or to Router interface
-
Configuration & Verification
-
Configuration
-
Static
-
from global config mode:
- ip route [address] [mask] [next hop address] [AD] [permanent]
- Address
- Address of the network your routing to
- Mask
- Subnet mask of the remote network
- Next hop
- IP address of next router
- Can also be exit interface
- AD
- You can choose the AD of the static route
- permanent
- The link will stay in the routing table
-
RIPv1
-
entered in Global config mode
- router rip
- network [classful address]
-
To stop propagation, use passive interfaces
- Router (config-router)# passive-interface [interface]
- Stops an updates going out configured interface, but can still receive updates
-
RIPv2
- Same as above, just add "version 2" from router config mode
-
Default routing
- should only be used on stub network (network with only one exit)
-
entered from Global config
- ip route 0.0.0.0 0.0.0.0 [next hop/exit interface]
- uses wildcard for IP address and mask
- tells router to send any IP address not in routing table out of configured network
- ip classless
- to cover classless addresses being encountered
-
Verifcation
-
sh ip route
- will show the routing table, and what protocols are being used
-
sh ip protocols
- shows details of which routing protocols are being used
-
debug ip rip
- will show details of RIP updates going in and coming out
-
Routing Protocols
-
Static Routes
-
Advantages
- No bandwidth, therefore possible cheaper WAN links
- No CPU usage
- Adds security: Admin can choose who to route to
-
Disadvantages
- Admin needs to understand the network
- Any change to network must be entered by hand on each router
- Unfeasible in large networks
- AD of 1 (by default)
-
RIPv1
- Sends out Entire routing table every 30 seconds
-
Classful routing only
- No VLSM's
- All networks have the same Subnet mask
-
Works well in small networks
- Not suitable for large networks, Routing tables too big
-
maximum hop count of 15
- on 16th hop, the packet is dropped
-
Broadcast based
- Sends out updates on 255.255.255.255
- No authentication supported
- Doesn't support discontiguous networks
- Distance Vector Routing Protocol
- AD of 120
-
RIPv2
-
Same as RIPv1,except
-
Classless
- Supports VLSM's
-
Multicast based
- uses 225.0.0.9
- Allows MDS authentication
- Supports Discontiguous networks
-
IGRP
- Can be use in large networks
-
Uses autonomous system number for activation
- choose a number and use the same number with each router running IGRP
- Updates routing table every 90 seconds
- AD of 100
- Maximum hop of 255
-
uses Bandwidth and delay of the line as metric
- AKA composite metric
- Reliability, load, and MTU can also be used, but not default
- Proprietary to Cisco routers
- Superseded by EIGRP
-
Routing types
-
Distance Vector
-
Judges best path by distance (hops)
- Fewer hops = best path
- Vector indicates the direction
- Send out routing table to neighbours
-
Susceptible to:
-
pinhole congestion
- where two routes with same AD but different metrics are seen as equal
-
Slow convergence
- time it takes for routing tables to converge
-
Routing Loops
- Where a packet bounces round a network
- Fixed with four failsafes:
- Maximum hop count
- after a total number of hops, packet is dropped
- Split Horizon
- Routes are not advertised down the same line they were learnt
- Route Poisoning
- Advertising a route as being unreachable (infinite)
- Holddowns
- Restricts routers from updating their routes
- allows 'flapping' links to stabilise
-
EG:
- RIPv1, RIPv2, IGRP
-
Link State
-
Routers create 3 separate tables
- 1 for dirrectly attached neighbours
- 1 for internetwork topology
- 1 for routing
- Knows more about internetwork
- Send updates on the availability of their own links
-
EG:
- OSPF
-
Hybrid
- Mix of both Distance vector and Link state
-
EG:
- EIGRP