Cisco Cisco SG300-28 28-Port Gigabit Managed Switch 技术参考
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
CDP Commands
622
78-21485-01 Command Line Interface Reference Guide
36
Command Mode
Global Configuration mode
Interface Configuration mode (Ethernet)
Example
switchxxxxxx(conf) interface gi1
switchxxxxxx(conf-if) cdp log mismatch native
36.11 cdp device-id format
The cdp device-id format Global Configuration mode command specifies the
format of the Device-ID TLV. The no format of this command returns to default.
format of the Device-ID TLV. The no format of this command returns to default.
Syntax
cdp device-id format {mac | serial-number | hostname}
no cdp device-id format
Parameters
•
mac—Specifies that the Device-ID TLV contains the device’s MAC address.
•
serial-number—Specifies that Device-ID TLV contains the device’s
hardware serial number.
hardware serial number.
•
hostname—Specifies that Device-ID TLV contains the device’s hostname.
Default Configuration
MAC address is selected by default.
Command Mode
Global Configuration mode
Example
switchxxxxxx(conf) cdp device-id format serial-number