RIPv1 message format
Figure 6 RIPv1 message format
•
Command—Type of message. A value of 1 indicates request, which is used to request all or
part of the routing information from the neighbor. A value of 2 indicates response, which
contains all or part of the routing information. A response message consists of up to 25 route
entries.
•
Version—Version of RIP. For RIPv1, the value is 0x01.
•
Must be zero—This field must be zero.
•
AFI—Address family identifier. The AFI is 2 for IP.
•
IP address—Destination IP address of the route. It can be a natural network, subnet or a host
address.
•
Metric—Cost of the route.
RIPv2 message format
The format of a RIPv2 message is similar to RIPv1.
Figure 7 RIPv2 message format
The differences between RIPv1 and RIPv2 messages are stated as follows:
•
Version–Version of RIP. For RIPv2, the value is 0x02.
•
Route tag.
•
IP address—In RIPv2, destination, destination IP address can be a natural network address,
subnet address, or host address.
•
Subnet mask—RIPv2 supports mask of the destination address.
•
Next hop—RIPv2 messages include next hop information. If set to 0.0.0.0, it indicates that the
originator of the route is the best next hop. Otherwise, it indicates a next hop better than the
originator of the route.
RIPv2 authentication message format
RIPv2 sets the AFI field of the first route entry to 0xFFFF to identify authentication information.
21