Graham Mundell, Telecom New Zealand, Weymouth, Auckland, New Zealand.
You can create macros to run a series of commands on a Cisco switch. This can be handy if you're logged in to a remote device and want to change the configuration, but doing so will mean you lose management access part-way through. You can define a macro and run it; even though you lose management access part way through, the macro will continue to run.
To configure the macro:
Enter configuration mode
Use the command macro name
Enter the commands you want the macro to run
Finish with @
The example below shows how to change the management VLAN from 1 to 100. Removing the IP address from the current management VLAN will disconnect your telnet session, but the macro will still execute the rest of the commands.
config t macro name Change-vlan interface Vlan1 no ip address shutdown interface vlan100 ip address 172.29.159.6 255.255.255.252 no shutdown @
To receive the latest information on Cisco online tools, certifications, support documentation, insights from Cisco experts and peers, and upcoming events, check out the Cisco Technical Services Newsletter today.
Cisco Champion Radio · S7|E45 Network Insights with AI Endpoint Analytics
Identifying who and what is on the network is a challenge for many organizations. Incomplete visibility makes it difficult to implement advanced security policies and recommendatio...
HI, In the attached diagram from cisco site if we assume R101 and R102 are two DC having a layer 2 link and both are advertising same subnet (eg. 192.168.12.0/24) to the ISP i understand by using BGP metrics we can make one DC primary and other as se...
Hey There, So I have created another ROAS setup (using packet tracerr) but this time I have a router connected to a 3560 SW, that is in turn connected to a 2960 SW. I have created the sub-IF on the router and have set up the links between ...
Sorry for posting so many questions about issues with connecting to devices, and thank you in advance for all the help. Okay, so I am trying to access a SG300-52P using the Console port (DB9 port on the back of the switch). I purchased a USB to RS232...
Hello guys, I have some questions regarding MTU and the different way to configure it on Cisco devices and I don't find any good documentation on that particular topic. First of all, what will happen if a device receive a packet larger than the ...