Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure Basic Functions of RIP

Configuration Condition

Before configuring the basic functions of RIP, ensure that:

  • The link layer protocol has been configured to ensure normal communication at the link layer.
  • The network layer addresses of the interfaces have been configured so that the adjacent network nodes are reachable at the network layer.

Enable RIP Globally

Before using RIP, make the following configurations:

  • Create an RIP process.
  • Configure RIP to cover a directly connected network or interface.

Table 5-2 Enabling RIP Globally

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Create an RIP process and enter the RIP configuration mode.

router rip

Mandatory.

By default, the RIP process is disabled.

Configure RIP to cover a specified network segment or interface.

network { ip-address | interface-name }

Mandatory.

By default, RIP does not cover any directly connected network or interface.

note


  • The covered network segment is categorized into classful addresses.
  • You cannot use the network ip-address command to cover super network addresses. To cover super network addresses, use the network interface-name command.

Enable RIP for VRF

To enable RIP to support VRF functions, make the following configurations:

  • Configure a VRF and add an interface to the VRF.
  • Enable the RIP function in the VRF address family.
  • Configure RIP to cover a VRF directly connected network or interface.

Table 5-3 Enable RIP for VRF

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Create an RIP process and enter the RIP configuration mode.

router rip

Mandatory.

By default, the RIP process is disabled.

Enter the VRF address family configuration mode of the RIP protocol.

address-family { ipv4 vrf vrf-name }

Mandatory.

By default, the VRF address family mode is disabled.

Configure RIP to cover a specified network segment or interface.

network { ip-address | interface-name }

Mandatory.

By default, RIP does not cover any directly connected network or interface.

note


  • To enable RIP in VRF mode, you must first create VRF-related configurations.

Configure RIP Versions

RIP has two versions, RIPv1 and RIPv2. They can be configured in three modes: global configuration mode, VRF configuration mode, and interface configuration mode.

  • By default, RIPv1 is enabled in global configuration mode and VRF configuration mode, and it is not configured in interface configuration mode.
  • The version configuration command in interface configuration mode is a higher priority than the version configuration command in global or VRF configuration mode.
  • If the version configuration command is not configured, the command in VRF configuration mode of the interface to which the VRF belongs or the command global configuration mode is used.
  • In interface configuration mode, the RIP transmit version and the RIP receive version can be configured independently.
  • After versions are configured, RIP has strict packet transmitting and receiving processing: In the case of RIPv1, the interface transmits and receives only RIPv1 broadcast and unicast packets. In the case of RIPv2, the interface can transmit and receive RIPv2 unicast, multicast, and broadcast packets. In the case of RIPv1 compatible mode, the interface can transmit RIPv2 unicast and broadcast packets.

Table 5-4 Configuring RIP versions

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Create an RIP process and enter the RIP configuration mode.

router rip

Mandatory.

By default, the RIP process is disabled.

Configure the global RIP version.

version { 1 | 2 }

Mandatory.

By default, RIPv1 is enabled.

Enter the RIP VRF configuration mode.

address-family { ipv4 vrf vrf-name }

Mandatory.

By default, the VRF address family mode is disabled.

Configure the RIP version in RIP VRF configuration mode.

version { 1 / 2 }

Mandatory.

By default, RIPv1 is enabled.

Return to the RIP configuration mode.

exit-address-family

-

Return to the global configuration mode.

exit

-

Enter the interface configuration mode.

interface interface-name

-

Configure the RIP transmit version of the interface.

ip rip send version {{ 1 / 2 } | 1-compatible }

Optional.

By default, the interface transmits packets based on the global RIP version.

Configure the RIP receive version of the interface.

ip rip receive version { 1 / 2 }

Optional.

By default, the interface receives packets based on the global RIP version.