Cisco 2970 - Catalyst Switch Especificaciones Pagina 230

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 674
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 229
10-4
Catalyst 2970 Switch Software Configuration Guide
78-15462-03
Chapter 10 Configuring SmartPort Macros
Displaying SmartPort Macros
This example shows how to define the desktop-config macro for an access switch interface, apply the
macro to Gigabit Ethernet interface 0/4, add a description to the interface, and verify the configuration.
Switch(config)# macro name desktop-config
# Put the switch in access mode
switchport mode access
# Allow port to move to forwarding state quickly
spanning-tree portfast
# BPDUs should not be sent into the network
spanning-tree bpduguard enable
# Restrict the port to one address -- that of desktop
switchport port-security maximum 1
# Put all data traffic in vlan 1
switchport access vlan 1
@
Switch(config)# interface gigabitethernet0/4
Switch(config-if)# macro apply desktop-config
Switch(config-if)# macro description desktop-config
Switch(config-if)# end
Switch# show parser macro name desktop-config
Macro name : desktop-config
Macro type : customizable
macro description desktop-config
# Put the switch in access mode
switchport mode access
# Allow port to move to forwarding state quickly
spanning-tree portfast
# BPDUs should not be sent into the network
spanning-tree bpduguard enable
# Restrict the port to one address -- that of desktop
switchport port-security maximum 1
# Put all data traffic in vlan 1
switchport access vlan 1
Switch# show parser macro description
Interface Macro Description
--------------------------------------------------------------
Gi0/9 desktop-config
--------------------------------------------------------------
Displaying SmartPort Macros
To display the SmartPort macros, use one or more of the privileged EXEC commands in Table 10-1.
Table 10-1 Commands for Displaying SmartPort Macros
Command Purpose
show parser macro Displays all configured macros.
show parser macro name macro-name Displays a specific macro.
show parser macro brief Displays the configured macro names.
show parser macro description [interface
interface-id]
Displays the macro description for all interfaces or for a specified
interface.
Vista de pagina 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 673 674

Comentarios a estos manuales

Sin comentarios