路由信息协议RIP(Routing Information Protocol)是基于距离矢量算法的路由协议,利用跳数来作为计量标准。在带宽、配置和管理方面要求较低,主要适合于规模较小的网络中。
实验拓扑:
配置各PC地址:
R配置:
[H3C]sysname R1
[R1]int s1/0
[R1-Serial1/0]ip add 10.0.1.1 24
[R1-Serial1/0]int g0/0
[R1-GigabitEthernet0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0]int g0/1
[R1-GigabitEthernet0/1]ip add 192.168.2.254 24
[R1]rip 10
[R1-rip-10]version 2
[R1-rip-10]undo summary
[R1-rip-10]network 192.168.1.0 255.255.255.0
[R1-rip-10]network 192.168.2.0 255.255.255.0
[R1-rip-10]network 10.0.1.0 255.255.255.0
R2配置:
[R2]int s1/0
[R2-Serial1/0]ip add 10.0.1.2 24
[R2-Serial1/0]int s2/0
[R2-Serial2/0]ip add 10.0.2.1 24
[R2-Serial2/0]rip 10
[R2-rip-10]version 2
[R2-rip-10]undo summary
[R2-rip-10]network 10.0.1.0 255.255.255.0
[R2-rip-10]network 10.0.2.0 255.255.255.0
R3配置:
[H3C]sysname R3
[R3]int g0/0
[R3-GigabitEthernet0/0]ip add 192.168.3.254 24
[R3-GigabitEthernet0/0]int s1/0
[R3-Serial1/0]ip add 10.0.2.2 24
[R3-Serial1/0]int g0/1
[R3-GigabitEthernet0/1]ip add 192.168.4.254 24
[R3-GigabitEthernet0/1]qu
[R3]rip 10
[R3-rip-10]version 2
[R3-rip-10]undo summary
[R3-rip-10]network 192.168.3.0 255.255.255.0
[R3-rip-10]network 192.168.4.0 255.255.255.0
[R3-rip-10]network 10.0.2.0 255.255.255.0
实验测试:
(=゚㉨゚=) ▄︻┻┳━ ·.`.`.`. 此文章若有错误请大佬指正