1. Manuals
  2. Brands
  3. Computer Equipment
  4. Switch
  5. IBM
  6. Computer Equipment
  7. Switch

IBM 12.1(22)EA6 - page 165

1 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 550
Download on canonical page 550 pages, 5.74 Mb
8-7
Cisco Systems IntelligentGigabit Ethernet Switch Modules for the IBM BladeCenter, Software Configuration Guide
24R9746
Chapter8 Configuring Smartports Ma cros
Configuring Smartports Macros
You can delete a global macro-applied configuration on a switch only by entering the no version of each
command that is in the macro. You can delete a macro-applied configuration on an interface by entering
the default interface interface-id interface configuration command.
This example shows how to display the cisco-desktop macro, how to apply the macro, and to set the
access VLAN ID to 25 on an interface:
Switch# show parser macro cisco-desktop
--------------------------------------------------------------
Macro name : cisco-desktop
Macro type : default
# Basic interface - Enable data VLAN only
# Recommended value for access vlan (AVID) should not be 1
switchport access vlan $AVID
switchport mode access
# Enable port security limiting port to a single
# MAC address -- that of desktop
switchport port-security
switchport port-security maximum 1
# Ensure port-security age is greater than one minute
# and use inactivity timer
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
# Configure port as an edge network port
spanning-tree portfast
spanning-tree bpduguard enable
--------------------------------------------------------------
Switch#
Switch# configure terminal
Switch(config)# gigabitethernet0/17
Switch(config-if)# macro apply cisco-desktop $AVID 25
Step7 macro {apply | trace} macro-name
[parameter {value}] [parameter
{value}] [parameter {value}]
Append the Cisco-default macro with the required values by using the
parameter value keywords, and apply the macro to the interface.
Keywords that begin with $ mean that a unique parameter value is
required.
You can use the macro apply macro-name? command to display a list
of any required values in the macro. If you apply a macro without
entering the keyword values, the commands are invalid and are not
applied.
Step8 end Return to privileged EXEC mode.
Step9 show running-config interface
interface-id
Verify that the macro is applied to an interface.
Step10 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
MENU

Models

Contents