If the possibility of this macro doesn’t work, first let’s set reload for 10 minutes later. So that device will open with the previous configuration, If something went wrong. If this macro works, I will cancel the reload via “reload cancel” command.
Below is an example of LAG. I am going to configure LAG remotely, without console.
reload in 10
conf t
macro name Lag_Config
int range te 1/1/3 – 4
sw
channel-group 10 mode active
channel-protocol lacp
no sh
int port-channel 10
sw tr enc dot1q
sw mode tr
no sh
end
@
Lets check macro:
sh run | b macro
lets run:
conf t
macro global apply Lag_Config

