55-55
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 55 Configuring a VoIP Network
Using SmartPorts
•
Display the macro port mappings for a specific port by entering the
show macro map
port
mod/port
command as follows:
Console> (enable)
show macro map port 3/2
Port Macro
----- -----
3/2 videophone
Console> (enable)
Displaying the User-Definable SmartPorts Macro Configuration
The macro and variable definitions are stored in NVRAM and can be displayed by entering the
show
config
command as follows:
Console> (enable)
show config
This command shows non-default configurations only.
Use 'show config all' to show both default and non-default configurations.
.
.
.
....................
begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
#time: Tue Mar 22 2005, 09:39:57
!
#version 8.5(0.52)JAC
!
!
#Macros
set macro name videophone
set port enable #MODPORT
set vlan $DATAVLAN #MODPORT
set port auxiliaryvlan #MODPORT $AUXVLAN
@
!
#Macro-Port mapping
set port macro 3/2 videophone
set port macro 3/7 videophone
!
.
.
.
Configuring a Macro within a Macro
You can have a macro within a macro definition. When the root macro is applied to a port, the macro
inside the root macro gets replaced by its definition and the root macro is applied to the port. You can
also have a static macro (such as ciscoswitch or ciscorouter) inside a user-defined macro definition.
Note
If there is a macro inside a macro definition and if the root macro is applied on a port, the root macro is
displayed by entering the
show macro map
commands.