Hi cryptochrome,
Junos calls these "units."
You can do it a couple ways, but if you've got clustering enabled you can only do it with switching mode if you're using Junos 11.1 or newer and only on SRX240 and SRX650 devices (currently).
The "non-switching" way to do it, which works in clusters, is by setting units on your reth interfaces, and enabling VLAN tagging. Here is an example:
reth0 {
vlan-tagging;
redundant-ether-options {
redundancy-group 1;
}
unit 18 {
vlan-id 18;
family inet {
address 192.168.18.1/24;
}
}
unit 400 {
vlan-id 400;
family inet {
address 10.255.4.1/24;
}
}
}