Yes, you can configure separate pools for the two vlans. You simply use the network segment that matches your layer 3 vlan as the dhcp pool name to tie them together.
The procedure is outlined in KB11018 with a set of sample configuration commands for setting up the pool.
http://kb.juniper.net/InfoCenter/index?page=content&id=KB11018
interface VLAN 20 has IP 20.20.20.1/24
Example
[edit]
root@4200-48-2# show system services dhcp
pool 20.20.20.0/24 {
address-range low 20.20.20.50 high 20.20.20.100;
default-lease-time 3600;
name-server {
20.20.20.1;
}
wins-server {
20.20.20.1;
}
router {
20.20.20.1;
}
server-identifier 20.20.20.1;
}
[edit]
root@4200-48-2# show system services dhcp | display set
set system services dhcp pool 20.20.20.0/24 address-range low 20.20.20.50
set system services dhcp pool 20.20.20.0/24 address-range high 20.20.20.100
set system services dhcp pool 20.20.20.0/24 default-lease-time 3600
set system services dhcp pool 20.20.20.0/24 name-server 20.20.20.1
set system services dhcp pool 20.20.20.0/24 wins-server 20.20.20.1
set system services dhcp pool 20.20.20.0/24 router 20.20.20.1
set system services dhcp pool 20.20.20.0/24 server-identifier 20.20.20.1
[edit]
root@4200-48-2# show interfaces vlan.20
family inet {
address 20.20.20.1/24;
}
[edit]
root@4200-48-2# show interfaces ge-0/0/0
unit 0 {
family ethernet-switching {
vlan {
members 20;
}