Chapter 55 Configuring a VoIP Network

Using SmartPorts

In the above example, $DATAVLAN and $AUXVLAN are variables and are substituted with appropriate values when the macro is applied to a port.

After the macro is defined, it is stored in NVRAM.

Modifying Existing User-Defined Macros

To modify an existing user-defined macro, use the set macro name name command. When modifying a macro, the new definition replaces the old definition but the new definition is not automatically applied to all the ports on which it was previously applied. You need to explicitly apply the modified macro. An example is as follows:

Console> (enable) set macro name fileserver

Enter macro commands one per line. End with the character '@'. cmd1

cmd2

@

Console> (enable)

The macro named “fileserver” can be overwritten by creating a macro with the same name and new definitions. An example is as follows:

Console> (enable) set macro name fileserver

Enter macro commands one per line. End with the character '@'. cmd2

cmd3

@

Warning: The macro fileserver has been modified; Do you want to modify (y/n) y Console> (enable)

Defining Variables

To define a variable, use the set macro variable name_of_variable variable_of_value [mod/port] command. You can define the variable on a per-port basis or a global basis. When a macro is applied to a port, the variables are replaced with the values that you have defined. The maximum length of a variable name is 16 characters. A macro definition can use multiple variables in a single line. Per-port variables are defined on a per-port basis. Individual ports can be configured with different values by defining variables with different values for different ports. If a variable definition does not have port information, then it is treated as a global variable. The global variable definition is used if the per-port variable is not defined. An example is as follows:

Console> (enable) set macro variable $DATAVLAN 3 3/2

Variable DATAVLAN successfully created

Console> (enable) set macro variable $DATAVLAN 5 3/3

Console> (enable) set macro variable $AUXVLAN 4 3/2

Variable AUXVLAN successfully created

Console> (enable)

If a port is not specified in the variable definition, the variable is considered a global variable. An example is as follows:

Console> (enable) set macro variable $CDPVER v2

Variable CDPVER successfully created

Console> (enable)

Console> (enable) set macro variable $DATAVLAN 77

Console> (enable)

 

 

Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7

 

 

 

 

 

 

OL-8978-02

 

 

55-49

 

 

 

 

 

Page 49
Image 49
Cisco Systems OL-8978-02 manual Modifying Existing User-Defined Macros, Defining Variables, 55-49

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.