R1路由器
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 112.1.1.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]network 112.0.0.0
R2路由器
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 112.1.1.2 24
[Huawei-GigabitEthernet0/0/1]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.2.254 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]rip
[Huawei-rip-1]network 112.0.0.0
[Huawei-rip-1]network 192.168.2.0