From: chrlewis@cisco.com
Date: Sat Sep 24 2005 - 22:31:33 GMT-3
Macros are fairly simple. Basically all they are, is a collection of
interface level commands grouped together and applied with a single
named macro. It's just something to save typing effort, not fancy
programming or technology behind it.
This example shows how to define the desktop-config macro for an access
switch interface, apply the macro to Fast Ethernet interface 0/9, add a
description to the interface, and verify the configuration. You can
substitute any interface level command you want for the ones I've listed
here to get the desired effect. The key parts are the global config of
macro name xxx to create the macro and macro apply to put those commands
on the interface.
Switch(config)# macro name desktop-config
switchport mode access
spanning-tree portfast
spanning-tree bpduguard enable
switchport port-security maximum 1
switchport access vlan 1
@
Switch(config)# interface fastethernet0/9
Switch(config-if)# macro apply desktop-config
Switch(config-if)# macro description desktop-config
Switch(config-if)# end
Show parser are the show command roots for this.
Switch# show parser macro name desktop-config
Switch# show parser macro description
This can also be applied to an interface range as follows, where unused
is the interface range macro name
SW-61(config)#define interface-range unused fa0/17 - 20
SW-61(config)#interface range macro unused
SW-61(config-if-range)#macro apply desktop-config
Chris
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Dennis J. Hartmann
Sent: Saturday, September 24, 2005 3:41 PM
To: ccielab@groupstudy.com
Subject: FW: 3550 Smartport Macro
Does anyone have a good link or explanation (other than the standard
configuration guide and command reference) to 3550 Smartport Macro
configuration?
There's a great one that can be used to configure a cisco-phone
configuration on access ports.
I'm primarily looking for examples. Thanks.
Sincerely,
Dennis J. Hartmann
White Pine Communications
CCSI#23402 / CCVP / CCIP / CCNP
Cisco Optical, VPN & IDS Specialist
MCSE
This archive was generated by hypermail 2.1.4 : Sun Oct 02 2005 - 14:40:16 GMT-3