Virtual machine network connectivity fails with the error: Peer not allowed to change address, blocking port
search cancel

Virtual machine network connectivity fails with the error: Peer not allowed to change address, blocking port

book

Article ID: 344495

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Virtual machines intermittently experience a loss of network connectivity.
  • The VMkernel log contains errors similar to:

    cpuN:cccc)etherswitch: L2Sec_EnforcePortCompliance: 0x100000f: peer not allowed to change address, blocking port

  • You may also get errors:

    cpuN:cccc)etherswitch: L2Sec_EnforcePortCompliance: client <vmname> requested mac address change to <mac> on port 0xN nnnnnnn, disallowed by vswitch policy
    cpuN:cccc)etherswitch: L2Sec_EnforcePortCompliance: client <vmname> has policy violations on port 0xnnnnnnn. Port is blocked


Environment

VMware ESX 4.1.x
VMware vSphere ESXi 5.5
VMware ESX 4.0.x
VMware ESXi 4.1.x Embedded
VMware ESXi 4.1.x Installable
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 5.0
VMware ESXi 4.0.x Embedded

Resolution

These errors are generated when a virtual machine tries to change a MAC address and when the virtual switch security options MAC address change is set to Reject. The attempt to change a MAC address is considered a Layer 2 Security violation. This violation causes the virtual switch port to go in to a blocked state, and cannot send or receive traffic.

If software running in the virtual machine should not be attempting to change the virtual network interface MAC addresses, investigate the Guest operating system and other software within the virtual machine.

If MAC address changes are legitimate or desired in an environment, configure the virtual switch and portgroup security policy MAC address change to Accept.

To set the MAC address change option to Accept:

  1. Log in to ESX host or vCenter Server using vSphere Client.
  2. Select the ESX host and click the Configuration tab.
  3. Click Properties next to the virtual switch or portgroup.
  4. Select the virtual switch or portgroup and click Edit.
  5. Click the Security tab.
  6. From the dropdown for MAC Address Changes, choose Accept.

For vNetwork Distributed Switches, see, vNetwork Distributed PortGroup (dvPortGroup) configuration (1010593).


Additional Information

If you do not want any MAC address changes, see Setting a static MAC address for a virtual NIC (219).vNetwork Distributed PortGroup (dvPortGroup) configuration
Setting a static MAC address for a virtual NIC