Monday 4 March 2013

How to configure RIPv1 and RIP v2

To configure RIP routing, just turn on the protocol with the router rip command and tell the RIP routing protocol which networks to advertise. The network command tells the routing protocol which classful network to advertise. RIP has an administrative distance of 120. static routes has an administrative distance of 1 by default. look at the example below:

router#
router#config t
router(config)#router rip
router(config-router)#network 10.0.0.0

       That's it for RIP version 1, however, keep in mind the extra router CPU process and bandwidth that you're consuming.
       Notice I didn't type in subnets, only the classful address network address (all subnet bits and host bits off). It is the job of the routing protocol to find the subnets and populate the routing tables. Remember that RIP uses the classful address when configuring the network address. Because of this, all subnet masks must be the same on all devices in the network (this is called classful routing). Let's say you're using a Class B network address of 172.16.0.0/24 with subnets 172.16.10.0, 172.16.20.0, and 172.16.0.0 and let RIP find the subnets and place them in the routing table.

Configuring RIPv2
       RIPv2, unlike RIPv1, is a classless routing protocol (even though it is configured as classful like RIPv1), which means that it sends subnet mask information along with the route updates. by sending the subnet mask information with the updates, RIPv2 can support Variable Length Subnet Masks (VLSMs) as well as the summarization of network boundaries. RIPv2 can support discontiguous networking, here is an example on RIPv2 configuration:

router#
router#config t
router(config)#router rip
router(config-router)#network 192.168.30.0
router(config-router)#network 192.168.40.0
router(config-router)#version 2

        That's it; just add the comman Version 2 under the (config-router)# prompt and you are now running RIPv2.
       

      

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...