> # Automatically Assigning FlexAttach Virtual pWWN

> Automatic assignment of virtual pWWN can be configured on an NPV switch globally, per VSAN, or per port. When assigned automatically, a virtual WWN is generated from the device local switch WWN.

> ## Prerequisites

> The port must be in a shut state when the virtual pWWN is enabled.

> ## Detailed Steps

> To enable virtual pWWN automatically for all the interfaces, follow these steps:

> 1. From the Device Manger menu bar, select FC > FlexAttach.

> You see the FlexAttach window.

> 2. Check the VirtualWwnAuto check box to enable automatic generation of virtual WWNs on all the fabric port interfaces.

> ## Troubleshooting Tips

> - When the interface-list value is not included in the command, virtual pWWN is assigned globally.
> - All the interfaces mentioned in the interface-list value must be in a shut state.

> Copyright 2010-2015, Cisco Systems, Inc. All rights reserved.