01-27-2019 03:33 AM - edited 03-08-2019 05:09 PM
I have got lots of commands under each interface of my switch. I would like to make it less cluttered using interface template.
The idea is to go to config stage shown below. The challenge is some command s are not available for template.
!
interface GigabitEthernet 1/0/1
source template user-template
!
!
template user-template
description ::::USER_DATA+VOICE_PORT::::
switchport mode access
switchport access vlan 10
switchport voice vlan 14
spanning-tree portfast
load-interval 30
switchport block unicast
storm-control broadcast level pps 1k
storm-control multicast level pps 2k
storm-control action trap
ip dhcp snooping limit rate 15
mls qos trust cos
srr-queue bandwidth share 1 30 35 5
priority-queue out
service-policy input AUTOCONF-SRND4-CISCOPHONE-POLICY
ip access-group webauth in
authentication port-control auto
dot1x pae authenticator
mab
authentication order dot1x mab webauth
authentication priority dot1x mab webauth
authentication event fail action next-method
authentication event server dead action reinitialize vlan 10
authentication event server dead action authorize voice
authentication event server alive action reinitialize
authentication host-mode multi-auth
authentication open
authentication timer reauthenticate server
dot1x timeout tx-period 5
authentication control-direction in
authentication port-control auto
dot1x pae authenticator
mab
authentication host-mode single
no shutdown
!
!
Following command are not available for template
mls qos trust cos
srr-queue bandwidth share 1 30 35 5
priority-queue out
ip access-group webauth in
authentication port-control auto
authentication order dot1x mab webauth
authentication priority dot1x mab webauth
authentication event fail action next-method
authentication event server dead action reinitialize vlan 10
authentication event server dead action authorize voice
authentication event server alive action reinitialize
authentication host-mode multi-auth
authentication port-control auto
authentication host-mode single
no shutdown
!
01-27-2019 03:46 AM
Hi
You can create your own user defined smart macros if you cant find a template that has everything you want in it
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