LSW1
<Huawei>undo t m
<Huawei>sy
[Huawei]v b 12
[Huawei]int v12
[Huawei-Vlanif12]ip ad 12.1.1.254 24
[Huawei-Vlanif12]q
[Huawei]dhcp enable
[Huawei]int v12
[Huawei-Vlanif12]dhcp select interface
[Huawei-Vlanif12]dhcp server static-bind ip
[Huawei-Vlanif12]dhcp server static-bind ip-address 12.1.1.12 mac-address
5489-984A-6B6B
[Huawei-Vlanif12]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-t a
[Huawei-GigabitEthernet0/0/1]po de v 12
[Huawei-GigabitEthernet0/0/1]q
[Huawei]v b 33
[Huawei]int v33
[Huawei-Vlanif33]ip ad 33.1.1.1 24
[Huawei-Vlanif33]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-t t
[Huawei-GigabitEthernet0/0/2]po t a v a
[Huawei-GigabitEthernet0/0/2]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 33.1.1.0 0.0.0.255
LSW2
<Huawei>undo t m
<Huawei>sy
[Huawei]v b 24
[Huawei]int v24
[Huawei-Vlanif24]ip ad 24.1.1.254 24
[Huawei-Vlanif24]dhcp en
[Huawei-Vlanif24]q
[Huawei]dhcp enable
[Huawei]int v24
[Huawei-Vlanif24]q
[Huawei]ip pool 1
[Huawei-ip-pool-1]net
[Huawei-ip-pool-1]network 24.1.1.0 mask 24
[Huawei-ip-pool-1]gateway-list 24.1.1.254
[Huawei-ip-pool-1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]int v24
[Huawei-Vlanif24]dhcp select global
[Huawei-Vlanif24]q
[Huawei]ip pool 1
[Huawei-ip-pool-1]static-bind ip-address 24.1.1.24 mac-address
5489-98D0-0409
[Huawei-ip-pool-1]q
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-t a
[Huawei-GigabitEthernet0/0/2]q
[Huawei]v b 33
[Huawei]int v33
[Huawei-Vlanif33]ip ad 33.1.1.2 24
[Huawei-Vlanif33]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port de v 33
[Huawei-GigabitEthernet0/0/2]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-t t
[Huawei-GigabitEthernet0/0/1]po t a v a
[Huawei-GigabitEthernet0/0/1]ospf 1
[Huawei-ospf-1]a 0
[Huawei-ospf-1-area-0.0.0.0]net 33.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]net 24.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]int v24
[Huawei-Vlanif24]ip pool 1
[Huawei-ip-pool-1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]dhcp sel
[Huawei-GigabitEthernet0/0/2]int v24
[Huawei-Vlanif24]dhcp select global
[Huawei-Vlanif24]ip pool 1
[Huawei-ip-pool-1]int v33
[Huawei-Vlanif33]int v24
[Huawei-Vlanif24]ospf 1
[Huawei-ospf-1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]po de v 24