Ever needed to make changes to multiple interfaces that are not within the same range? I know I have and always wondered how to update interfaces that were not sequntially ordered. Here is how.
We need to create a macro and then invoke it before we apply our changes.
Creating the macro:
Cisco_4948E_01#config t
Cisco_4948E_01(config) define interface-range joel GigabitEthernet1/20 , GigabitEthernet1/22 , GigabitEthernet1/24
Invoking the Macro: This now put us into interface configuration mode
Cisco_4948E_01(config)#interface range macro joel
Cisco_4948E_01(config-if-range)#
Cisco_4948E_01(config-if-range)#description macro-test
Verification that our change were successful:
Cisco_4948E_01#show interfaces description | include macro-test
Gi1/20 down down macro-test
Gi1/22 down down macro-test
Gi1/24 down down macro-test
No comments:
Post a Comment