Chapter 55 Configuring a VoIP Network

Using SmartPorts

Clearing (deleting) a macro—You can clear a macro when it is no longer needed. When you clear a macro, only the macro and its definition are cleared from the system; the configuration on the ports that the macro was applied to is not cleared. To clear a macro, enter the clear macro name command.

Types of macros—The two types of macros are the global macros and the port-based macros.

Using the CLI to Configure User-Definable SmartPorts Macros

These sections describe how to use the CLI to configure user-definable SmartPorts macros:

Creating User-Defined Macros, page 55-48

Modifying Existing User-Defined Macros, page 55-49

Defining Variables, page 55-49

Using Special Variables, page 55-50

Applying a User-Defined Macro, page 55-50

Displaying Macros, page 55-52

Displaying Macro Variables, page 55-52

Clearing Macros and Macro Variables, page 55-53

Displaying Macro Port Mappings, page 55-54

Displaying the User-Definable SmartPorts Macro Configuration, page 55-55

Configuring a Macro within a Macro, page 55-55

Creating User-Defined Macros

To create (define) a macro, use the set macro name name command to enter a list of commands (one command per line). To end the macro and exit from the macro mode, type the @ break character and then press Enter. An example is as follows:

Console> (enable) set macro name videophone

Enter macro commands one per line. End with character ‘@’.

set port enable #MODPORT set vlan $DATAVLAN #MODPORT

set port auxiliaryvlan #MODPORT $AUXVLAN set qos autoqos

@

Console> (enable)

Follow these guidelines and restrictions when creating user-defined macros:

The maximum length of a macro name is 16 characters. The maximum number of command lines in a macro is 64. A macro cannot have the same name as a static macro (such as ciscoswitch or ciscorouter).

You can have a macro inside a macro in user-defined and static macros.

Syntax checking is not done when you create or modify a macro. If you enter incorrect commands when creating the macro, the incorrect commands fail when the macro is applied to a port.

In the above example, #MODPORT is a variable that specifies the port to which the macro is applied. If the macro is applied on port 3/2, then #MODPORT is replaced by 3/2 when the macro is applied to a port.

 

Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7

55-48

OL-8978-02

Page 48
Image 48
Cisco Systems OL-8978-02 Using the CLI to Configure User-Definable SmartPorts Macros, Creating User-Defined Macros, 55-48

OL-8978-02 specifications

Cisco Systems OL-8978-02 is a comprehensive training curriculum designed to enhance the skills and knowledge of network professionals seeking to advance their careers in network management and security. This curriculum offers a significant focus on Cisco networking technologies and concepts, ensuring that learners are well-equipped to handle the intricacies of modern network environments.

One of the primary features of OL-8978-02 is its in-depth coverage of foundational networking concepts, which are crucial for effective network administration. The curriculum includes detailed modules on networking fundamentals, such as OSI and TCP/IP models, LAN and WAN architectures, and network protocols. This solid foundation enables learners to understand how different networking components interact and function together, forming the backbone of corporate and enterprise environments.

In addition to foundational knowledge, OL-8978-02 integrates a strong focus on security technologies and practices. Considering the increasing prevalence of cyber threats, the course emphasizes the importance of implementing robust security measures. Participants will learn about firewalls, intrusion prevention systems, VPNs, and other critical security technologies. This focus ensures that learners are prepared to safeguard networks against evolving security threats, a necessity in today’s digital landscape.

Another distinguishing characteristic of the OL-8978-02 curriculum is its emphasis on hands-on experience. The program often includes practical labs and simulations, allowing participants to apply theoretical knowledge in real-world scenarios. This experiential learning approach is pivotal for solidifying skills and boosting confidence in network management tasks.

Furthermore, OL-8978-02 addresses the latest advancements in networking technology, including software-defined networking (SDN) and cloud computing. By introducing emerging technologies, this curriculum ensures that professionals remain ahead of the curve, ready to adapt to the future demands of networking.

Finally, Cisco Systems OL-8978-02 positions itself not only as an educational tool but also as a career catalyst, providing learners with skills that are highly sought after in the IT job market. Upon completion, participants often find themselves well-prepared for various Cisco certifications, which can enhance their employability and professional growth opportunities in a competitive landscape. Through its thorough approach, OL-8978-02 plays a vital role in shaping the next generation of network professionals.