Fixed a bug in IP allocation for VLAN tests