RIP基础配置

RIP基础配置_rip

#路由器基础配置
#R1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys R1
[R1]int gi0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/0]int gi 0/0/1
[R1-GigabitEthernet0/0/1]ip add 13.1.1.1 24
[R1-GigabitEthernet0/0/1]int gi0/0/2.
[R1-GigabitEthernet0/0/2]ip add 192.168.1.1  24
[R1-GigabitEthernet0/0/2]q
#R2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys R2
[R2]int gi0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/0]int gi0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.2.1 24
[R2-GigabitEthernet0/0/1]q
#R3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys R3
[R3]int gi0/0/0
[R3-GigabitEthernet0/0/0]ip add 13.1.1.3 24
[R3-GigabitEthernet0/0/0]int gi0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[R3-GigabitEthernet0/0/1]q
#pcIP截图省略

#RIP配置
#R1
[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]network 192.168.1.0
[R1-rip-1]network 12.1.1.0 ### 注意 按照主类地址(自然掩码)写不能按照子网划分写
Error: The network address is invalid, and the specified address must be major-n
et address without any subnets.
[R1-rip-1]network 12.0.0.0
[R1-rip-1]network 13.0.0.0
#R2
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]net 192.168.2.0
[R2-rip-1]net 12.0.0.0
#R3
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]net 13.0.0.0
[R3-rip-1]net 192.168.3.0

RIP基础配置_rip_02

RIP基础配置_rip_03

RIP基础配置_数通_04

pc1 PING pc2 pc3

RIP基础配置_华为_05