当前位置:网站首页>Rip configuration instance learning record
Rip configuration instance learning record
2022-07-23 12:59:00 【Amateur visionary】
RIP Configure the instance
Routing information protocol RIP(Routing Information Protocol) It is a routing protocol based on distance vector algorithm , Using the number of jumps as the measurement standard . because 15 Jump to maximum , therefore RIP It can only be applied to small-scale networks , Such as campus network and other regional networks with relatively simple structure ;
List of articles
1、 The goal of the experiment
adopt RIP Configuration of to realize network interworking
2、 Network topology
notes :PC Of IP Address 、 Subnet mask and gateway , Click on PC Enter self configuration 
3、 Configuration steps
(1) Configure ports by topology IP Address
R1:
<Huawei>system-view // Enter the system view
[Huawei]sysname R1 // Rename the device
[R1]interface GigabitEthernet0/0/1
[R1-GigabitEthernet0/0/1]ip address 20.1.1.1 24 // configure port IP Address
[R1-GigabitEthernet0/0/1]quit
[R1]interface GigabitEthernet0/0/0
[R1-GigabitEthernet0/0/0]ip address 10.1.1.1 24 // configure port IP Address
[R1-GigabitEthernet0/0/0]quit
R2:
<Huawei>system-view // Enter the system view
[Huawei]sysname R2 // Rename the device
[R2]interface GigabitEthernet0/0/1
[R2-GigabitEthernet0/0/1]ip address 30.1.1.1 24 // configure port IP Address
[R2-GigabitEthernet0/0/1]quit
[R2]interface GigabitEthernet0/0/0
[R2-GigabitEthernet0/0/0]ip address 10.1.1.2 24 // configure port IP Address
[R2-GigabitEthernet0/0/0]quit
(2) start-up RIP And enable in the specified network segment RIP
notes : Use network Command enable RIP The network address of , It must be the address of the natural network segment . Otherwise there will be mistakes :(Error: The network address is invalid, and the specified address must be major-net address without any subnets.) Simply speaking , You just need to enter the main class network address of the interface . example : To configure R1 when , Out of commission network 10.1.1.0 , And should be used network 10.0.0.0 , because 10.1.1.1 The main class address of is 10.0.0.0; Another example 192.168.10.1 The main class address of is 192.168.10.0
R1:
[R1]rip 1 // start-up RIP
[R1-rip-1]version 2 // Specify Global RIP edition
[R1-rip-1]network 20.0.0.0 // Enable... In the specified network segment RIP
[R1-rip-1]network 10.0.0.0 // Enable... In the specified network segment RIP
[R1-rip-1]quit
R2:
[R2]rip 1 // start-up RIP
[R2-rip-1]version 2 // Specify Global RIP edition
[R2-rip-1]network 10.0.0.0 // Enable... In the specified network segment RIP
[R2-rip-1]network 30.0.0.0 // Enable... In the specified network segment RIP
[R2-rip-1]quit
4、 test
(1) View routing table
R1:
[R1]display ip routing-table // View routing table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet0/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
20.1.1.0/24 Direct 0 0 D 20.1.1.1 GigabitEthernet0/0/1
20.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1
30.1.1.0/24 RIP 100 1 D 10.1.1.2 GigabitEthernet0/0/0 // RIP route
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
R2:
[R2]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.2 GigabitEthernet0/0/0
10.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
20.1.1.0/24 RIP 100 1 D 10.1.1.1 GigabitEthernet0/0/0 // RIP route
30.1.1.0/24 Direct 0 0 D 30.1.1.1 GigabitEthernet0/0/1
30.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
(2) Test connectivity
use PC1 Go to ping PC2 Of IP Address , Found that it has been connected 
use PC2 Go to ping PC1 It can also be connected 
5、 Summary
RIP It is mainly used when updating and maintaining routing information 4 A timer : Update timer 、 Aging timer 、 Garbage collection timer 、 Inhibit timer .
RIPv1 and RIPv2 The main difference :
RIPv1 It's a classed routing protocol ;RIPv1 Can not support VLSM, The protocol message does not carry mask information , Manual summary is not supported , It only supports publishing protocol messages by broadcasting ;
RIPv2 It's a classless routing protocol ;RIPv2 Can support VLSM, The protocol message carries mask information , Manual summary is supported , Support plaintext authentication and MD5 authentication , It supports sending messages in the form of broadcast or multicast ;
RIP Routing disadvantages :
because 15 Jump to maximum , therefore RIP It can only be applied to small-scale networks ; Slow convergence ; The route selected according to the number of hops , Not necessarily the best route .
When the network fails or the network topology changes ,RIP The network may generate routing loops . You can pass the maximum number of hops 、 Horizontal segmentation 、 Toxicity reversal 、 Trigger update 、 Suppression time and other technologies to avoid the generation of loops .
If there are mistakes in the article , Welcome to criticize and correct
边栏推荐
猜你喜欢

Hcip ---- relevant knowledge points of GRE protocol, mGRE environment and OSPF Protocol

路由与交换技术——静态路由

手动配置DHCP服务

单臂路由配置实例学习记录

Routing and switching technology - static routing

Gameframework:resource loading, resource loading, dependency loading, task pool, object pool, reference count

Unity3d: script execution sequence on scene loading gameobejct

Manually configure DHCP service

静态路由原理与配置

平方根立方根
随机推荐
Summary of basic SQL operations
Unity3d:ugui, UI and special effect particle level, bakemesh above 2018.2, particles between two images and in Scrollview
C (CSharp) wechat official account development - basic configuration
学习日记——(路由与交换技术)单臂路由
默认路由配置实例学习记录
Super easy to use packet capturing tool tcpdump
How to solve too many if statements
Gameframework: package resources, publish packages with the app, package and generate folder instructions, upload resources to the server, download resources, gamefreamworklist DAT and gameframeworkve
静态路由配置实例学习记录
zabbix监控详细安装到部署
Hcip --- OSPF details
jenkins部署
Unity3d HD rendering pipeline cannot play video on the model
Unity3d: special effect object pool, timeout delete GameObject in the pool, GC weight
Learning diary - (routing and switching technology) OSPF Protocol
Hcip - first experiment
Homework of the fifth week
Instant messaging websocket
yum安装LNMP服务部署
FTP实验及概述