Legacy vDS VLAN Security Settings to NSX VLAN Segment MAC Learning Configuration Model
search cancel

Legacy vDS VLAN Security Settings to NSX VLAN Segment MAC Learning Configuration Model

book

Article ID: 440287

calendar_today

Updated On:

Products

VMware HCX VMware vSphere ESXi

Issue/Introduction

When moving workloads from a traditional vSphere Distributed Switch / VLAN port group model to an NSX-backed segment model, administrators may no longer see the classic vCenter port group security settings:

  • Promiscuous mode
  • MAC address changes
  • Forged transmits

On a traditional vDS port group, these settings are exposed under the port group security policy and can be set to Accept or Reject. On NSX-backed segments, these controls are handled differently through NSX policy and segment profiles.

This article explains the configuration model change from legacy Promiscuous Mode / MAC Address Changes / Forged Transmits to NSX MAC Discovery / MAC Learning behavior.

 

Environment

VMware Cloud Foundation
VMware NSX 
vCenter Server
NSX-backed VLAN segments
NSX-backed overlay segments
vSphere Distributed Switch port groups

Cause

This behavior is expected.

NSX-backed networking does not always expose the same legacy vSphere Distributed Port Group security options in the vCenter UI. Broadcom KB 394260 states that NSX favors Segment Profiles for applying L2 security settings, and that those profiles do not include some legacy settings such as Promiscuous Mode because NSX uses newer technologies such as MAC Learning.

Legacy vDS security policy settings and NSX policy-based segment settings are different configuration models:

Legacy vDS model:

  • Promiscuous mode
  • MAC address changes
  • Forged transmits

NSX-backed segment model:

  • MAC Discovery Profile
  • MAC Learning
  • MAC Change
  • Unknown Unicast Flooding
  • Segment Security Profile

Resolution

For NSX-backed segments, use NSX Segment Profiles as the persistent configuration method.

Recommended persistent configuration

  1. Log in to NSX Manager.
  2. Navigate to:
    • Networking > Segments > Segment Profiles
  3. Create or edit a MAC Discovery Profile.
  4. Enable the required L2 behavior, commonly:
    • MAC Learning
    • MAC Change
    • Unknown Unicast Flooding, if required by the workload/design
  5. Apply the MAC Discovery Profile to the applicable NSX segment.
  6. Validate the workload behavior after the profile is applied.

For workloads that previously required promiscuous mode or multiple learned MAC addresses behind a single vNIC, MAC Learning is typically the NSX-side configuration to evaluate first. Broadcom KB 422266 describes MAC Learning as an alternative to promiscuous mode in NSX-T environments for a scenario where traffic flow was blocked without MAC Learning enabled.

Additional Information

MAC Learning is not always identical to true promiscuous mode.

Promiscuous mode allows a VM interface to receive frames that are not addressed to the VM’s own vNIC MAC address. MAC Learning allows NSX to learn additional MAC addresses behind a port and forward traffic based on those learned MACs. For many NSX-backed segment use cases, MAC Learning is the intended replacement behavior. If a workload explicitly requires true promiscuous receive behavior, validate the requirement against the application/vendor design and consider whether a traditional vDS port group is more appropriate.

Understanding MAC Discovery Segment Profile