Cisco WS-C6506 Software Manual page 1433

Catalyst 6500 series switch
Hide thumbs Also See for WS-C6506:
Table of Contents

Advertisement

Chapter 55
Configuring a VoIP Network
Variable AUXVLAN successfully created
Console> (enable) set macro variable $AUXVLAN 77 3/7
Console> (enable) set macro variable $DATAVLAN 99
Console> (enable) set macro variable $CDPVER v2
Variable CDPVER successfully created
Console> (enable)
Apply the macro on port 3/2.
Step 3
Console> (enable) set port macro 3/2 videophone
Before the macro is applied, the $DATAVLAN and $AUXVLAN variables are replaced by "3" and "4,"
respectively, and then the following commands are executed:
set port enable 3/2
set vlan 3 3/2
set port auxiliaryvlan 3/2 4
set cdp enable
set cdp version v2
set qos autoqos
Apply the macro on port 3/7.
Step 4
Console> (enable) set port macro 3/7 videophone
Before the macro is applied, the $AUXVLAN variable is replaced by "77." $DATAVLAN is not defined
for port 3/7, so the macro searches the list of global variables and finds $DATAVLAN. In this case, the
$DATAVLAN variable is replaced by the global definition "99," and then the following commands are
executed:
set port enable 3/7
set vlan 99 3/7
set port auxiliaryvlan 3/7 77
set cdp enable
set cdp version v2
set qos autoqos
Follow these guidelines and restrictions when applying user-defined macros:
If you attempt to apply a macro on a port and the macro has a variable that is not defined in its
definition, the macro is not applied on the port and an appropriate error message is displayed. This
error response does not affect the definition of the macro.
If you attempt to apply a macro on a port and the macro has some valid and some invalid commands
in its definition, the macro is still applied on the port and an appropriate error message is displayed
when the invalid command is executed. This error response does not affect the definition of the
macro.
When you apply a macro, a record of the macro being applied is not stored in the configuration file
or NVRAM. However, each port has a record of the latest macro that was applied to it.
Once a macro is applied to a port, you cannot clear the macro. However, one way to back out a macro
on a port is to define another macro that clears the configurations on the port and then apply the
newly created macro on the port.
OL-8978-04
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
Using SmartPorts
55-51

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6506Catalyst 6509Catalyst 6513

Table of Contents