Cisco command configuration Tip 2: macro command

Source: Internet
Author: User

In Cisco command configuration tip 1, we talked about using the Range Command to simplify our configuration.

 

However, if we often operate on a group of discontinuous ports

 

Such as interface-range fa1/1, fa1/3, fa1/5, fa1/7, fa1/11

 

Even using the Range Command is cumbersome.

 

We always think that the simpler the better (there are more commands, and the salary is the same as the number of words in the command. How nice is the salary calculated by the number of words in the Command)

 

In this case, the macro command of the switch will be used.

 

Suzhouxiaoniu(Config) # define interface-range ABC fa1/1, fa1/3, fa1/5, fa1/7, fa1/11

Suzhouxiaoniu(Config) # inter range macro ABCABC is the macro name defined above and can be called directly.

Suzhouxiaoniu(Config-if-range) # SWI Mo ACC
Suzhouxiaoniu(Config-if-range) # swi acc vlan 4


This article is from the "Cisco technical exchange" blog. For more information, contact the author!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.