laitimes

RIP configuration without asking for help: Teach you how to configure RIP routes

author:Director Guo, a network engineer

Hello everyone, today I would like to introduce to you the configuration of RIP basic functions

RIP configuration without asking for help: Teach you how to configure RIP routes

01. Basic concepts

RIP is a protocol based on the Distance-Vector algorithm, which uses hop count as a metric to measure the distance to a destination address. In a RIP network, by default, the hop count from a device to the network directly connected to it is 0, the hop count to reach the network through one device is 1, and so on. That is, the metric is equal to the number of devices that travel from the local network to the destination network. In order to limit the convergence time, RIP stipulates that the metric value is an integer between 0~15, and the hop number greater than or equal to 16 is defined as infinity, that is, the destination network or host is unreachable. Due to this limitation, RIP is not likely to be used in large networks.

02. Networking requirements

There are 4 routers in the network, which require network interconnection on RouterA, RouterB, RouterC, and RouterD.

03. Experimental topology

RIP configuration without asking for help: Teach you how to configure RIP routes

Configure the networking diagram for the RIP version

04. Configuration ideas

Since you want to interconnect devices in a small network, we recommend that you configure the RIP-2 routing protocol.

  1. Configure the IP addresses of each interface to make the network reachable.
  2. RIP is enabled on each router to basically implement network interconnection.
  3. Configure the RIP-2 version on each router to improve the performance of RIP route expansion.

05. Operation steps

1. Configure the IP address of each router interface

# Configure RouterA.

<Huawei> system-view

[Huawei] sysname RouterA

[RouterA] interface gigabitethernet 1/0/0

[RouterA-GigabitEthernet1/0/0] ip address 192.168.1.1 24

RouterB、RouterC和RouterD的配置与RouterA一致(略)。

2. Configure the basic functions of RIP

# Configure RouterA.

[RouterA] rip
[RouterA-rip-1] network 192.168.1.0
[RouterA-rip-1] quit           

# Configure RouterB.

[RouterB] rip
[RouterB-rip-1] network 192.168.1.0
[RouterB-rip-1] network 172.16.0.0
[RouterB-rip-1] network 10.0.0.0
[RouterB-rip-1] quit           

# Configure RouterC.

[RouterC] rip
[RouterC-rip-1] network 172.16.0.0
[RouterC-rip-1] quit           

# Configure RouterD.

[RouterD] rip
[RouterD-rip-1] network 10.0.0.0
[RouterD-rip-1] quit           

# View the RIP route table of RouterA.

[RouterA] display rip 1 route
 Route Flags: R - RIP
              A - Aging, S - Suppressed, G - Garbage-collect 
-------------------------------------------------------------------------
 Peer 192.168.1.2  on GigabitEthernet1/0/0
      Destination/Mask        Nexthop     Cost   Tag     Flags   Sec
         10.0.0.0/8           192.168.1.2      1    0        RA      14
         172.16.0.0/16        192.168.1.2      1    0        RA      14           

As can be seen from the routing table, RIP-1 uses a natural mask for the routes advertised.

3. Configure the version of the RIP

# Configure RIP-2 on RouterA.

[RouterA] rip
[RouterA-rip-1] version 2
[RouterA-rip-1] quit           

# Configure RIP-2 on RouterB.

[RouterB] rip
[RouterB-rip-1] version 2
[RouterB-rip-1] quit           

# Configure RIP-2 on RouterC.

[RouterC] rip
[RouterC-rip-1] version 2
[RouterC-rip-1] quit           

# Configure RIP-2 on RouterD.

[RouterD] rip
[RouterD-rip-1] version 2
[RouterD-rip-1] quit           

4. Verify the configuration result

# View the RIP route table of RouterA.

[RouterA] display rip 1 route
  Route Flags: R - RIP
              A - Aging, S - Suppressed, G - Garbage-collect
-------------------------------------------------------------------------
 Peer 192.168.1.2  on GigabitEthernet1/0/0
      Destination/Mask        Nexthop     Cost   Tag     Flags   Sec
         10.1.1.0/24         192.168.1.2      1    0        RA      32
         172.16.1.0/24       192.168.1.2      1    0        RA      32           

As can be seen from the route table, the routes advertised by RIP-2 contain more accurate subnet masks.

06. Configuration file

  • RouterA's configuration file
#
 sysname RouterA
#
interface GigabitEthernet1/0/0
 ip address 192.168.1.1 255.255.255.0
#
rip 1
 version 2
 network 192.168.1.0
#
return           
  • RouterB's configuration file
#
 sysname RouterB
#
interface GigabitEthernet1/0/0
 ip address 192.168.1.2 255.255.255.0
#
interface GigabitEthernet2/0/0
 ip address 172.16.1.1 255.255.255.0
#
interface GigabitEthernet3/0/0
 ip address 10.1.1.1 255.255.255.0
#
rip 1
 version 2
 network 192.168.1.0
 network 172.16.0.0
 network 10.0.0.0
#
return           
  • RouterC
#
 sysname RouterC
#
interface GigabitEthernet2/0/0
 ip address 172.16.1.2 255.255.255.0
#
rip 1
 version 2
 network 172.16.0.0
#
return           
  • RouterD's configuration file
#
 sysname RouterD
#
interface GigabitEthernet1/0/0
 ip address 10.1.1.2 255.255.255.0
#
rip 1
 version 2
 network 10.0.0.0
#
return           

The preceding example shows how to configure basic RIP functions

RIP configuration without asking for help: Teach you how to configure RIP routes

G-LAB IT LAB COURSE

RIP configuration without asking for help: Teach you how to configure RIP routes

Pay attention to the good of the industry: IT operation and maintenance base camp, and get the 60 G "Network Engineering System Gift Package"

Read on