cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
491
Views
0
Helpful
1
Replies

issue with cisco interface template

tauseef.kazi
Level 1
Level 1

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

!

 

1 Reply 1

Mark Malone
VIP Alumni
VIP Alumni

Hi

You can create your own user defined smart macros if you cant find a template that has everything you want in it

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/autosmartports/configuration_guide/iosaspcg2960X/configure.html#20064

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card