macro auto (Global)
The macro auto Global Configuration mode command sets the Auto Smartports administrative global state. The no format of the command returns to the default.
Syntax
macro auto {enabled | disabled | controlled}
no macro auto
Parameters
-
enabled—Auto Smartport administrative global and operational states are enabled.
-
disabled—Auto Smartport administrative global and operational states are disabled.
-
controlled—Auto Smartport administrative global and operational states are enabled when Auto Voice VLAN is in operation.
Default Configuration
Administrative state is Disabled
Command Mode
Global Configuration mode
User Guidelines
Regardless of the status of Auto Smartport, you can always manually apply a Smartport macro to its associated Smartport type. A Smartport macro is either a built-in macro or a user-defined macro. You can define and apply a macro using the CLI commands presented in the Macro Commands section.
If the Auto Smartport Administrative state is controlled, the Auto Smartport Operational state is managed by the Voice VLAN manager and is set as follows:
-
Auto Smartport Operational state is disabled when the OUI Voice VLAN is enabled.
Auto Smartport Operational state is enabled when the Auto Voice VLAN is enabled.
A user cannot enable Auto Smartport globally if the OUI Voice VLAN is enabled.
Example
This example shows an attempt to enable the Auto Smartport feature globally in the controlled mode. This is not possible because the OUI voice feature is enabled. The voice VLAN state is then disabled, after which Auto Smartports can be enabled. The appropriate VLANs are automatically enabled because the ports are configured for Auto Smartports on these VLANs.
switchxxxxxx(config)# macro auto controlled
switchxxxxxx(config)# macro auto enabled
Auto smartports cannot be enabled because OUI voice is enabled.
switchxxxxxx(config)# voice vlan state disabled
switchxxxxxx(config)# macro auto enabled
switchxxxxxx(config)#
10-Apr-2011 16:11:31 %LINK-I-Up: Vlan 20
10-Apr-2011 16:11:33 %LINK-I-Up: Vlan 5
10-Apr-2011 16:11:33 %LINK-I-Up: Vlan 6
10-Apr-2011 16:11:33 %LINK-I-Up: Vlan 7
10-Apr-2011 16:11:33 %LINK-I-Up: Vlan 8
10-Apr-2011 16:11:33 %LINK-I-Up: Vlan 9
10-Apr-2011 16:11:33 %LINK-I-Up: Vlan 10