07-21-2020 02:58 PM
Hi
I am working on putting ISE into enforcement mode on production switches for 802.1x wired auth.
Currently the access interfaces all have authentication open which needs to be removed.
I have Ansible installed and ready to configure switches.
Is there anyway I could configure a playbook to find interfaces that have 'authentication open' and remove it?
This type of config would also help switch to c3pl down the road.
Thanks!
Waqas
07-21-2020 11:02 PM
If you are using port profiles on the switch, then you can no longer rely on the show run-config command, since the interface statements won't contain all the commands, but will contain port profiles instead.
Perform a show derived-config and then filter out the interfaces that contain the statement authentication open - I am no Ansible expert, but perhaps they have such logic/tools?
One other approach. If you cycle through every interface and apply the command below, it will effectively remove "authentication open" if it exists, or do nothing at all.
no authentication open
07-22-2020 10:34 AM
07-22-2020 03:15 PM
It's definitely an interesting DevOps type of discussion and others might find themselves in the same boat. There is still the "Neanderthal approach" would involves saving the config before the changes (save the running config to flash and name the file appropriately) - and if you need to revert, then copy flash:/emergency-file.cfg run-config
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide