Creating a zone configuration
A zone configuration cannot persist without any member zones. When creating a new zone configuration, the zoning defined-configuration cfg command places you in a command sub-configuration mode where you must add at least one member zone. While zone configurations without any member zones can exist in volatile memory, they are deleted when the transaction commits successfully.
The following procedure adds a new zone configuration to the defined configuration.
- In privileged EXEC mode, enter the configure terminal command to enter global configuration mode.
zoning defined-configuration cfg command and enter a new configuration name.
A subconfiguration mode prompt appears.
member-zone subconfiguration mode command and specify the name of at least one zone.
Add multiple zones in one operation by separating each zone name with a semicolon (;).
- Enter the exit command to return to global configuration mode.
zoning enabled-configuration cfg-action cfg-save command to save the modified configuration to nonvolatile memory.
Example of creating a zone configuration with one member zone:
switch# configure terminal Entering configuration mode terminal switch(config)# zoning defined-configuration cfg config1 switch(config-cfg-config1)# member-zone zone1 switch(config-cfg-config1)# exit switch(config)# zoning enabled-configuration cfg-action cfg-saveNOTEZone aliases are not valid zone configuration members. Adding an alias to an existing zone configuration will not be blocked. However, the attempt to enable a zone configuration that contains aliases will fail with an appropriate error message.