F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Appendix Protocol Reference-6PW100
8
RIPv1 message format
Figure 1 RIPv1 message format
• Command—Type of message. 1 indicates a request, which is used to request all or part of the
routing information from the neighbor, and 2 indicates a response, which contains all or part of the
routing information. A response message consists of up to 25 route entries.
• Version—Version of RIP, 0x01 for RIPv1.
• Must be zero—This field must be zero.
• AFI—Address Family Identifier, 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 RIPv2 message is similar to RIPv1.
Figure 2 RIPv2 message format
The differences from RIPv1 are stated as follows:
• Version—Version of RIP. For RIPv2 the value is 0x02.
• Route tag—Route tag.
• IP address—Destination IP address. It can be a natural network address, subnet address or host
address.
• Subnet mask—Mask of the destination address.
• Next hop—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.
Command
AFI
IP address
Version Must be zero
Must be zero
Must be zero
Must be zero
Metric
0 7 15 31
Route
entries
Header