划分DHCP语句:

set system services dhcp router 192.168.200.254
set system services dhcp router 192.168.3.254

set system services dhcp router 192.168.1.1
set system services dhcp pool 192.168.1.0/24 address-range low 192.168.1.2
set system services dhcp pool 192.168.1.0/24 address-range high 192.168.1.254
set system services dhcp pool 192.168.200.254/24 address-range low 192.168.200.200
set system services dhcp pool 192.168.200.254/24 address-range high 192.168.200.253
set system services dhcp pool 192.168.3.254/24 address-range low 192.168.3.100
set system services dhcp pool 192.168.3.254/24 address-range high 192.168.3.254

以上配置方法出现个奇怪现象:

用户端接入200网段时候,发现获取到3个网关,但是可以正常上网。

解决方法如下:

set system services dhcp pool 192.168.1.0/24 address-range low 192.168.1.2
set system services dhcp pool 192.168.1.0/24 address-range high 192.168.1.254
set system services dhcp pool 192.168.1.0/24 router 192.168.1.1
set system services dhcp pool 192.168.200.254/24 address-range low 192.168.200.200
set system services dhcp pool 192.168.200.254/24 address-range high 192.168.200.253
set system services dhcp pool 192.168.200.254/24 router 192.168.200.254
set system services dhcp pool 192.168.3.254/24 address-range low 192.168.3.100
set system services dhcp pool 192.168.3.254/24 address-range high 192.168.3.254
set system services dhcp pool 192.168.3.254/24 router 192.168.3.254