3-17
Destination/Mask Nexthop Cost Tag Flags Sec
10.0.0.0/8 192.168.1.2 1 0 RA 11
From the routing table, you can find that RIPv1 uses a natural mask.
3) On Switch A and Switch B, specify the RIP version as RIPv2, and disable RIPv2 route automatic
summarization to advertise all subnet routes.
# Configure RIPv2 on Switch A.
[SwitchA] rip
[SwitchA-rip-1] version 2
[SwitchA-rip-1] undo summary
# Configure RIPv2 on Switch B.
[SwitchB] rip
[SwitchB-rip-1] version 2
[SwitchB-rip-1] undo summary
# Display the RIP routing table on Switch A.
[SwitchA] display rip 1 route
Route Flags: R - RIP, T - TRIP
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
--------------------------------------------------------------------------
Peer 192.168.1.2 on Vlan-interface100
Destination/Mask Nexthop Cost Tag Flags Sec
10.0.0.0/8 192.168.1.2 1 0 RA 50
10.2.1.0/24 192.168.1.2 1 0 RA 16
10.1.1.0/24 192.168.1.2 1 0 RA 16
From the routing table, you can see RIPv2 uses classless subnet mask.
Since the routing information advertised by RIPv1 has a long aging time, it will still exist until it ages out
after RIPv2 is configured.
Configuring RIP Route Redistribution
Network requirements
As shown in the following figure:
z Two RIP processes are running on Switch B, which communicates with Switch A through RIP 100
and with Switch C through RIP 200.
z Configure route redistribution on Switch B to make RIP 200 redistribute direct routes and routes
from RIP 100. Thus, Switch C can learn routes destined for 10.2.1.0/24 and 11.1.1.0/24, while
Switch A cannot learn routes destined for 12.3.1.0/24 and 16.4.1.0/24.
z Configure a filtering policy on Switch B to filter out the route 10.2.1.1/24 from RIP 100, making the
route not advertised to Switch C.