R1
<Huawei>undo t m
<Huawei>sy
[Huawei]sy R1
[R1]dhcp enable
[R1]ip pool huawei1.0
[R1-ip-pool-huawei1.0]gateway-list 10.1.1.1
[R1-ip-pool-huawei1.0]network 10.1.1.0 mask 24
[R1-ip-pool-huawei1.0]int g0/0/0
[R1-GigabitEthernet0/0/0]ip ad 12.1.1.1 24
[R1-GigabitEthernet0/0/0]dhcp select global
[R1-GigabitEthernet0/0/0]q
[R1]dhcp enable
[R1]ip pool huawei2.0
[R1-ip-pool-huawei2.0]gateway-list 10.1.2.1
[R1-ip-pool-huawei2.0]network 10.1.2.0 mask 24
[R1-ip-pool-huawei2.0]q
[R1]ip route-static 10.1.1.0 24 g0/0/0 12.1.1.2
[R1]ip route-static 10.1.2.0 24 g0/0/0 12.1.1.2
R2
<Huawei>undo t m
<Huawei>sy
[Huawei]sy R2
[R2]dhcp enable
[R2]dhcp server group bosai1.0
[R2-dhcp-server-group-bosai1.0]dhcp-server 12.1.1.1
[R2-dhcp-server-group-bosai1.0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip ad 10.1.1.1 24
[R2-GigabitEthernet0/0/1]dhcp select relay
[R2-GigabitEthernet0/0/1]dhcp relay server-select bosai1.0
[R2-GigabitEthernet0/0/1]int g0/0/0
[R2-GigabitEthernet0/0/0]ip ad 12.1.1.2 24
[R2-GigabitEthernet0/0/0]q
[R2]int g0/0/2
[R2-GigabitEthernet0/0/2]ip ad 10.1.2.1 24
[R2-GigabitEthernet0/0/2]q
[R2]dhcp server group bosai2.0
[R2-dhcp-server-group-bosai2.0]dhcp-
[R2-dhcp-server-group-bosai2.0]dhcp-server 12.1.1.1
[R2-dhcp-server-group-bosai2.0]int g0/0/2
[R2-GigabitEthernet0/0/2]dhcp select relay
[R2-GigabitEthernet0/0/2]dhcp relay server-select bosai2.0