FIX: Calculate segment_id for VLAN mode

PRD-2130