vlan policy deny
To enter VLAN policy configuration mode for a user role, use the vlan policy deny command. To revert to
the default VLAN policy for a user role, use the no form of this command.
vlan policy deny
no vlan policy deny
Syntax Description
This command has no arguments or keywords.
Command Default
All VLANs
Command Modes
User role configuration
Command History
ModificationRelease
This command was introduced.4.0(1)
Usage Guidelines
This command denies all VLANs to the user role except for those that you allow using thepermit vlan
command in user role VLAN policy configuration mode.
This command does not require a license.
Examples
This example shows how to enter user role VLAN policy configuration mode for a user role:
switch# configure t
switch(config)# role name MyRole
switch(config-role)# vlan policy deny
switch(config-role-vlan)#
This example shows how to revert to the default VLAN policy for a user role:
switch# configure t
switch(config)# role name MyRole
switch(config-role)# no vlan policy deny
Related Commands
DescriptionCommand
Allows a VLAN in a user role VLAN policy.permit vlan
Creates or specifies a user role and enters user role
configuration mode.
role name
Displays user role information.show role
Cisco Nexus 7000 Series Security Command Reference
988
V Commands
vlan policy deny