Version 2 Command on CISCO Router/Switch

Other Cisco Other Cisco Material Original source

Command

Version 2

Use

Switches router rip version to version 2.

The benefits of rip version 2 are:
-Increased security
-More efficient (uses multicast instead of broadcast)
-Supports classless addresses

Syntax

Router(config-router)#version 2

Example

Here is the version 1 debug for R3.

Copy

R3(config-router)#do debug ip rip

RIP protocol debugging is on

R3(config-router)#

*Mar 1 05:07:45.818: RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (10.2.2.3)

*Mar 1 05:07:45.822: RIP: build update entries

*Mar 1 05:07:45.826: network 3.0.0.0 metric 1

*Mar 1 05:07:46.426: RIP: sending v1 update to 255.255.255.255 via Loopback0 (3.3.3.3)

*Mar 1 05:07:46.430: RIP: build update entries

*Mar 1 05:07:46.430: network 1.0.0.0 metric 3

*Mar 1 05:07:46.434: network 2.0.0.0 metric 1

*Mar 1 05:07:46.434: network 10.0.0.0 metric 1

R3(config-router)#

*Mar 1 05:07:52.470: RIP: received v1 update from 10.2.2.2 on FastEthernet0/0

*Mar 1 05:07:52.474: 1.0.0.0 in 1 hops

*Mar 1 05:07:52.478: 2.0.0.0 in 1 hops

*Mar 1 05:07:52.482: 10.1.1.0 in 1 hops

R3(config-router)#

*Mar 1 05:07:54.478: RIP: sending v1 flash update to 255.255.255.255 via FastEthernet0/0 (10.2.2.3)

*Mar 1 05:07:54.482: RIP: build flash update entries – suppressing null update

*Mar 1 05:07:54.486: RIP: sending v1 flash update to 255.255.255.255 via Loopback0 (3.3.3.3)

*Mar 1 05:07:54.490: RIP: build flash update entries

*Mar 1 05:07:54.490: network 1.0.0.0 metric 1

Next, version 2 is configured for all routers using the below commands.

Copy

R3#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R3(config)#router rip

R3(config-router)#version 2

Here is the version 2 debug. Notice the multicast address 224.0.0.9

Copy

R3(config-router)#version 2

R3(config-router)#do debug ip rip

RIP protocol debugging is on

R3(config-router)#

*Mar 1 05:09:11.090: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.2.2.3)

*Mar 1 05:09:11.094: RIP: build update entries

*Mar 1 05:09:11.098: 3.0.0.0/8 via 0.0.0.0, metric 1, tag 0

R3(config-router)#

*Mar 1 05:09:12.290: RIP: sending v2 update to 224.0.0.9 via Loopback0 (3.3.3.3)

*Mar 1 05:09:12.294: RIP: build update entries

*Mar 1 05:09:12.294: 1.0.0.0/8 via 0.0.0.0, metric 1, tag 0

*Mar 1 05:09:12.298: 2.0.0.0/8 via 0.0.0.0, metric 1, tag 0

*Mar 1 05:09:12.302: 10.0.0.0/8 via 0.0.0.0, metric 1, tag 0

*Mar 1 05:09:12.310: RIP: ignored v2 packet from 3.3.3.3 (sourced from one of our addresses)
← All Other Cisco articles Home