CCENT 6 S01 E25 – Implementing Dynamic Routing with RIP

  Uncategorized

Types of Routing Protocol

Distance Vector

  • Easy to configure
  • Not many features
  • RIP: Router Information Protocol
  • IGRP:

Link State

  • Difficult to configure
  • Many Features
  • OSPF:
  • IS-IS:

Hybrid

  • “The best of both worlds”
  • Cisco Proprietary
  • EIGRP: Enhanced Interior Gateway Routing Protocol

Understanding RIP

  • Algorithm first developed in 1969
  • 2 Versions: RIPv1 and RIPv2
  • RIPv1
    • Do not need to know RIPv1, just know it exists.
    • Classful version. (Does not support VLSM > Variable Length Subnet Mask)
      • Advertises Networks, but not Subnet Masks
      • 172.16.1.0 <- /16 (class B) or /24?
    • No Authentication.  Any router can join network.
    • Uses Broadcasts to advertise “who they know” every 30 seconds
      • Everything hears the message whether it cares or not.
  • RIPv2
    • Classless version.  (Supports VLSM)
    • Adds Authentication.  All routers must use same password to accept routing updates
    • Uses Multicast -> Only sends to ‘Groups’ and doesn’t send to everyone.

Configuring RIP

Enable RIP

*Note: RIP advertises its settings once every 30 seconds by default.

r1(config)#router rip

Set Version

r1(config-router)#version 2

Enter Network Statements

r1(config-router)#network SUB.NE.TW.ORK

*Only define the subnet (eg:192.168.1.0) and not the ip address!
The network command does 2 things.
1. Advertises the defined network.
2. Only broadcasts the advertised network on the interface connected to that network.

Example: r1 has 2 interfaces, fa0/0=192.168.1.1 and fa0/1=192.168.2.1

r1(config-router)#network 192.168.1.0

will only advertise 192.168.1.0 on fa0/0.
In order to advertise both networks down both interfaces, you must also add:

r1(config-router)#network 192.168.2.0

Disable automatically advertising the network mask based on the IP.

By default, the network mask is broadcast based on the class of the network IP. To disable this, (making it classless):

r1(config-router)#no auto-summary

 

Show the routes

#show ip route

LEAVE A COMMENT