- 配ip
- 对AR1,AR2,AR3启动rip协议并宣告
![](https://i-blog.csdnimg.cn/blog_migrate/862a59b45bbfa8d3a5a696732772822c.png)
[Huawei]sys r1
[r1]inter GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1]inter GigabitEthernet 0/0/1
[r1-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[r1]inter LoopBack 0
[r1-LoopBack0]ip address 1.1.1.1 32
[r1]dhcp enable
[r1]ip pool abc
[r1-ip-pool-abc]netbios-type
[r1-ip-pool-abc]network 192.168.1.0 mask 24
[r1-ip-pool-abc]gateway-list 192.168.1.1
[r1-ip-pool-abc]dns-list 8.8.8.8
[r1]inter GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]undo summary
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 1.0.0.0
[r1-rip-1]network 12.0.0.0
[Huawei]sys r2
[r2]inter GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2]inter GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2]inter LoopBack 0
[r2-LoopBack0]ip address 2.2.2.2 32
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]undo summary
[r2-rip-1]network 12.0.0.0
[r2-rip-1]network 2.0.0.0
[r2-rip-1]network 23.0.0.0
[Huawei]sys r3
[r3]inter GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3]inter GigabitEthernet 0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[r3]inter LoopBack 0
[r3-LoopBack0]ip address 3.3.3.3 32
[r3]dhcp enable
[r3]ip pool abc
[r3-ip-pool-abc]network 192.168.2.0 mask 24
[r3-ip-pool-abc]gateway-list 192.168.2.1
[r3-ip-pool-abc]dns-list 8.8.8.8
[r3]inter GigabitEthernet 0/0/1
[r3-GigabitEthernet0/0/1]dhcp select global
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]undo summary
[r3-rip-1]network 23.0.0.0
[r3-rip-1]network 3.0.0.0
[r3-rip-1]network 192.168.2.0