Cisco Sg3008 Manual
Have a look at the manual Cisco Sg3008 Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 53 Cisco manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.
Smartport Auto Smartport 166 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 NOTEIf only the IP Phone and Host bits are set, then the Smartport type is ip_phone_desktop. Multiple Devices Attached to the Port The device derives the Smartport type of a connected device via the capabilities the device advertises in its CDP and/or LLDP packets. If multiple devices are connected to the device through one interface, Auto Smartport considers each capability advertisement it receives through that interface in order to assign the correct Smartport type. The assignment is based on the following algorithm: •If all devices on an interface advertise the same capability (there is no conflict) the matching Smartport type is applied to the interface. •If one of the devices is a switch, the Switch Smartport type is used. •If one of the devices is an AP, the Wireless Access Point Smartport type is used. •If one of the devices is an IP phone and another device is a host, the ip_phone_desktop Smartport type is used. •If one of the devices is an IP phone desktop and the other is an IP phone or host, the ip_phone_desktop Smartport type is used. •In all other cases the default Smartport type is used. For more information about LLDP/CDP refer to the Configuring LLDP and Configuring CDP sections, respectively. Persistent Auto Smartport Interface If the Persistent status of an interface is enabled, its Smartport type and the configuration that is already applied dynamically by Auto Smartport remains on the interface even after the attaching device ages out, the interface goes down, and the device is rebooted (assuming the configuration was saved). The Smartport type and the configuration of the interface are not changed unless Auto Smartport detects an attaching device with a different Smartport type. If the Reserved 12-16 Ignore LLDP Capabilities Mapping to Smartport Type (Continued) Capability Name LLDP Bit Smartport Type
Smartport Error Handling Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 167 11 Persistent status of an interface is disabled, the interface reverts to the default Smartport type when the attaching device to it ages out, the interface goes down, or the device is rebooted. Enabling Persistent status on an interface eliminates the device detection delay that otherwise occurs. NOTEThe persistence of the Smartport types applied to the interfaces are effective between reboots only if the running configuration with the Smartport type applied at the interfaces is saved to the startup configuration file. Error Handling When a smart port macro fails to apply to an interface, you can examine the point of the failure in the Interface Settings page and reset the port and reapply the macro after the error is corrected from the Interface Settings and Interface Settings Edit pages. Default Configuration Smartport is always available. By default, Auto Smartport is enabled by Auto Voice VLAN, relies on both CDP and LLDP to detect attaching devices Smartport type, and detects Smartport type IP phone, IP phone + Desktop, Switch, and Wireless Access Point. See Voic e VL AN for a description of the voice factory defaults. Relationships with Other Features and Backwards Compatibility Auto Smartport is enabled by default and may be disabled. Telephony OUI cannot function concurrently with Auto Smartport, and Auto Voice VLAN. Auto Smartport must be disabled before enabling Telephony OUI. NOTEWhen upgrading from a firmware version that does not support Auto Smartport to a firmware level that supports Auto Smartport, the Auto Voice VLAN is disabled after the upgrade. If Telephony OUI was enabled before the upgrade, then Auto Smartport is disabled after the upgrade, and Telephony OUI remains enabled.
Smartport Common Smartport Tasks 168 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 Common Smartport Tasks This section describes some common tasks to setup Smartport and Auto Smartport. Workflow1: To globally enable Auto Smar tpor t on the device, and to configure a por t with Auto Smar tpor t, perform the following steps: STEP 1To enable the Auto Smartport feature on the device, open the Smartport > Properties page. Set Administrative Auto Smartport to Enable or Enable by Voice VLAN. STEP 2Select whether the device is to process CDP and/or LLDP advertisements from connected devices. STEP 3Select which type of devices are to be detected in the Auto Smartport Device Detection field. STEP 4Click Apply STEP 5To enable the Auto Smartport feature on one or more interfaces, open the Smartport > Interface Settings page. STEP 6Select the interface, and click Edit. STEP 7Select Auto Smartport in the Smartport Application field. STEP 8Check or uncheck Persistent Status if desired. STEP 9Click Apply. Workflow2: To configure an interface as a static Smar tpor t, perform the following steps: STEP 1To enable the Smartport feature on the interface, open the Smartport > Interface Settings page. STEP 2Select the interface, and click Edit. STEP 3Select the Smartport type that is to be assigned to the interface in the Smartport Application field. STEP 4Set the macro parameters as required. STEP 5Click Apply.
Smartport Common Smartport Tasks Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 169 11 Workflow3: To adjust Smar tpor t macro parameter defaults and/or bind a user-defined macro pair to a Smar tpor t type, perform the following steps: Through this procedure you can accomplish the following: •View the macro source. •Change parameter defaults. •Restore the parameter defaults to the factory settings. •Bind a user-defined macro pair (a macro and its corresponding anti-macro) to a Smartport type. 1. Open the Smartport > Smartport Type Settings page. 2. Select the Smartport Type. 3. Click View Macro S ourc e to view the current Smartport macro that is associated with the selected Smartport Type. 4. Click Edit to open a new window in which you can bind user-defined macros to the selected Smartport type and/or modify the default values of the parameters in the macros bound to that Smartport type. These parameter default values are used when Auto Smartport applies the selected Smartport type (if applicable) to an inter face. 5. In the Edit page, modify the fields. 6. Click Apply to rerun the macro if the parameters were changed, or Restore Defaults to restore default parameter values to built-in macros if required. Workflow4: To rerun a Smar tpor t macro after it has failed, perform the following steps: STEP 1In the Interface Settings page, select an interface with Smartport type Unknown. STEP 2Click Show Diagnostics to see the problem. STEP 3Troubleshoot, then correct the problem. Consider the troubleshooting tip below. STEP 4Click Edit . A new window appears in which you can click Reset to reset the interface. STEP 5Return to the main page and reapply the macro using either Reapply (for devices that are not switches, routers or APs) or Reapply Smartport Macro (for switches, routers or APs) to run the Smartport Macro on the interface.
Smartport Configuring Smartport Using The Web-based Interface 170 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 A second method of resetting single or multiple unknown interfaces is: STEP 1In the Interface Settings page, select the Port Type equals to checkbox. STEP 2Select Unknown and click Go. STEP 3Click Reset All Unknown Smartports. Then reapply the macro as described above. TIPThe reason that the macro failed might be a conflict with a configuration on the interface made prior to applying the macro (most often encountered with security and storm-control settings), a wrong port type, a typo or an incorrect command within the user-defined macro, or an invalid parameter setting. Parameters are checked for neither type nor boundary prior to the attempt to apply the macro, therefore, an incorrect or invalid input to a parameter value will almost assuredly cause failure when applying the macro. Configuring Smartport Using The Web-based Interface The Smartport feature is configured in the Smartport > Properties, Smartport Type Settings and Interface Settings pages. For Voice VLAN configuration, see Voic e VL AN. For LLDP/CDP configuration, see the Configuring LLDP and Configuring CDP sections, respectively. Smartport Properties To configure the Smartport feature globally: STEP 1Click Smartport > Properties. STEP 2Enter the parameters. •Administrative Auto Smartport—Select to globally enable or disable Auto Smartport. The following options are available: -Disable—Select to disable Auto Smartport on the device. -Enable—Select to enable Auto Smartport on the device.
Smartport Configuring Smartport Using The Web-based Interface Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 171 11 -Enable by Auto Voice VL AN—This enables Auto Smartport, but puts it in operation only when Auto Voice VLAN is also enabled and in operation. Enable by Auto Voice VLAN is the default. •Operational Auto Smartport—Displays the Auto Smartport status. •Auto Smartport Device Detection Method—Select whether incoming CDP, LLDP, or both types of packets are used to detect the Smartport type of the attaching device(s). At least one must be checked in order for Auto Smartport to identify devices. •Operational CDP Status—Displays the operational status of CDP. Enable CDP if Auto Smartport is to detect the Smartport type based on CDP advertisement. •Operational LLDP Status—Displays the operational status of LLDP. Enable LLDP if Auto Smartport is to detect the Smartport type based on LLDP/ LLDP-MED advertisement. •Auto Smartport Device Detection—Select each type of device for which Auto Smartport can assign Smartport types to interfaces. If unchecked, Auto Smartport does not assign that Smartport type to any interface. STEP 3Click Apply. This sets the global Smartport parameters on the device. Smartport Type Settings Use the Smartport Type Settings page to edit the Smartport Type settings and view the Macro Source. By default, each Smartport type is associated with a pair of built-in Smartport macros. See Smartport Types for further information on macro versus anti-macro. Alternatively, you can associate your own pair of user-defined macros with customized configurations to a Smartport type. User-defined macros can be prepared only through CLI. You should refer to the CLI reference guide for details. Built-in or user-defined macros can have parameters. The built-in macros have up to three parameters. Editing these parameters for the Smartport types applied by Auto Smartport from the Smartport Type Settings page configures the default values for these parameters. These defaults are used by Auto Smartport.
Smartport Configuring Smartport Using The Web-based Interface 172 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 NOTEChanges to Auto Smartport types cause the new settings to be applied to interfaces which have already been assigned that type by Auto Smartport. In this case, binding an invalid macro or setting an invalid default parameter value causes all ports of this Smartport type to become unknown. STEP 1Click Smartport > Smartport Type Settings. STEP 2To view the Smartport macro associated with a Smartport type, select a Smartport type and click View Macro Source. STEP 3To modify the parameters of a macro or assign a user-defined macro, select a Smartport type and click Edit. STEP 4Enter the fields. •Port Type—Select a Smartport type. •Macro Name—Displays the name of the Smartport macro currently associated with the Smartport type. •Macro Type—Select whether the pair of macro and anti-macro associated with this Smartport type is built-in or user-defined. •User Defined Macro—If desired, select the user-defined macro that is to be associated with the selected Smartport type. The macro must have already been paired with an anti-macro. Pairing of the two macros is done by name and is described in the Smartport Macro section. •Macro Parameters—Displays the following fields for three parameters in the macro: -Parameter Name—Name of parameter in macro. -Parameter Value—Current value of parameter in macro. This can be changed here. -Parameter Description—Description of parameter. You can restore the default parameter values by clicking Restore Defaults. STEP 5Click Apply to save the changes to the running configuration. If the Smartport macro and/or its parameter values associated with the Smartport type are modified, Auto Smartport automatically reapplies the macro to the interfaces currently assigned with the Smartport type by Auto Smartport. Auto Smartport does not apply the changes to interfaces that were statically assigned a Smartport type.
Smartport Configuring Smartport Using The Web-based Interface Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 173 11 NOTEThere is no method to validate macro parameters because they do not have a type association. Therefore, any entry is valid at this point. However, invalid parameter values may cause errors to occur when the Smartport type is assigned to an interface, applying the associated macro. Smartport Interface Settings Use the Interface Settings page to perform the following tasks: •Statically apply a specific Smartport type to an interface with interface specific values for the macro parameters. •Enable Auto Smartport on an interface. •Diagnose a Smartport macro that failed upon application, and caused the Smartport type to become Unknown. •Reapply a Smartport macro after it fails for one of the following types of interfaces: switch, router and AP. It is expected that the necessary corrections have been made prior to clicking Reapply. See the workflow area in Common Smartport Tasks section for troubleshooting tips. •Reapply a Smartport macro to an interface. In some circumstances, you may want to reapply a Smartport macro so that the configuration at an interface is up to date. For instance, reapplying a switch Smartport macro at a device interface makes the interface a member of the VLANs created since the last macro application. You have to be familiar with the current configurations on the device and the definition of the macro to determine if a reapplication has any impact on the interface. •Reset unknown interfaces. This sets the mode of Unknown interfaces to Default. To apply a Smartport macro: STEP 1Click Smartport > Interface Settings. Reapply the associated Smartport macro in the following ways: •Select a group of Smartport types (switches, routers or APs) and click Reapply Smartport Macro. The macros are applied to all selected interface types. •Select an interface that is UP and click Reapply to reapply the last macro that was applied to the interface.
Smartport Configuring Smartport Using The Web-based Interface 174 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 The Reapply action also adds the interface to all newly-created VLANs. STEP 2Smartport Diagnostic. If a Smartport macro fails, the Smartport Type of the interface is Unknown. Select an interface which is of unknown type and click Show Diagnostic. This displays the command at which application of the macro failed. See the workflow area in Common Smartport Tasks section for troubleshooting tips. Proceed to reapply the macro after correcting the problem. STEP 3Resetting all Unknown interfaces to Default type. •Select the Por t Type equals to checkbox. •Select Unknown and click Go. •Click Reset All Unknown Smartports. Then reapply the macro as described above. This performs a reset on all interfaces with type Unknown, meaning that all interfaces are returned to the Default type. After correcting the error in the macro or on the current interface configuration or both, a new macro may be applied. NOTEResetting the interface of unknown type does not reset the configuration performed by the macro that failed. This clean up must be done manually. To assign a Smartport type to an interface or activate Auto Smartport on the interface: STEP 1Select an interface and click Edit. STEP 2Enter the fields. •Interface—Select the port or LAG. •Smartport Type—Displays the Smartport type currently assigned to the port/LAG. •Smartport Application—Select the Smartport type from the Smartport Application pull-down. •Smartport Application Method— If Auto Smartport is selected, Auto Smartport automatically assigns the Smartport type based on the CDP and/ or LLDP advertisement received from the connecting devices as well as applying the corresponding Smartport macro. To statically assign a Smartport type and apply the corresponding Smartport macro to the interface, select the desired Smartport type.
Smartport Built-in Smartport Macros Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 175 11 •Persistent Status—Select to enable the Persistent status. If enabled, the association of a Smartport type to an interface remains even if the interface goes down, or the device is rebooted. Persistent is applicable only if the Smartport Application of the interface is Auto Smartport. Enabling Persistent at an interface eliminates the device detection delay that otherwise occurs. •Macro Parameters—Displays the following fields for up to three parameters in the macro: -Parameter Name—Name of parameter in macro. -Parameter Value—Current value of parameter in macro. This can be changed here. -Parameter Description—Description of parameter. STEP 3Click Reset to set an interface to Default if it is in Unknown status (as a result of an unsuccessful macro application). The macro can be reapplied on the main page. STEP 4Click Apply to update the changes and assign the Smartport type to the interface. Built-in Smartport Macros The following describes the pair of built-in macros for each Smartport type. For each Smartport type there is a macro to configure the interface and an anti macro to remove the configuration. Macro code for the following Smartport types are provided: •desktop •printer •guest •server •host •ip_camera •ip_phone •ip_phone_desktop •switch