Have ideal, have ambition, believe in the near future you will succeed!

Open wechat search [children go to school], pay attention to this is not the same programmer.

1. RIP routing

1.1 RIP Routing Basics

Routing Information Protocol (RIP) is a distributed routing protocol based on distance vector, which is widely used among the internal gateway protocols.

RIP broadcasts routing control information (once every 30 seconds) to the entire network. If no routing control message is received, the connection is disconnected. However, this may be caused by packet loss, so the RIP waits five times. If no routing information is received after six times (180 seconds), the connection is closed.

1.2 Route determination based on distance vector

RIP determines the path based on the distance vector algorithm. The unit of distance is hop count. The hop count refers to the number of routes passed. RIP wants to forward as few packets as possible to the destination IP address through the router.

1.3 Advantages and Disadvantages of RIP

By default, RIP only considers distance, not bandwidth or delay. Distance is the number of links that lead to the destination site, also called hop count. The smaller the hop count, the better the path. The minimum RIP path is called the optimal path. The RIP hop count ranges from 1 to 15. The value 16 indicates infinity.

  • advantages

    Simple, no complex configuration options

  • disadvantages

    There is a maximum hop limit, so it is only suitable for small Internet, not for large network; The convergence rate of route update is slow and is not suitable for the Internet with drastic changes.

1.4 RIP Route configuration

The configuration of RIP dynamic East Route includes basic configuration and advanced configuration. The configuration command format is as follows:

(1) Router RIP

Example Enable RIP and the RIP process.

(2) version1 or 2

RIP has two versions: RIP1 and RIP2. RIP1 does not support the variable length mask. Therefore, when routing information is exchanged, the subnet mask is not carried in the update packets. RIP2 supports variable length masks, multicast broadcast route update, and route update authentication.

(3) Network Network address

When configuring a RIP route, note that the network address after network refers to the network address directly connected to the local router. This is completely different from static routes. In static routes, the target network of the router is the network that is not directly connected to the router.

1.5 RIP Configuration Experiment

Configuration idea

  • Because devices need to be interconnected on a small network, it is recommended to configure RIP
  • Set the IP address of each connection port to make the network reachable.
  • RIP is used on routers to realize network interconnection.
  • Configure RIP2 on each router to improve RIP route expansion performance.

After the topology is set up, you can configure the IP address of each routing port and PC

PC1 configuration

PC2 configuration

R1 configuration

<Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]undo info [Huawei]undo info-center en [Huawei]undo info-center enable Info: Information center is disabled. [Huawei]inter [Huawei]interface g0/0/1 [Huawei-GigabitEthernet0/0/1]ip add [Huawei-gigabitethernet0/0/1] IP address 192.168.1.254 24 [Huawei-gigabitethernet0/0/1] Inter G0/0/0 [Huawei-gigabitethernet0/0/0] IP add [Huawei-gigabitethernet0/0/0] IP address 192.168.2.1 24 [Huawei-gigabitethernet0/0/0]Copy the code

R2 configuration

<Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]undo in [Huawei]undo info-center en [Huawei]undo info-center enable Info: Information center is disabled. [Huawei]inter [Huawei]interface g0/0/0 [Huawei-GigabitEthernet0/0/0]ip add [Huawei-gigabitethernet0/0/0] IP address 192.168.2.2 24 [Huawei-gigabitethernet0/0/0] Inter G0/0/1 [Huawei-gigabitethernet0/0/1] IP add [Huawei-gigabitethernet0/0/1] IP address 192.168.3.1 24 [Huawei-gigabitethernet0/0/1]Copy the code

R3 configuration

<Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]undo in [Huawei]undo info-center en [Huawei]undo info-center enable Info: Information center is disabled. [Huawei]inter [Huawei]interface g0/0/1 [Huawei-GigabitEthernet0/0/1]ip add [Huawei-gigabitethernet0/0/1] IP address 192.168.3.2 24 [Huawei-gigabitethernet0/0/1] Inter G0/0/0 [Huawei-gigabitethernet0/0/0] IP add [Huawei-gigabitethernet0/0/0] IP address 192.168.4.254 24 [Huawei-GigabitEthernet0/0/0]Copy the code

The next step is to configure RIP on each router

R1 configure RIP

<Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]rip 1 [Huawei-rip-1]version 2 [Huawei-rip-1]netwo [Huawei-rip-1]network The network 192.168.1.0 [Huawei - rip - 1] 192.168.2.0Copy the code

R2 configure RIP

<Huawei>system-view Enter system view, Return user view with Ctrl+Z. [Huawei]rip 1 [Huawei-rip-1]version 2 [huawei-rip-1]network 192.168.3.0 [Huawei - rip - 1] network 192.168.2.0Copy the code

R3 configure RIP

[Huawei]rip 1 [huawei-rip-1]version 2 [huawei-rip-1]networ [huawei-rip-1]network 192.168.3.0 [huawei-rip-1]network 192.168.4.0 [Huawei - rip - 1]Copy the code

test

As shown in the preceding figure, PC1 can ping through PC2, indicating that the RIP configuration is successful.

Dry goods share

Open wechat search [after children go to school]

Reply to [ENSP Command Reference] to obtain huawei simulator ENSP Command Reference!

Reply [RIP routing protocol], you can get the configuration file!

Good link

This topic describes how to configure a static route using the Ensp simulator

The last

Compared with static routes, THE CONFIGURATION of RIP is much simpler. You only need to configure the network segment adjacent to the route.

This is the end of the note sharing, more exciting content we will see you next time!

I see no ending, yet high and low I will search!

I am a reader, a dedicated learner. The more you know, the more you don’t know.

See you next time for more!