R1
<H3C>sys
[H3C]interface GigabitEthernet 0/0
[H3C-GigabitEthernet0/0]ip address 192.168.1.1 24
[H3C-GigabitEthernet0/0]quit
[H3C]interface GigabitEthernet 0/1
[H3C-GigabitEthernet0/1]ip address 172.16.1.1 24
[H3C-GigabitEthernet0/1]quit
[H3C]rip
[H3C-rip-1]network 192.168.1.0
[H3C-rip-1]network 172.16.1.0
[H3C-rip-1]qu
[H3C]qu
<H3C>save
R2
<H3C>sys
[H3C]interface GigabitEthernet 0/1
[H3C-GigabitEthernet0/1]ip address 172.16.1.2 24
[H3C-GigabitEthernet0/1]qu
[H3C]interface GigabitEthernet 0/0
[H3C-GigabitEthernet0/0]ip address 172.16.2.1 24
[H3C-GigabitEthernet0/0]qu
[H3C]rip
[H3C-rip-1]network 172.16.1.0
[H3C-rip-1]network 172.16.2.0
[H3C-rip-1]qu
[H3C]qu
<H3C>save