425
Command:version {1| 2}
no version
Function:
Configure the version of all RIP data packets sent/received by router
interfaces: the “
no version
” restores the default configuration
Parameter: 1 is
version 1 rip;
2
is version 2 rip
Default:
Sent and received data packet is version 2 by default
Command Mode:
Router mode and address-family mode
Usage Guide:
1 refers to that each interface of the layer 3 switch only sends/receives
the RIP-I data packets. 2 refers to that each interface of the layer 3 switch only
sends/receives the RIP-II data packets. The RIP-II data packet is the default version.
Example:
Configure the version of all RIP data packets sent/received by router interfaces
to version 2.
Switch(config-router)#version 2
14.4.4 RIP Examples
14.4.4.1 Typical RIP Examples
Fig 14-3 RIP example
In the figure shown above, a network consists of three Layer 3 switches, in which
SwitchA connected with SwitchB and SwitchC, and RIP routing protocol is running in all
of the three switches. SwitchA
(
interface vlan1:10.1.1.1,interface vlan2:20.1.1.1
)
exchanges Layer 3 switch update messages only with SwitchB
(
interface vlan1:10.1.1.2
)
,
but not with SwitchC
(
interface vlan 2: 20.1.1.2
)
.
SwitchA, SwitchB, SwitchC configurations are as follows:
a) Layer 3 switch SwitchA:
Configure the IP address of interface vlan 1
vlan2:20.1.1.1/24
SwitchA
SwitchC
Interface
Vlan2:20.1.1.2/24
vlan1:10.1.1.2/24
Interface
vlan1:10.1.1.1/24
Interface
Interface
SwitchB