dhcp enable
#
vlan 2
#
vlan 3
#
vlan 4
#
vlan 5
#
dhcp server ip-pool 0
network 10.1.2.0 mask 255.255.255.0
gateway-list 10.1.2.1
#
dhcp server ip-pool 1
network 10.1.3.0 mask 255.255.255.0
gateway-list 10.1.3.1
#
dhcp server ip-pool 2
network 10.1.4.0 mask 255.255.255.0
gateway-list 10.1.4.1
#
dhcp server ip-pool 3
network 10.1.5.0 mask 255.255.255.0
gateway-list 10.1.5.1
#
interface Vlan-interface2
ip address 10.1.2.1 255.255.255.0
dhcp select server global-pool
#
interface Vlan-interface3
ip address 10.1.3.1 255.255.255.0
dhcp select server global-pool
#
interface Vlan-interface4
ip address 10.1.4.1 255.255.255.0
dhcp select server global-pool
#
interface Vlan-interface5
ip address 10.1.5.1 255.255.255.0
dhcp select server global-pool
#
interface Ethernet1/0/1
port link-mode route
ip address 192.168.4.5 255.255.255.0
#
interface Ethernet1/0/2
port link-mode bridge
port access vlan 2
#
interface Ethernet1/0/3
port link-mode bridge
port access vlan 3
#
interface Ethernet1/0/4
port link-mode bridge
port access vlan 4
#
interface Ethernet1/0/5
port link-mode bridge
port access vlan 5
#