Macro’s in Switches

I like using macro’s in switches. I find them useful since¬†different customers have different requirements (for example ports that are not used). Here’s a couple of examples-

So there’s three macro’s; UNUSED, AP and PRINTER. You’ll notice that each macro has a variable of $interface. We use that variable to determine what port to apply the macro to. For example we want to apply the UNUSED macro to port Gi2/0/24. We want to apply this in Global Configuration mode and not under the interface itself.

 

Leave a Reply

Your email address will not be published. Required fields are marked *