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.
I performed an upgrade to a c9300-48 running 16.12.3 and noticed that the "ip dhcp snoooping" command was not present after an upgrade to 17.3.4. This does not effect the devices as they can still do dhcp but may be an issue
I have a Cisco WAP125, and it's acting as a bridge. It connects to the Wifi network from my ISP's modem, and I have an ethernet cable going from the WAP to a router, and I have 2 computers connected to that router via ethernet cable. The two computers hav...
Hello Community , I am working on the configuration templates for the upcoming Project, can anyone help me to get the default configuration template for C9500-16X. I would really appreciate all your time and efforts , Thanks in advance
Hi, I have a VPN from head office to remote office as follows: Head office: 10.10.10.0/24 - Cisco ASA 5508Remote office: 10.10.20.0/24 - Cisco 887 router Currently users print from a server 10.10.10.15 to a prin...