R1
<Huawei>undo t m
<Huawei>sy
[Huawei]dhcp enable
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip ad 192.168.40.254 24
[Huawei-Ethernet0/0/0]dhcp select interface
[Huawei-Ethernet0/0/0]dhcp server static-bind ip-address 192.168.40.28 mac-addre
ss 5489-9871-71A0
[Huawei-Ethernet0/0/0]q
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]ip ad 12.1.1.1 24
[Huawei-Ethernet0/0/1]ospf 1
[Huawei-ospf-1]a 0
[Huawei-ospf-1-area-0.0.0.0]net 12.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]net 192.168.40.0 0.0.0.255
R2
<Huawei>undo t m
<Huawei>sy
[Huawei]dhcp enable
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]ip ad 200.177.1.254 24
[Huawei]ip pool 1
[Huawei-ip-pool-1]network 200.177.1.0 mask 24
[Huawei-ip-pool-1]gateway-list 200.177.1.254
[Huawei-ip-pool-1]int e0/0/1
[Huawei-Ethernet0/0/1]dhcp select global
[Huawei-Ethernet0/0/1]static-route
[Huawei-Ethernet0/0/1]q
[Huawei]ip pool 1
[Huawei-ip-pool-1]static-bind ip-address 200.177.1.50 mac-address 5489-9833-73
8B
[Huawei-ip-pool-1]q
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip ad 12.1.1.2 24
[Huawei-Ethernet0/0/0]ospf 1
[Huawei-ospf-1]a 0
[Huawei-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 200.177.1.0 0.0.0.255