某企业有两个分支机构和一个总部,为业务发展,总部决定租用运营商链路连接各分支机构如图所示。作为网络管理员,请使用RIP协议实现该网络互联互通。
R2: <Huawei>systen-view [Huawei]sysname R2 [R2]int g 0/0/0 [R2-G0/0/0]ip address 192.168.2.254 24 [R2-G0/0/1]int g0/0/1 [R2-G0/0/1]ip address 192.168.100.1 30 [R2-G0/0/1]quit [R2]rip1 #启动RIP进程,进程号为1 [R2-rip-1]version 2 #声明版本号为2 [R2-rip-1]undo summary #关闭自动汇总功能 [R2-rip-1]network 192.168.100.0 #宣告g0/0/1接口地址所属的主类网络号 [R2-rip-1]network 192.168.2.0 #宜告go/0/0接口地址所属的主类网络号
R1: <Huawei>system-view [Huawei]sysname R1 [R1]int g0/0/0 [R1-G0/0/0]ip address 192.168.1.254 24 [R1-G0/0/0]int g0/0/1 [R1-G0/0/1]ip address 192.168.100.2 30 [R1-G0/0/1]quit [R1]rip1 [R1-rip-1]version 2 [R1-rip-1]undo summary [R1-rip-1]network 192.168.1.0 [R1-rip-1]network 192.168.100.0
R3: <Huawei>system-view [Huawei]sysname R3 [R3]int g0/0/0 [R3-G0/0/0]ip address 192.168.3.254 24 [R3-G0/0/0]int g0/0/2 [R3-G0/0/2]ip address 192.168.100.6 30 [R3-G0/0/2]quit [R3]rip 1 [R3-rip-1]version 2 [R3-rip-1]undo summary [R3-rip-1]network 192.168.3.0 [R3-rip-1]network 192.168.100.0