S1
vlan batch 2 to 3
dhcp enable
ip pool vlan2
gateway-list 10.0.10.1
network 10.0.10.0 mask 255.255.255.0
ip pool vlan3
gateway-list 10.0.20.1
network 10.0.20.0 mask 255.255.255.0
interface Vlanif2
ip address 10.0.10.1 255.255.255.0
dhcp select global
interface Vlanif3
ip address 10.0.20.1 255.255.255.0
dhcp select global
interface MEth0/0/1
interface Eth-Trunk5
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/23
eth-trunk 5
interface GigabitEthernet0/0/24
eth-trunk 5
S2
vlan batch 2 to 3
dhcp enable
interface Vlanif2