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+.
11 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 156 Smartport This document describes the Smartports feature. It contains the following topics: •Overview •What is a Smartport •Smartport Types •Smartport Macros •Macro Failure and the Reset Operation •How the Smartport Feature Works •Auto Smartport •Error Handling •Default Configuration •Relationships with Other Features and Backwards Compatibility •Common Smartport Tasks •Configuring Smartport Using The Web-based Interface •Built-in Smartport Macros
Smartport Overview Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 157 11 Overview The Smartport feature provides a convenient way to save and share common configurations. By applying the same Smartport macro to multiple interfaces, the interfaces share a common set of configurations. A Smartport macro is a script of CLI (Command Line Interface) commands A Smartport macro can be applied to an interface by the macro name, or by the Smartport type associated with the macro. Applying a Smartport macro by macro name can be done only through CLI. Refer to the CLI guide for details. There are two ways to apply a Smartport macro by Smartport type to an interface: •Static Smartport—You manually assign a Smartport type to an interface. The result is the corresponding Smartport macro is applied to the interface. •Auto Smartport—Auto Smartport waits for a device to be attached to the interface before applying a configuration. When a device is detected from an interface, the Smartport macro (if assigned) that corresponds to the Smartport type of the attaching device is automatically applied. The Smartport feature consists of various components and works in conjunction with other features on the device. These components and features are described in the following sections: •Smartport, Smartport types and Smartport macros, described in this section. •Voice VLAN and Smartport, described in the Voic e VL AN section. •LLDP/CDP for Smartport, described in the Configuring LLDP and Configuring CDP sections, respectively. Additionally, typical work flows are described in the Common Smartport Tasks section.
Smartport What is a Smartport 158 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 What is a Smartport A Smartport is an interface to which a built-in (or user-defined) macro may be applied. These macros are designed to provide a means of quickly configuring the device to support the communication requirements and utilize the features of various types of network devices. The network access and QoS requirements vary if the interface is connected to an IP phone, a printer, or a router and/or Access Point (AP). Smartport Types Smartport types refers to the types of devices attached, or to be attached to Smartports. The device supports the following Smartport types: •Printer •Desktop •Guest •Server •Host •IP Camera •IP phone •IP Phone+Desktop •Switch •Router •Wireless Access Point Smartport types are named so that they describe the type of device connected to an interface. Each Smartport type is associated with two Smartport macros. One macro, called the macro serves to apply the desired configuration. The other, called the anti-macro, serves to undo all configuration performed by the macro when that interface happens to become a different Smartport type. You can apply a Smartport macro by the following methods: •The associated Smartport type.
Smartport Smartport Types Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 159 11 •Statically from a Smartport macro by name only from the CLI. A Smartport macro can be applied by its Smartport type statically from CLI and GUI, and dynamically by Auto Smartport. Auto Smartport derives the Smartport types of the attached devices based on CDP capabilities, LLDP system capabilities, and/or LLDP-MED capabilities. The following describes the relationship of Smartport types and Auto Smartport Special Smartport Types There are two special Smartport types; default and unknown. These two types are not associated with macros, but they exist to signify the state of the interface regarding Smar tport . The following describe these special Smartport types: •Default An interface that does not (yet) have a Smartport type assigned to it has the Default Smartport status. Smartport Type Supported by Auto SmartportSupported by Auto Smartport by default Unknown No No Default No No Printer No No Desktop No No Guest No No Server No No Host Yes No IP camera No No IP phone Yes Yes IP phone desktop Yes Yes Switch Yes Yes Router Yes No Wireless Access PointYe s Ye s
Smartport Smartport Macros 160 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 If Auto Smartport assigns a Smartport type to an interface and the interface is not configured to be Auto Smartport Persistent, then its Smartport type is re-initialized to Default in the following cases: -A link down/up operation is performed on the interface. -The device is restarted. -All devices attached to the interface have aged out, which is defined as the absence of CDP and/or LLDP advertisement from the device for a specified time period. •Unknown If a Smartport macro is applied to an interface and an error occurs, the interface is assigned the Unknown status. In this case, the Smartport and Auto Smartport features do not function on the interface until you correct the error and applies the Reset action (performed in the Interface Settings pages) that resets the Smartport status. See the workflow area in Common Smartport Tasks section for troubleshooting tips. NOTEThroughout this section, the term “aged out” is used to describe the LLDP and CDP messages via their TTL. If Auto Smartport is enabled, and persistent status is disabled, and no more CDP or LLDP messages are received on the interface before both TTLs of the most recent CDP and LLDP packets decrease to 0, then the anti- macro is run, and the Smartport type returns to default. Smartport Macros A Smartport macro is a script of CLI commands that configure an interface appropriately for a particular network device. Smartport macros should not be confused with global macros. Global macros configure the device globally, however, the scope of a Smartport macro is limited to the interface on which it is applied. The macro source may be found by running the show parser macro name [macro_name] command in privileged exec mode of the CLI or by clicking the View Macro Source button on the Smartport Type Settings page. A macro and the corresponding anti-macro are paired together in association with each Smartport type. The macro applies the configuration and the anti-macro removes it .
Smartport Smartport Macros Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 161 11 There are two types of Smartport macros: •Built-In—These are macros provided by the system. One macro applies the configuration profile and the other removes it. The macro names of the built- in Smartport macros and the Smartport type they are associated with as follows -macro-name (for example: printer) -no_macro-name (for example: no_printer) •User-Defined—These are macros written by the users. See the CLI Reference Guide for more information about these. To associate a user defined macro to a Smartport type, its anti macro must be defined as well. -smartport-type-name (for example: my_printer) -no_smartport-type-name (for example: no_my_printer) Smartport macros are bound to Smartport types in the Edit Smartport Type Setting page. See Built-in Smartport Macros for a listing of the built-in Smartport macros for each device type. Applying a Smartport Type to an Interface When Smartport types are applied to interfaces, the Smartport types and configuration in the associated Smartport macros are saved in the Running Configuration File. If the administrator saves the Running Configuration File into the Startup Configuration File, the device applies the Smartport types and the Smartport macros to the interfaces after reboot as follows: •If the Startup Configuration File does not specify a Smartport type for an interface, its Smartport type is set to Default. •If the Startup Configuration File specifies a static Smartport type, the Smartport type of the interface is set to this static type. •If the Startup Configuration File specifies a Smartport type that was dynamically assigned by Auto Smartport: -If the Auto Smartport Global Operational state, the interface Auto Smartport state, and the Persistent Status are all Enable, the Smartport type is set to this dynamic type.
Smartport Macro Failure and the Reset Operation 162 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 -Else the corresponding anti-macro is applied and the interfaces status is set to Default. Macro Failure and the Reset Operation A Smartport macro might fail if there is a conflict between the existing configuration of the interface and a Smartport macro. When a Smartport macro fails, a SYSLOG message containing the following parameters is sent: •Port number •Smartport type •The line number of the failed CLI command in the macro When a Smartport macro fails on an interface, the status of the interface is set to Unknown. The reason for the failure can be displayed in the Interface Settings page, Show Diagnostics popup. After the source of the problem is determined and the existing configuration or Smartport macro is corrected, you must perform a reset operation to reset the interface before it can be reapplied with a Smartport type (in the Interface Settings pages). See the workflow area in Common Smartport Tasks section for troubleshooting tips. How the Smartport Feature Works You can apply a Smartport macro to an interface by the macro name, or by the Smartport type associated with the macro. Applying a Smartport macro by macro name can be done only through the CLI, you should refer to the CLI guide for details. Because support is provided for Smartport types which correspond to devices that do not allow themselves to be discovered via CDP and/or LLDP, these Smartport types must be statically assigned to the desired interfaces. This can be done by navigating to the Smartport Interface Settings page, selecting the radio button of the desired interface, and clicking Edit. Then, select the Smartport type you want to assign and adjust the parameters as necessary before clicking Apply.
Smartport Auto Smartport Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 163 11 There are two ways to apply a Smartport macro by Smartport type to an interface: •Static Smartport You manually assign a Smartport type to an interface. The corresponding Smartport macro is applied to the interface. You can manually assign a Smartport type to an interface from the Smartport Interface Settings Page. •Auto Smartport When a device is detected from an interface, the Smartport macro, if any, that corresponds to the Smartport type of the attaching device is automatically applied. Auto Smartport is enabled by default globally, and at the interface level. In both cases, the associated anti-macro is run when the Smartport type is removed from the interface, and the anti-macro runs in exactly the same manner, removing all of the interface configuration. Auto Smartport In order for Auto Smartport to automatically assign Smartport types to interfaces, the Auto Smartport feature must be enabled globally and on the relevant interfaces which Auto Smartport should be allowed to configure. By default, Auto Smartport is enabled and allowed to configure all interfaces. The Smartport type assigned to each interface is determined by the CDP and LLDP packets received on the each interface respectively. •If multiple devices are attached to an interface, a configuration profile that is appropriate for all of the devices is applied to the interface if possible. •If a device is aged out (no longer receiving advertisements from other devices), the interface configuration is changed according to its Persistent Status. If the Persistent Status is enabled, the interface configuration is retained. If not, the Smartport Type reverts to Default. Enabling Auto Smartport Auto Smartport can be enabled globally in the Properties page in the following ways:
Smartport Auto Smartport 164 Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 11 •Enabled—This manually enables Auto Smartport and places it into operation immediately. •Enable by Auto Voice VLAN—This enables Auto Smartport to operate if Auto Voice VLAN is enabled and in operation. Enable by Auto Voice VLAN is the default. NOTEIn addition to enabling Auto Smartport globally, you must enable Auto Smartport at the desired interface as well. By default, Auto Smartport is enabled at all the interfaces. See Voic e VL AN for more information on enabling Auto Voice VLAN Identifying Smartport Type If Auto Smartport is globally enabled (in the Properties page), and at an interface (in the Interface Settings page), the device applies a Smartport macro to the interface based on the Smartport type of the attaching device. Auto Smartport derives the Smartport types of attaching devices based on the CDP and/or LLDP the devices advertise. If, for example, an IP phone is attached to a port, it transmits CDP or LLDP packets that advertise its capabilities. After reception of these CDP and/or LLDP packets, the device derives the appropriate Smartport type for phone and applies the corresponding Smartport macro to the interface where the IP phone attaches. Unless Persistent Auto Smartport is enabled on an interface, the Smartport type and resulting configuration applied by Auto Smartport is removed if the attaching device(s) ages out, links down, reboots, or conflicting capabilities are received. Aging out times are determined by the absence of CDP and/or LLDP advertisements from the device for a specified time period. Using CDP/LLDP Information to Identify Smartport Types The device detects the type of device attached to the port, based on the CDP/ LLDP capabilities. This mapping is shown in the following tables: CDP Capabilities Mapping to Smartport Type Capability Name CDP Bit Smartport Type Router 0x01 Router TB Bridge 0x02 Wireless Access Point
Smartport Auto Smartport Cisco Small Business 200, 300 and 500 Series Managed Switch Administration Guide (Internal Version) 165 11 SR Bridge 0x04 Ignore Switch 0x08 Switch Host 0x10 Host IGMP conditional filtering 0x20 Ignore Repeater 0x40 Ignore VoIP Phone 0x80 ip_phone Remotely-Managed Device 0x100 Ignore CAST Phone Port 0x200 Ignore Two-Port MAC Relay 0x400 Ignore LLDP Capabilities Mapping to Smartport Type Capability Name LLDP Bit Smartport Type Other 1 Ignore Repeater IETF RFC 2108 2 Ignore MAC Bridge IEEE Std. 802.1D 3 Switch WLAN Access Point IEEE Std. 802.11 MIB4 Wireless Access Point Router IETF RFC 1812 5 Router Telephone IETF RFC 4293 6 ip_phone DOCSIS cable device IETF RFC 4639 and IETF RFC 45467Ignore Station Only IETF RFC 4293 8 Host C-VLAN Component of a VLAN Bridge IEEE Std. 802.1Q9Switch S-VLAN Component of a VLAN Bridge IEEE Std. 802.1Q10 Switch Two-port MAC Relay (TPMR) IEEE Std. 802.1Q11 Ignore CDP Capabilities Mapping to Smartport Type (Continued) Capability Name CDP Bit Smartport Type