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!