02-26-2017 02:45 AM - edited 03-08-2019 09:30 AM
How come you cant put no cdp enable or no snmp trap link-status/no logging event link-status on a interface template ?
Is there any smarter way of achieveing this?
Switch(config)#template ?
AP_INTERFACE_TEMPLATE built-in
DMP_INTERFACE_TEMPLATE built-in
IP_CAMERA_INTERFACE_TEMPLATE built-in
IP_PHONE_INTERFACE_TEMPLATE built-in
LAP_INTERFACE_TEMPLATE built-in
MSP_CAMERA_INTERFACE_TEMPLATE built-in
MSP_VC_INTERFACE_TEMPLATE built-in
PRINTER_INTERFACE_TEMPLATE built-in
ROUTER_INTERFACE_TEMPLATE built-in
SWITCH_INTERFACE_TEMPLATE built-in
TP_INTERFACE_TEMPLATE built-in
WORD Template name
global Global Templates
interface interface template
test defined by user
type Type of the template
Switch(config)#template test
Switch(config-template)#?
Template configuration commands:
aaa Authentication, Authorization and Accounting.
access-session Access Session specific Interface Configuration Commands
authentication Auth Manager Interface Configuration Commands
carrier-delay Specify delay for interface transitions
default Set a command to its defaults
description Interface specific description
dialer Dial-on-demand routing (DDR) commands
dialer-group Assign interface to dialer-list
dot1x Interface Config Commands for IEEE 802.1X
ethernet Ethernet service
exit Exit from template configuration mode
hold-queue Set hold queue depth
ip IP template config
ip Interface Internet Protocol config commands
keepalive Enable keepalive
load-interval Specify interval for load calculation for an interface
mab MAC Authentication Bypass Interface Config Commands
negate Negate the following commands on a template
no Negate a command or set its defaults
peer Peer parameters for point to point interfaces
ppp Point-to-Point Protocol
radius-server Modify RADIUS query parameters
remark template description comment
service-policy Configure CPL Service Policy
source Get config from another source
spanning-tree Spanning Tree Subsystem
storm-control storm configuration
subscriber Subscriber inactivity timeout value.
switchport Set switching mode characteristics
trust Set trust value for the interface
Switch(config-template)#
02-26-2017 05:13 AM
Hi
I think template interface can be used to apply specific command lines under the interfaces on a switch, a long time ago I remember have used macros to apply changes to specific interface on a switch, the following link could be useful:
http://cauew.blogspot.com/2008/07/switch-macros.html
Hope it is useful
:-)
02-26-2017 10:57 AM
Hi
I ran into this issue as well - I could configure IP source guard in an interface template with a 6807 but not on a 3650. A workaround for me was to apply interface templates using a Prime Infrastructure cli template. The cli template applies the interface template as well as the other commands not supported by the interface template.
hth
Andy
02-26-2017 12:17 PM
Thanks, will look that up!
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