Switch Macro to migrate onto a new vlan interface

As part of a network migration between one ISP and another. We had to find a way to update remote switch configurations with little fuss and ensuring if anything went wrong then the network would revert back to its previous state. Open the door to Macros’ The following was used on Cisco 3560 series switches.

!
vlan d
vlan 200
name OBS-NETMAN
exit
!
!
macro name OBS-NETMAN-IP
do reload in 30
interface Vlan100
shutdown
interface vlan200
ip address 10.100.17.2 255.255.255.240
no shutdown @
!

wr me

!
!
# the migrations run:
conf t
macro global apply OBS-NETMAN-IP
!

If access was not available then after 30 minutes the switch would reload and pick up its old configuration. Please note in this case we were at least 500 miles away from the closest site and up to 5000 miles away from the farthest. The benefit of the macro is that it continues to run even though you may have just “shutdown” the interface you had a terminal session to.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s