shell: Suport for VLANs

Fixes #1007