zone hard-zoning enable

Use zone hard-zoning enable to enable hard zoning in a VSAN.

Use undo zone hard-zoning enable to disable hard zoning in a VSAN.

Syntax

zone hard-zoning enable

undo zone hard-zoning enable

Default

Hard zoning is enabled in a VSAN.

Views

VSAN view

Predefined user roles

network-admin

Usage guidelines

Only FCF switches and VSANs operating in FCF mode support this command.

Soft zoning is always in effect. Hard zoning takes effect only when the hardware resources are sufficient for deploying zone rules of the current VSAN. When the hardware resources are insufficient, the system performs the following operations:

To improve the security for a VSAN, you can enable hard zoning for the VSAN. After hard zoning is enabled for a VSAN, the system begins to deploy all zone rules of the VSAN.

When soft zoning can meet the access control requirements of a VSAN, you can disable hard zoning for the VSAN to save the hardware resources. After hard zoning is disabled for a VSAN, the system clears the hardware zone rules already deployed for the VSAN and stops deploying new zone rules.

In enhanced zoning mode, the switch distributes hard zoning status with other zone data. In basic zoning mode, you must manually configure hard zoning to ensure consistency across the fabric.

To view the hard zoning status, use the display zone status command.

Do not configure this command when the switch is merging or distributing zones.

Examples

# Disable hard zoning for VSAN 2.

<Sysname> system-view
[Sysname] vsan 2
[Sysname-vsan2] undo zone hard-zoning enable

Related commands

display zone status