T1500-28PCT Smart PoE Switch REV1.0.
COPYRIGHT & TRADEMARKS Specifications are subject to change without notice. is a registered trademark of TP-LINK TECHNOLOGIES CO., LTD. Other brands and product names are trademarks or registered trademarks of their respective holders. No part of the specifications may be reproduced in any form or by any means or used to make any derivative such as translation, transformation, or adaptation without permission from TP-LINK TECHNOLOGIES CO., LTD. Copyright © 2015 TP-LINK TECHNOLOGIES CO., LTD.
CONTENTS Preface ............................................................................................................................ 1 Chapter 1 Using the CLI .................................................................................................. 3 1.1 Accessing the CLI........................................................................................................... 3 1.1.1. Logon by Telnet ....................................................................................
voice vlan ........................................................................................................................... 25 voice vlan aging time .......................................................................................................... 25 voice vlan priority................................................................................................................ 26 voice vlan mac-address ....................................................................................
show logging loghost .......................................................................................................... 47 show logging buffer............................................................................................................. 48 show logging flash .............................................................................................................. 48 Chapter 8 SSH Commands...........................................................................................
contact-info......................................................................................................................... 70 ip management-vlan ........................................................................................................... 70 ip address........................................................................................................................... 71 ip address-alloc dhcp.......................................................................................
show interface counters...................................................................................................... 90 show interface description .................................................................................................. 90 show interface flowcontrol................................................................................................... 91 show interface configuration ...............................................................................................
access-list create............................................................................................................... 111 mac access-list .................................................................................................................. 111 access-list standard...........................................................................................................112 access-list extended ...........................................................................................
show power time-range .................................................................................................... 132 Chapter 20 MSTP Commands ......................................................................................133 spanning-tree(global)........................................................................................................ 133 spanning-tree(interface)....................................................................................................
ip igmp snooping filter(global) ........................................................................................... 154 ip igmp snooping filter(interface) ....................................................................................... 154 ip igmp snooping filter maxgroup ...................................................................................... 155 ip igmp snooping filter mode .............................................................................................
lldp ................................................................................................................................... 180 lldp hold-multiplier............................................................................................................. 180 lldp timer........................................................................................................................... 181 lldp med-fast-count ...............................................................................
Preface This Guide is intended for network administrator to provide referenced information about CLI (Command Line Interface). The device mentioned in this Guide stands for T1500-28PCT Smart PoE Switch. Overview of this Guide Chapter 1: Using the CLI Provide information about how to use the CLI, CLI Command Modes, Security Levels and some Conventions. Chapter 2: User Interface Provide information about the commands used to switch between five CLI Command Modes. Chapter 3: IEEE 802.
Chapter 12: Ethernet Configuration Commands Provide information about the commands used for configuring the Bandwidth Control, Negotiation Mode, and Storm Control for Ethernet ports. Chapter 13: QoS Commands Provide information about the commands used for configuring the QoS function. Chapter 14: Port Mirror Commands Provide information about the commands used for configuring the Port Mirror function.
Chapter 1 Using the CLI 1.1 Accessing the CLI You can log on to the switch and access the CLI by logging on to the switch remotely by a Telnet or SSH connection through an Ethernet port. 1.1.1. Logon by Telnet To log on to the switch by a Telnet connection, please take the following steps: 1. Click Start and type in cmd in the Search programs and files window and press the Enter button. Figure 1-1 Run Window 2. Type in telnet 192.168.0.1 in the prompt cmd window and press Enter.
3. Type in the User name and Password (the factory default value for both of them are admin) and press the Enter button to enter User EXEC Mode , which is shown as Figure 1-3. Figure 1-3 Log in the Switch 4. Type in enable command to enter Privileged EXEC Mode. Figure 1-4 Enter into Priviledged EXEC Mode 1.1.2. Logon by SSH To log on by SSH, a Putty client software is recommended.
Figure 1-5 Enable SSH function Password Authentication Mode 1. Open the software to log on to the interface of PuTTY. Enter the IP address of the switch into Host Name field; keep the default value 22 in the Port field; select SSH as the Connection type. Figure 1-6 SSH Connection Config 2. Click the Open button in the above figure to log on to the switch.
Figure 1-7 Log on the Switch Key Authentication Mode 1. Select the key type and key length, and generate SSH key. Figure 1-8 Generate SSH Key Note: 1. The key length is in the range of 512 to 3072 bits. 2. During the key generation, randomly moving the mouse quickly can accelerate the key generation.
2. After the key is successfully generated, please save the public key and private key to a TFTP server. Figure 1-9 Save the Generated Key 3.
Note: 1. 2. The key type should accord with the type of the key file. The SSH key downloading can not be interrupted. 4. After the public key is downloaded, please log on to the interface of PuTTY and enter the IP address for login.
5. Click Auth under the SSH menu in the left Category list, and click Browse to download the private key file to SSH client software and click Open. Figure 1-12 Download the Private Key 6. After successful authentication, please enter the login user name. If you log on to the switch without entering password, it indicates that the key has been successfully downloaded. Figure 1-13 Log on the Switch 1.
gigabitEthernet, Interface link-aggregation and some other modes, which is shown as the following diagram.
Mode Accessing Path Use interface the fastEthernet/gigabitEthernet port Interface or interface range fastEthernet/ Configuration gigabitEthernet Mode command to enter this mode from Global mode. next mode Use the end command or press T1500-28PCT (config-if)# or port-list Configuration Logout or Access the Prompt T1500-28PCT (config-if-range)# Ctrl+Z to return to Pri vileged EXEC mode. Enter the exit command or the # command to return to Global Configuration mode.
Vlan Configuration Mode: In this mode, users can create a VLAN and add a specified port to the VLAN. 3. Some commands are global, that means they can be performed in all modes: show: display all information of switch, for example: statistic information, port information, VLAN information. 1.3 Security Levels This switch’s security is divided into two levels: User level and Admin level.
1.4.2 Special Characters You should pay attentions to the description below if the variable is a character string: These six characters ” < > , \ & can not be input. If a blank is contained in a character string, single or double quotation marks should be used, for example ’hello world’, ”hello world”, and the words in the quotation marks will be identified as a string. Otherwise, the words will be identified as several strings. 1.4.
Chapter 2 User Interface enable Description The enable command is used to access Privileged EXEC Mode from User EXEC Mode.
enable password Description The enable password command is used to set or change the password for users to access Privileged EXEC Mode from User EXEC Mode. To remove the password, please use no enable password command. This command uses the symmetric encryption. Syntax enable password { [ 0 ] password | 7 encrypted-password } no enable password Parameter 0 —— Specify the encryption type. 0 indicates that an unencrypted password will follow. By default, the encryption type is 0.
enable secret Description The enable secret command is used to set a secret password, which is using an MD5 encryption algorithm, for users to access Privileged EXEC Mode from User EXEC Mode. To return to the default configuration, please use no enable secret command. This command uses the MD5 encryption. Syntax enable secret { [ 0 ] password | 5 encrypted-password } no enable secret Parameter 0 —— Specify the encryption type. 0 indicates that an unencrypted password will follow.
disable Description The disable command is used to return to User EXEC Mode from Privileged EXEC Mode. Syntax disable Command Mode Privileged EXEC Mode Example Return to User EXEC Mode from Privileged EXEC Mode: T1500-28PCT# disable T1500-28PCT> configure Description The configure command is used to access Global Configuration Mode from Privileged EXEC Mode.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Return to Global Configuration Mode from Interface Configuration Mode, and then return to Privileged EXEC Mode: T1500-28PCT(config-if)# exit T1500-28PCT(config)#exit T1500-28PCT# end Description The end command is used to return to Privileged EXEC Mode.
Example Show the commands you have entered in the current mode: T1500-28PCT (config)# history 1 history clear history Description The clear history command is used to clear the commands you have entered in the current mode, therefore these commands will not be shown next time you use the show history command.
Chapter 3 IEEE 802.1Q VLAN Commands VLAN (Virtual Local Area Network) technology is developed for the switch to divide the LAN into multiple logical LANs flexibly. Hosts in the same VLAN can communicate with each other, regardless of their physical locations. VLAN can enhance performance by conserving bandwidth, and improve security by limiting traffic to specific domains. vlan Description The vlan command is used to create IEEE 802.1Q VLAN and enter VLAN Configuration Mode. To delete the IEEE 802.
Parameter vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094. Command Mode Global Configuration Mode Example Create VLAN Interface 2: T1500-28PCT(config)# interface vlan 2 name Description The name command is used to assign a description to a VLAN. To clear the description, please use no name command. Syntax name descript no name Parameter descript ——String to describe the VLAN, which contains 16 characters at most.
Parameter vlan-list —— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the format of 2-3, 5. It is multi-optional. tagged | untagged —— Egress rule,untagged or tagged. Tagged: All packets forwarded by the port are tagged. The packets contain VLAN information. Untagged: Packets forwarded by the port are untagged.
Syntax show vlan summary Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the summarized information of IEEE 802.1Q VLAN: T1500-28PCT(config)# show vlan summary show vlan brief Description The show vlan brief command is used to display the brief information of IEEE 802.1Q VLAN. Syntax show vlan brief Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the brief information of IEEE 802.
Example Display the information of vlan 5: T1500-28PCT(config)# show vlan 5 show interface switchport Description The show interface switchport command is used to display the IEEE 802.1Q VLAN configuration information of the specified port or all ports. Syntax show interface switchport [port] Parameter port —— The port number. By default, display the VLAN configuration information of all ports.
Chapter 4 Voice VLAN Commands Voice VLANs are configured specially for voice data stream. By configuring Voice VLANs and adding the ports with voice devices attached to voice VLANs, you can perform QoS-related configuration for voice data, ensuring the transmission priority of voice data stream and voice quality. voice vlan Description The voice vlan command is used to enable Voice VLAN function. To disable Voice VLAN function, please use no voice vlan command.
Parameter time —— Aging time (in minutes) to be set for the Voice VLAN. It ranges from 1 to 43200 and the default value is 1440. Command Mode Global Configuration Mode Example Set the aging time for the Voice VLAN as 1 minute: T1500-28PCT(config)#voice vlan aging time 1 voice vlan priority Description The voice vlan priority command is used to configure the priority for the Voice VLAN. To restore to the default priority, please use no voice vlan priority command.
voice vlan mac-address Description The voice vlan mac-address command is used to create Voice VLAN OUI. To delete the specified Voice VLAN OUI, please use no voice vlan mac-address command. Syntax voice vlan mac-address mac-addr mask mask [description descript] no voice vlan mac-address mac-addr Parameter mac-addr —— The OUI address of the voice device, in the format of XX:XX:XX:XX:XX:XX. mask —— The OUI address mask of the voice device, in the format of XX:XX:XX:XX:XX:XX.
Parameter manual | auto —— Port mode.
Syntax show voice vlan Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of Voice VLAN globally: T1500-28PCT(config)#show voice vlan show voice vlan oui Description The show voice vlan oui command is used to display the configuration information of Voice VLAN OUI.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of Fast Ethernet port 1 in the Voice VLAN: T1500-28PCT(config)#show voice vlan switchport fastEthernet 1/0/1 Display the configuration information of all the ports in the Voice VLAN: T1500-28PCT(config)#show voice vlan switchport 30
Chapter 5 Etherchannel Commands Etherchannel Commands are used to configure LAG and LACP function. LAG (Link Aggregation Group) is to combine a number of ports together to make a single high-bandwidth data path, which can highly extend the bandwidth. The bandwidth of the LAG is the sum of bandwidth of its member port. LACP (Link Aggregation Control Protocol) is defined in IEEE802.3ad and enables the dynamic link aggregation and disaggregation by exchanging LACP packets with its partner.
port-channel load-balance Description The port-channel load-balance command is used to configure the Aggregate Arithmetic for LAG. To return to the default configurations, please use no port-channel load-balance command. Syntax port-channel load-balance { src-dst-mac | src-dst-ip } no port-channel load-balance Parameter src-dst-mac —— The source and destination MAC address. When this option is selected, the Aggregate Arithmetic will be based on the source and destination MAC addresses of the packets.
Command Mode Global Configuration Mode Example Configure the LACP system priority as 1024 globally: T1500-28PCT(config)# lacp system-priority 1024 lacp port-priority Description The lacp port-priority command is used to configure the LACP port priority for specified ports. To return to the default configurations, please use no lacp port-priority command. Syntax lacp port-priority pri no lacp port-priority Parameter pri —— The port priority, ranging from 0 to 65535. It is 32768 by default.
Syntax show etherchannel [ channel-group-num ] { detail | summary } Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 6. By default, it is empty, and will display the information of all EtherChannel Groups. detail —— The detailed information of EtherChannel. summary —— The EtherChannel information in summary.
Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 6. By default, it is empty, and will display the information of all LACP groups. internal —— The internal LACP information. neighbor —— The neighbor LACP information.
Chapter 6 User Management Commands User Management Commands are used to configure the user name and password for users to log on to the Web management page with a certain access level so as to protect the settings of the switch from being randomly changed. user name (password) Description The user name command is used to add a new user or modify the existed users’ information. To delete the existed users, please use no user name command. This command uses the symmetric encryption.
Command Mode Global Configuration Mode User Guidelines 1. If the password you configured here is unencrypted and the global encryption function is enabled in service password-encryption, the password in the configuration file will be displayed in the symmetric encrypted form. 2. If you change the password of the current user in a telnet connection, the connection will be cut off and the newly configured password is required for the re-login.
letters (case sensitive), underlines and sixteen special characters ( !$%'()*,-./[]{|} ). The password will be saved to the configuration file using the MD5 encrypted algorithm. 5 —— Indicates an MD5 encrypted password with fixed length will follow. encrypted-password —— An MD5 encrypted password with fixed length, which you can copy from another switch’s configuration file. Command Mode Global Configuration Mode User Guidelines 1.
Command Mode Global Configuration Mode Example Enable the access-control of the user whose IP address is 192.168.0.148: T1500-28PCT(config)# user access-control ip-based 192.168.0.148 255.255.255.255 user access-control mac-based Description The user access-control mac-based command is used to limit the MAC address of the users for login. Only the user with this MAC address you set here is allowed to login. To cancel the user access limit, please use no user access-control command.
Syntax user access-control port-based interface { fastEthernet port | gigabitEthernet port | range fastEthernet port-list | range gigabitEthernet port-list } no user access-control Parameter port —— The Ethernet port number. port-list ——The list group of Ethernet ports, in the format of 1/0/1-4. You can appoint 5 ports at most.
Example Configure the number of the users as Admin and Guest logging on as 5 and 3: T1500-28PCT(config)# user max-num 5 3 user idle-timeout Description The user idle-timeout command is used to configure the timeout time of the switch. To restore to the default timeout time, please use no user idle-timeout command. Syntax user idle-timeout minutes no user idle-timeout Parameter minutes ——The timeout time, ranging from 5 to 30 in minutes. By default, the value is 10.
Example Display the information of the current users: T1500-28PCT(config)# show user account-list show user configuration Description The show user configuration command is used to display the security configuration information of the users, including access-control, max-number and the idle-timeout, etc.
Chapter 7 System Log Commands The log information will record the settings and operation of the switch respectively for you to monitor operation status and diagnose malfunction. logging buffer Description The logging buffer command is used to configure the severity level and the status of the configuration input to the log buffer. To disable the logging buffer function, please use no logging buffer command. Local Log is the log information saved in the switch.
logging file flash Description The logging file flash command is used to store the log messages in a flie in the flash on the switch. To disable the log file flash function, please use no logging file flash command. The log file flash indicates the flash sector for saving system log. The information in the log file of the flash will not be lost after the switch is restarted and can be got by the show logging flash command.
Command Mode Global Configuration Mode Example Specify the log file synchronization frequency as 10 hours: T1500-28PCT (config)#logging file flash frequency 10 logging file flash level Description The logging file flash level command is used to specify the system log message severity level. Messages will a severity level equal to or higher than this value will be stored to the flash. To restore to the default level, please use no logging file flash level command.
remotely monitor the settings and operation status of other devices through the log host. Syntax logging host index idx host-ip level no logging host index idx Parameter idx —— The index of the log host. The switch supports 4 log hosts at most. host-ip —— The IP for the log host. level —— The severity level of the log information sent to each log host. There are 8 severity levels marked with values 0-7. The smaller value has the higher priority.
Example Clear the information in the log file: T1500-28PCT(config)# clear logging buffer show logging local-config Description The show logging local-config command is used to display the configuration of the Local Log including the log buffer and the log file.
show logging buffer Description The show logging buffer command is used to display the log information in the log buffer according to the severity level. Syntax show logging buffer [ level level ] Parameter level —— Severity level. There are 8 severity levels marked with values 0-7. The information of levels with priority not lower than the select level will display. Display all the log information in the log buffer by default.
Example Display the log information with the level marked 0~3 in the log file: T1500-28PCT(config)# show logging flash level 3 49
Chapter 8 SSH Commands SSH (Security Shell) can provide the unsecured remote management with security and powerful authentication to ensure the security of the management information. ip ssh server Description The ip ssh server command is used to enable SSH function. To disable the SSH function, please use no ip ssh server command.
Example Enable SSH v2: T1500-28PCT(config)# ip ssh version v2 ip ssh timeout Description The ip ssh timeout command is used to specify the idle-timeout time of SSH. To restore to the factory defaults, please use ip ssh timeout command. Syntax ip ssh timeout value no ip ssh timeout Parameter value —— The Idle-timeout time. During this period, the system will automatically release the connection if there is no operation from the client. By default, this value is 120 seconds.
Command Mode Global Configuration Mode Example Specify the maximum number of the connections to the SSH server as 3: T1500-28PCT(config)# ip ssh max-client 3 ip ssh download Description The ip ssh download command is used to download the SSH key file from TFTP server. Syntax ip ssh download { v1 | v2 } key-file ip-address ip-addr Parameter v1 | v2 —— Select the type of SSH key to download, v1 represents SSH-1, v2 represents SSH-2. key-file —— The name of the key-file which is selected to download.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of SSH: T1500-28PCT(config)# show ip ssh 53
Chapter 9 SSL Commands SSL (Secure Sockets Layer), a security protocol, is to provide a secure connection for the application layer protocol(e.g. HTTP) based on TCP. Adopting asymmetrical encryption technology, SSL uses key pair to encrypt/decrypt information. A key pair refers to a public key (contained in the certificate) and its corresponding private key. By default the switch has a certificate (self-signed certificate) and a corresponding private key.
Parameter ssl-cert —— The name of the SSL certificate which is selected to download to the switch. The length of the name ranges from 1 to 25 characters. The certificate must be BASE64 encoded. ip-addr —— The IP address of the TFTP server. Command Mode Global Configuration Mode Example Download an SSL certificate named ssl-cert from TFTP server with the IP address of 192.168.0.146: T1500-28PCT(config)# ip http secure-server download certificate ssl-cert ip-address 192.168.0.
show ip http secure-server Description The show ip http secure-server command is used to display the global configuration of SSL.
Chapter 10 MAC Address Commands MAC address configuration can improve the network security by configuring the Port Security and maintaining the address information by managing the Address Table. mac address-table static Description The mac address-table static command is used to add the static MAC address entry. To remove the corresponding entry, please use no mac address-table static command. The static address can be added or removed manually, independent of the aging time.
mac address-table aging-time Description The mac address-table aging-time command is used to configure aging time for the dynamic address. To return to the default configuration, please use no mac address-table aging-time command. Syntax mac address-table aging-time aging-time no mac address-table aging-time Parameter aging-time —— The aging time for the dynamic address. The value of it can be 0 or ranges from 10 to 630 seconds. When 0 is entered, the Auto Aging function is disabled. It is 300 by default.
Command Mode Global Configuration Mode Example Add a filtering address entry of which VLAN ID is 1 and MAC address is 00:1e:4b:04:01:5d: T1500-28PCT(config)# mac address-table filtering 00:1e:4b:04:01:5d vid 1 mac address-table max-mac-count Description The mac address-table max-mac-count command is used to configure the Port Security. To return to the default configurations, please use no mac address-table max-mac-count command.
Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Enable Port Security function for port 1, select Static mode as the learn mode, and specify the maximum number of MAC addresses that can be learned on this port as 30: T1500-28PCT(config)# interface fastEthernet 1/0/1 T1500-28PCT(config-if)# mac address-table max-mac-count max-number 30 mode static status enable show mac address-table Descr
Example Display the Aging Time of the MAC address: T1500-28PCT(config)# show mac address-table aging-time show mac address-table max-mac-count interface Description The show mac address-table max-mac-count interface command is used to display the security configuration of all Fast/Ethernet ports or the specified port. Syntax show mac address-table max-mac-count interface { fastEthernet [ port ] | gigabitEthernet [ port ] } Parameter port —— The Fast/Gigabit Ethernet port number.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the address configuration of port 1: T1500-28PCT(config)# show mac address-table interface fastEthernet 1/0/1 show mac address-table count Description The show mac address-table count command is used to display the total amount of MAC address table.
show mac address-table vlan Description The show mac address-table vlan command is used to display the MAC address configuration of the specified vlan. Syntax show mac address-table vlan vid Parameter vid ——The specified VLAN id.
Chapter 11 System Commands System Commands can be used to configure the System information and System IP, reboot and reset the switch, upgrade the switch system and other operations. system-time manual Description The system-time manual command is used to configure the system time manually.
UTC-09:00 —— TimeZone for Alaska. UTC-08:00 —— TimeZone for Pacific Time(US Canada). UTC-07:00 —— TimeZone for Mountain Time(US Canada). UTC-06:00 —— TimeZone for Central Time(US Canada). UTC-05:00 —— TimeZone for Eastern Time(US Canada). UTC-04:30 —— TimeZone for Caracas. UTC-04:00 —— TimeZone for Atlantic Time(Canada). UTC-03:30 —— TimeZone for Newfoundland. UTC-03:00 —— TimeZone for Buenos Aires, Salvador, Brasilia. UTC-02:00 —— TimeZone for Mid-Atlantic. UTC-01:00 —— TimeZone for Azores, Cape Verde Is.
Example Configure the system time mode as NTP, the time zone is UTC-12:00, the primary NTP server is 133.100.9.2 and the secondary NTP server is 139.78.100.163, the fetching-rate is 11 hours: T1500-28PCT(config)# system-time ntp UTC-12:00 133.100.9.2 139.79.100.163 11 system-time dst predefined Description The system-time dst predefined command is used to select a daylight saving time configuration from the predefined mode. The configuration can be used recurrently.
system-time dst date Description The system-time dst date command is used to configure the one-off daylight saving time. The start date is in the current year by default. The time range of the daylight saving time must shorter than one year, but you can configure it spanning years. To disable DST function, please use no system-time dst command.
system-time dst recurring Description The system-time dst recurring command is used to configure the recurring daylight saving time. It can be configured spanning years. To disable DST function, please use no system-time dst command. Syntax system-time dst recurring {sweek} {sday} {smonth} {stime} {eweek} {eday} {emonth} {etime} [offset] no system-time dst Parameter sweek —— The start week of the daylight saving time. There are 5 values showing as follows: first, second, third, fourth, last.
T1500-28PCT(config)# system-time dst recurring first Sun May 02:00 last Sun Oct 02:00 45 hostname Description The hostname command is used to configure the system name. To clear the system name information, please use no hostname command. Syntax hostname [ hostname ] no hostname Parameter hostname —— System Name. The length of the name ranges from 1 to 32 characters. By default, it is the device name, for example “T1500-28PCT”.
Example Configure the system location as SHENZHEN: T1500-28PCT(config)# location SHENSHEN contact-info Description The contact-info command is used to configure the system contact information. To clear the system contact information, please use no contact-info command. Syntax contact-info [ contact_info ] no contact-info Parameter contact_info —— Contact Information. It consists of 32 characters at most. It is “www.tp-link.com” by default.
Example Set the VLAN 6 as IP management VLAN: T1500-28PCT(config)# ip management-vlan 6 ip address Description The ip address command is used to configure the system IP address, Subnet Mask and Default Gateway. To restore to the factory defaults, please use no ip address command. This command should be configured in the Interface Configuration Mode of the management VLAN. Syntax ip address {ip-addr} {ip-mask} [gateway] no ip address Parameter ip-addr —— The system IP of the switch.
Syntax ip address-alloc dhcp Command Mode Interface Configuration Mode (interface vlan) Example Enable the DHCP Client function when the management VLAN of the switch is VLAN1: T1500-28PCT(config)# interface vlan 1 T1500-28PCT(config-if)# ip address-alloc dhcp ip address-alloc bootp Description The ip address-alloc bootp command is used to enable the BOOTP Protocol. When the BOOTP Protocol is enabled, the switch will obtain IP address from BOOTP Server.
Command Mode Privileged EXEC Mode Example Reset the software of the switch: T1500-28PCT# reset reboot Description The reboot command is used to reboot the switch. To avoid damage, please don’t turn off the device while rebooting. Syntax reboot Command Mode Privileged EXEC Mode Example Reboot the switch: T1500-28PCT# reboot copy running-config startup-config Description The copy running-config startup-config command is used to save the current settings.
copy startup-config tftp Description The copy startup-config tftp command is used to backup the configuration file to TFTP server. Syntax copy startup-config tftp ip-address ip-addr filename name Parameter ip-addr —— IP address of the TFTP server. name —— Specify the name for the configuration file which would be backup. Command Mode Privileged EXEC Mode Example Backup the configuration files to TFTP server with the IP 192.168.0.
T1500-28PCT# copy tftp startup-config ip-address 192.168.0.148 filename config firmware upgrade Description The firmware upgrade command is used to upgrade the switch system file via the TFTP server. Syntax firmware upgrade ip-address ip-addr filename name Parameter ip-addr —— IP address of the TFTP server. name —— Specify the name for the firmware file. Command Mode Privileged EXEC Mode Example Upgrade the switch system file named as firmware.bin via the TFTP server with the IP address 192.168.0.
count (-i) —— The interval to send ICMP request packets. It ranges from 100 to 1000 milliseconds. By default, this value is 1000. Command Mode User EXEC Mode and Privileged EXEC Mode Example To test the connectivity between the switch and the network device with the IP 192.168.0.131, please specify the count (-l) as 512 bytes and count (-i) as 1000 milliseconds.
loopback interface Description The loopback interface command is used to test whether the port is available or not. Syntax loopback interface { fastEthernet port | gigabitEthernet port } { internal | external } Parameter port —— The Fast/Gigabit Ethernet port number. internal | external —— Loopback Type. There are two options: “internal” and “external”.
show running-config Description The show running-config command is used to display the current operating configuration of the system or a specified port. Syntax show running-config [ interface { fastEthernet port | gigabitEthernet port } ] Parameter port —— The Fast/Gigabit Ethernet port number.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the DST time information of the switch T1500-28PCT# show system-time dst show system-time ntp Description The show system-time ntp command is used to display the NTP mode configuration information.
Example Show the cable-diagnostics of port 3: T1500-28PCT# show cable-diagnostics interface fastEthernet 1/0/3 80
Chapter 12 Ethernet Configuration Commands Ethernet Configuration Commands can be used to configure the Bandwidth Control, Negotiation Mode and Storm Control for Ethernet ports. interface fastEthernet Description The interface fastEthernet command is used to enter the interface fastEthernet Configuration Mode and configure the corresponding Fast Ethernet port. Syntax interface fastEthernet port Parameter port —— The Fast/Gigabit Ethernet port number.
User Guidelines Command in the Interface Range fastEthernet Mode is executed independently on all ports in the range. It does not effect the execution on the other ports at all if the command results in an error on one port.
Parameter port-list —— The list of Gigabit Ethernet ports. Command Mode Global Configuration Mode User Guidelines Command in the Interface Range gigabitEthernet Mode is executed independently on all ports in the range. It does not effect the execution on the other ports at all if the command results in an error on one port.
shutdown Description The shutdown command is used to disable an Ethernet port. To enable this port again, please use no shutdown command.
media-type Description The media-type command is used to configure the media type of Combo port. For a Combo port, the media type should be configured before you set its speed and mode. Syntax media-type { rj45 | sfp } Parameter rj45 | sfp —— Media type.
Example Configure the Duplex Mode as full-duplex for port 3: T1500-28PCT(config)# interface fastEthernet 1/0/3 T1500-28PCT(config-if)# duplex full speed Description The speed command is used to configure the Speed Mode for an Ethernet port. To return to the default configuration, please use no speed command. Syntax speed { 10 | 100 | 1000 | auto } no speed Parameter 10 | 100 | 1000 | auto —— The speed mode of the Ethernet port.
no storm-control broadcast Parameter rate —— Specify the bandwidth for receiving broadcast packets on the port. The packet traffic exceeding the bandwidth will be discarded. By default, the value is “128K”.
T1500-28PCT(config-if)# storm-control multicast storm-control unicast Description The storm-control unicast command is used to enable the unicast control function. To disable the unicast control function, please use no storm-control unicast command. Unicast control function allows the switch to filter UL frame in the network. If the transmission rate of the UL frames exceeds the set bandwidth, the packets will be automatically discarded to avoid network broadcast storm.
Parameter ingress-rate —— Specify the bandwidth for receiving packets. Range: 1-1024000 for the gigaport. egress-rate —— Specify the bandwidth for sending packets. Range: 1-1024000 for the gigaport.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the connective-status of all ports: T1500-28PCT(config)# show interface status Display the connective-status of port 1: T1500-28PCT(config)# show interface fastEthernet 1/0/1 status show interface counters Description The show interface counters command is used to display the statistic information of all ports or an Ethernet port.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the description of all Ethernet ports: T1500-28PCT(config)# show interface description Display the description of port 2: T1500-28PCT(config)# show interface fastEthernet 1/0/2 description show interface flowcontrol Description The show interface flowcontrol command is used to display the flow-control information of an Ethernet port.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configurations of all Ethernet ports: T1500-28PCT(config)# show interface configuration Display the configurations of port 2: T1500-28PCT(config)# show interface fastEthernet 1/0/2 configuration show storm-control Description The show storm-control command is used to display the storm-control information of Ethernet ports.
Syntax show bandwidth [interface { fastEthernet port | gigabitEthernet port | range fastEthernet port-list | range gigabitEthernet port-list }] Parameter port —— The Ethernet port number. port-list —— The list of the Ethernet ports.
Chapter 13 QoS Commands QoS (Quality of Service) function is used to optimize the network performance. It provides you with network service experience of a better quality. qos Description The qos command is used to configure the prority based on port. To return to the default configuration, please use no qos command. Syntax qos tc-id no qos Parameter tc-id —— The priority of port. It ranges from 0 to 3, which represent TC 0 -TC 3 respectively. By default, the priority is TC 0.
Syntax qos cos no qos cos Command Mode Global Configuration Mode User Guidelines IEEE 802.1P gives the Pri field in IEEE 802.1Q tag a recommended definition. When the mapping relation between IEEE 802.1P Priority and TC egress queue is enabled, the data will be classified into the egress queue based on this mapping relation. Example Enable the mapping relation between IEEE 802.
qos queue cos-map Description The qos queue cos-map command is used to configure the mapping relation between IEEE 802.1P priority tag/IEEE 802.1Q tag and the TC egress queue. To return to the default configuration, please use no qos queue cos-map command. When 802.1P Priority is enabled, the packets with 802.1Q tag are mapped to different priority levels based on 802.1P priority mode. The untagged packets are mapped based on port priority mode.
datagram are mapped to different priority levels based on DSCP priority mode; non-IP datagram with IEEE 802.1Q tag are mapped to different priority levels based on IEEE 802.1P priority mode if IEEE 802.1P Priority is enabled; the untagged non-IP datagram are mapped based on port priority mode. Syntax qos queue dscp-map { dscp-list } { tc-id } no qos queue dscp-map Parameter dscp-list —— List of DSCP value. One or several DSCP values can be typed using comma to separate.
Parameter sp —— Strict-Priority Mode. In this mode, the queue with higher priority will occupy the whole bandwidth. Packets in the queue with lower priority are sent only when the queue with higher priority is empty. wrr —— Weight Round Robin Mode. In this mode, packets in all the queues are sent in order based on the weight value for each queue. The weight value ratio of TC0, TC1, TC2 and TC3 is 1:2:4:8. sp+wrr —— Strict-Priority + Weight Round Robin Mode.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of QoS for port 5: T1500-28PCT# show qos interface fastEthernet 1/0/5 Display the configuration of QoS for ports 1-4: T1500-28PCT# show qos interface range fastEthernet 1/0/1-4 show qos cos-map Description The show qos cos-map command is used to display the configuration of IEEE 802.1P priority and the mapping relation between IEEE 802.1P priority and tc-id.
show qos queue mode Description The show qos queue mode command is used to display the schedule rule of the egress queues. Syntax show qos queue mode Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the schedule rule of the egress queues: T1500-28PCT# show qos queue mode show qos status Description The show qos status command is used to display the status of IEEE 802.1P priority and DSCP priority.
Chapter 14 Port Mirror Commands Port Mirror refers to the process of forwarding copies of packets from one port to a monitoring port. Usually, the monitoring port is connected to data diagnose device, which is used to analyze the monitored packets for monitoring and troubleshooting the network. monitor session destination interface Description The monitor session destination interface command is used to configure the monitoring port. Each monitor session has only one monitoring port.
monitor session source interface Description The monitor session source interface command is used to configure the monitored port. To delete the corresponding monitored port, please use no monitor session source interface command.
T1500-28PCT(config)# monitor session 1 source interface fastEthernet 1/0/4-5,1/0/7 rx Delete port 4 in monitor session 1 and its configuration: T1500-28PCT(config)# no monitor session 1 source interface fastEthernet 1/0/4 rx show monitor session Description The show monitor session command is used to display the configuration of port monitoring. Syntax show monitor session [session_num] Parameter session_num —— The monitor session number, ranging from 1 to 4. It is optional.
Chapter 15 Port Isolation Commands Port Isolation provides a method of restricting traffic flow to improve the network security by forbidding the port to forward packets to the ports that are not on its forwarding port list. port isolation Description The port isolation command is used to configure the forward port list of a port, so that this port can only communicate with the ports on its port list. To delete the corresponding configuration, please use no port isolation command.
Syntax show port isolation interface [ fastEthernet port | gigabitEthernet port ] Parameter port —— The number of Ethernet port you want to show its forward port list, in the format of 1/0/2.
Chapter 16 Loopback Detection Commands With loopback detection feature enabled, the switch can detect loops using loopback detection packets. When a loop is detected, the switch will display an alert or further block the corresponding port according to the configuration. loopback-detection(global) Description The loopback-detection command is used to enable the loopback detection function globally. To disable it, please use no loopback detection command.
Example Specify the interval-time as 50 seconds: T1500-28PCT(config)# loopback-detection interval 50 loopback-detection recovery-time Description The loopback-detection recovery-time command is used to configure the time after which the blocked port would automatically recover to normal status. Syntax loopback-detection recovery-time recovery-time Parameter recovery-time —— The time after which the blocked port would automatically recover to normal status, and the loopback detection would restart.
Example Enable the loopback detection function of ports 1-3: T1500-28PCT(config)# interface range fastEthernet 1/0/1-3 T1500-28PCT(Config-if-range)# loopback-detection loopback-detection config Description The loopback-detection config command is used to configure the process-mode and recovery-mode for the ports by which the switch copes with the detected loops.
loopback-detection recover Description The loopback-detection recover command is used to remove the block status of selected ports, recovering the blocked ports to normal status, Syntax loopback-detection recover Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Recover the blocked port 2 to normal status: T1500-28PCT(config)# interface fastEthernet 1/0/2 T1500-28PCT(config-if)# loopback-
show loopback-detection interface Description The show loopback-detection interface command is used to display the configuration of loopback detection function and the status of the specified Ethernet port. Syntax show loopback-detection interface [ fastEthernet port | gigabitEthernet port] Parameter port —— The Ethernet port number.
Chapter 17 ACL Commands access-list create Description The access-list create command is used to create standard-IP ACL, extend-IP ACL and Combined ACL. Syntax access-list create access-list-num Parameter access-list-num —— ACL ID, ranging from 100 to 399. The ID range of Standard-IP ACL is 100-199, the Extend-IP ACL is 200-299 and the Combined ACL is 300-399.
Example Create a MAC ACL whose ID is 23: T1500-28PCT(config)# mac access-list 23 access-list standard Description The access-list standard command is used to add Standard-IP ACL rule. To delete the corresponding rule, please use no access-list standard command. Standard-IP ACLs analyze and process data packets based on a series of match conditions, which can be the source IP addresses and destination IP addresses carried in the packets.
T1500-28PCT(config)# access-list standard 120 rule 10 permit sip 192.168.0.100 smask 255.255.255.0 access-list extended Description The access-list extended command is used to add Extended-IP ACL rule. To delete the corresponding rule, please use no access-list extended command.
T1500-28PCT(config)# access-list extended 220 rule 11 permit sip 192.168.0.100 smask 255.255.255.0 access-list combined Description The access-list combined command is used to add a Combined ACL rule. The filtering conditions include the source MAC addresses, destination MAC addresses, source IP addresses and destination IP addresses carried in the packets. To delete the corresponding rule, please use no access-list combined command.
Command Mode Global Configuration Mode Example Create a Combined ACL whose ID is 320, and add Rule 12 for it. In the rule, the source mac address is 11:22:33:44:55:66, the source MAC address mask is 11:11:11:11:11:00, the source IP address is 192.168.0.100 and the source IP address mask is 255.255.255.
Example Create a MAC ACL whose ID is 20, and add Rule 10 for it. In the rule, the source MAC address is 00:01:3F:48:16:23, the source MAC address mask is 11:11:11:11:11:00, and the packets match this rule will be forwarded by the switch: T1500-28PCT(config)# mac access-list 20 T1500-28PCT(config-mac-acl)# rule 10 permit smac 00:01:3F:48:16:23 smask 11:11:11:11:11:00 access-list policy name Description The access-list policy name command is used to add Policy.
Mode. To delete the corresponding actions, please use no access-list policy action command. Syntax access-list policy action policy-name acl-id no access-list policy action policy-name acl-id Parameter policy-name —— The Policy Name, ranging from 1 to 16 characters. acl-id —— The ID of the ACL to which the above policy is applied.
access-list bind(vlan) Description The access-list bind command is used to bind a policy to a VLAN. To cancel the bind relation, please use no access-list bind command. Syntax access-list bind policy-name no access-list bind policy-name Parameter policy-name —— The name of the policy desired to bind.
show access-list policy Description The show access-list policy command is used to display the information of a specified policy. Syntax show access-list policy name Parameter name —— The Policy Name desired to show.
Chapter 18 DHCP Filtering Commands DHCP Filtering functions to monitor the process of hosts obtaining IP addresses from DHCP Servers by configuring the desired port(s) as Trusted Port(s). Only the trusted port(s) can forward DHCP packets from DHCP servers. In this way, the switch can devoid of DHCP cheating attack which will cause network confusion and security problem. ip dhcp filtering Description The ip dhcp filtering command is used to enable DHCP Filtering function.
Example Configure port 1 to be a trusted port: T1500-28PCT(config)#interface fastEthernet 1/0/1 T1500-28PCT(config-if)#ip dhcp filtering trust show ip dhcp filtering Description The show ip dhcp filtering command is used to display the running status of DHCP Filtering.
Chapter 19 PoE Commands PoE (Power over Ethernet) technology describes a system to transmit electrical power along with data to remote devices over standard twisted-pair cable in an Ethernet network. It is especially useful for supplying power to IP telephones, wireless LAN access points, cameras and so on. power inline consumption (global) Description The power inline consumption command is used to configure the max power the PoE switch can supply globally.
Parameter name —— The PoE profile name, ranging from 1 to 16 characters. If the name being assigned contains spaces then put it inside double quotes. supply —— The PoE status of the port in the profile. By default, the PoE status is “enable”. priority —— The PoE priority of the port in the profile. The priority levels include “high”, “middle” and “low” in descending order. When the supply power exceeds the system power limit, the PD linked to the port with lower priority will be disconnected.
Syntax power time-range name no power time-range name Parameter name —— The PoE time-range name, ranging from 1 to 16 characters. Command Mode Global Configuration Mode Example Create a PoE time-range named “tRange1” for the switch: T1500-28PCT(config)# power time-range tRange1 power holiday Description The power holiday command is used to create PoE holiday for the switch. To delete the corresponding PoE holiday configuration, please use no power holiday command.
absolute Description The absolute command is used to create an absolute mode time-range for the PoE time-range of the switch. The switch will supply power when the specified absolute time occurs. To delete the corresponding absolute mode time-range configuration, please use no absolute command. Syntax absolute start start-date end end-date no absolute Parameter start-date —— The start date in Absoluteness Mode, in the format of MM/DD/YYYY.
Parameter week-day —— Periodic Mode, with “1-7”, “daily”, “off-day” and “working-day” options. “1-7” should be entered in the format of 1-3, 7 which represent Monday, Tuesday, Wednesday and Sunday. “Daily” represents every day. “Off-day” represents weekend. “Working-day” represents working day. time-slice —— Create time-slice, in the format of HH:MM-HH:MM.
T1500-28PCT(config-pwr-time-range)# holiday exclude power inline consumption (interface) Description The power inline consumption command is used to configure the power limit the corresponding port can supply. Syntax power inline consumption { power-limit | auto | class1 | class2 | class3 | class4 } Parameter consumption —— The max power the port in the profile can supply. There are six options: “power-limit”, “auto”, ”class1”, “class2”, “class3” and “class4”.
system power limit, the PD linked to the port with lower priority will be disconnected. By default, the priority level is “low”. Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet) Example Configure the PoE priority as “low” for port 2: T1500-28PCT(config)# interface fastEthernet 1/0/2 T1500-28PCT(config-if)# power inline priority low power inline supply Description The power inline supply command is used to configure the PoE status of the corresponding port.
Syntax power inline profile name no power inline profile Parameter name —— The name of the PoE profile to be bound to the port. If the name being assigned contains spaces then put it inside double quotes.
show power inline Description The show power inline command is used to display the global PoE information of the system. Syntax show power inline Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the PoE information of the system: T1500-28PCT# show power inline show power inline configuration interface Description The show power inline configuration interface command is used to display the PoE configuration of the certain port.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the PoE information of all ports: T1500-28PCT# show power inline information interface show power profile Description The show power profile command is used to display the defined PoE profile.
show power time-range Description The show power time-range command is used to display the configuration of PoE time-range.
Chapter 20 MSTP Commands MSTP (Multiple Spanning Tree Protocol), compatible with both STP and RSTP and subject to IEEE 802.1s, can disbranch a ring network. STP is to block redundant links and backup links as well as optimize paths. spanning-tree(global) Description The spanning-tree command is used to enable STP function globally. To disable the STP function, please use no spanning-tree command.
Example Enable the STP function for port 2: T1500-28PCT(config)# interface fastEthernet 1/0/2 T1500-28PCT(config-if)# spanning-tree spanning-tree common-config Description The spanning-tree common-config command is used to configure the parameters of the ports for comparison in the CIST and the common parameters of all instances. To return to the default configuration, please use no spanning-tree common-config command.
point-to-point —— The P2P link status, with auto, open and close options. By default, the option is auto. If the two ports in the P2P link are root port or designated port, they can transit their states to forwarding rapidly to reduce the unnecessary forward delay.
spanning-tree mst configuration Description The spanning-tree mst configuration command is used to access MST Configuration Mode from Global Configuration Mode, as to configure the VLAN-Instance mapping, region name and revision level. To return to the default configuration of the corresponding Instance, please use no spanning-tree mst configuration command.
T1500-28PCT(config)# spanning-tree mst configuration T1500-28PCT(config-mst)# instance 1 vlan 1-100 Disable Instance 1, namely remove all the mapping VLANs 1-100: T1500-28PCT(config)# spanning-tree mst configuration T1500-28PCT(config-mst)# no instance 1 Remove VLANs 1-50 in mapping VLANs 1-100 for Instance 1: T1500-28PCT(config)# spanning-tree mst configuration T1500-28PCT(config-mst)# no instance 1 vlan 1-50 name Description The name command is used to configure the region name of MST instance.
Parameters revision —— The revision level for MST region identification, ranging from 0 to 65535. Command Mode MST Configuration Mode Example Configure the revision level of MST as 100: T1500-28PCT(config)# spanning-tree mst configuration T1500-28PCT(config-mst)# revision 100 spanning-tree mst instance Description The spanning-tree mst instance command is used to configure the priority of MST instance.
use no spanning-tree mst command. A port can play different roles in different spanning tree instance. You can use this command to configure the parameters of the ports in different instance IDs as well as view status of the ports in the specified instance. Syntax spanning-tree mst instance instance-id {[ port-priority pri ] | [ cost cost ]} no spanning-tree mst instance instance-id Parameter instance-id —— Instance ID, ranging from 1 to 8.
Command Mode Global Configuration Mode Example Configure the bridge priority as 4096: T1500-28PCT(config)# spanning-tree priority 4096 spanning-tree tc-defend Description The spanning-tree tc-defend command is used to configure the TC Protect of Spanning Tree globally. To return to the default configuration, please use no spanning-tree tc-defend command. A switch removes MAC address entries upon receiving TC-BPDUs.
Syntax spanning-tree timer {[ forward-time forward-time ] [ hello-time hello-time ] [ max-age max-age ]} no spanning-tree timer Parameter forward-time —— Forward Delay, which is the time for the port to transit its state after the network topology is changed. Forward Delay ranges from 4 to 30 in seconds and it is 15 by default. Otherwise, 2 * (Forward Delay - 1) >= Max Age. hello-time ——Hello Time, which is the interval to send BPDU packets, and used to test the links.
Command Mode Global Configuration Mode Example Configure the hold-count of STP as 8pps: T1500-28PCT(config)# spanning-tree hold-count 8 spanning-tree max-hops Description The spanning-tree max-hops command is used to configure the maximum number of hops that occur in a specific region before the BPDU is discarded. To return to the default configurations, please use no spanning-tree max-hops command.
Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Enable the BPDU filter function for port 2: T1500-28PCT(config)# interface fastEthernet 1/0/2 T1500-28PCT(config-if)# spanning-tree bpdufilter spanning-tree bpduguard Description The spanning-tree bpduguard command is used to enable the BPDU protect function for a port.
Syntax spanning-tree guard loop no spanning-tree guard loop Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Enable the Loop Protect function for port 2: T1500-28PCT(config)# interface fastEthernet 1/0/2 T1500-28PCT(config-if)# spanning-tree guard loop spanning-tree guard root Description The spanning-tree guard root command is used to enable the Root Protect function for a port.
function, please use no spanning-tree guard tc command. A switch removes MAC address entries upon receiving TC-BPDUs. If a malicious user continuously sends TC-BPDUs to a switch, the switch will be busy with removing MAC address entries, which may decrease the performance and stability of the network. With the Protect of Spanning Tree function enabled, you can configure the number of TC-BPDUs in a required time, so as to avoid the process of removing MAC addresses frequently.
show spanning-tree active Description The show spanning-tree active command is used to display the active information of spanning-tree. Syntax show spanning-tree active Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the active information of spanning-tree: T1500-28PCT(config)# show spanning-tree active show spanning-tree bridge Description The show spanning-tree bridge command is used to display the bridge parameters.
Syntax show spanning-tree interface [ fastEthernet port | gigabitEthernet port ] [ edge | ext-cost | int-cost | mode | p2p | priority | role | state | status ] Parameter port —— The Ethernet port number.
Display the protect information of port 1: T1500-28PCT(config)#show spanning-tree interface-security fastEthernet 1/0/1 Display the interface security bpdufilter information: T1500-28PCT(config)# show spanning-tree interface-security bpdufilter show spanning-tree mst Description The show spanning-tree mst command is used to display the related information of MST Instance.
Chapter 21 IGMP Commands IGMP Snooping (Internet Group Management Protocol Snooping) is a multicast control mechanism running on Layer 2 switch. It can effectively prevent multicast groups being broadcasted in the network. ip igmp snooping(global) Description The ip igmp snooping command is used to configure IGMP Snooping globally. To disable the IGMP Snooping function, please use no ip igmp snooping command.
Example Enable IGMP Snooping function of port 3: T1500-28PCT(config)# interface fastEthernet 1/0/3 T1500-28PCT(config-if)# ip igmp snooping ip igmp snooping immediate-leave Description The ip igmp snooping immediate-leave command is used to configure the Fast Leave function for port. To disable the Fast Leave function, please use no ip igmp snooping immediate-leave command.
Example Specify the operation to process unknown multicast as discard: T1500-28PCT(config)# ip igmp snooping drop-unknown ip igmp snooping vlan-config Description The ip igmp snooping vlan-config command is used to enable VLAN IGMP Snooping function or to modify IGMP Snooping parameters, and to create static multicast IP entry. To disable the VLAN IGMP Snooping function, please use no ip igmp snooping vlan-config command.
port-list —— The list of Ethernet ports. Command Mode Global Configuration Mode Example Enable the IGMP Snooping function and modify Router Port Time as 300 seconds, Member Port Time as 200 seconds for VLAN 1-3, and set the Leave time as 15 seconds for VLAN 1-2: T1500-28PCT(config)# ip igmp snooping vlan-config 1-3 rtime 300 T1500-28PCT(config)# ip igmp snooping vlan-config 1-3 mtime 200 T1500-28PCT(config)# ip igmp snooping vlan-config 1-2 ltime 15 Add static multicast IP address 225.0.0.
not a member port any more. Member Port Time ranges from 60 to 600 in seconds. By default, it is 260. leave-time —— Leave Time, which is the interval between the switch receiving a leave message from a host and the switch removing the host from the multicast groups. Leave Time ranges from 1 to 30 in seconds. By default, it is 1. port —— The Ethernet port number.
Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Bind the filtering address ID 2-6 to port 3: T1500-28PCT(config)# interface fastEthernet 1/0/3 T1500-28PCT(config-if)# ip igmp snooping filter addr-id 2-6 ip igmp snooping filter(global) Description The ip igmp snooping filter command is used to add or modify the multicast filtering IP-range.
the forward port list of the multicast group. Otherwise, the switch will drop the IGMP report message. In that way, you can control the multicast groups that users can access.
ip igmp snooping filter mode Description The ip igmp snooping filter mode command is used to configure the Action mode for the desired port. Syntax ip igmp snooping filter mode mode Parameter mode —— Action Mode, with refuse and accept options. Refuse indicates only the multicast packets whose multicast IP is not in the IP-range will be processed, while accept indicates only the multicast packets whose multicast IP is in the IP-range will be processed. By default, the option is “accept”.
show ip igmp snooping interface Description The show ip igmp snooping interface command is used to display the port configuration of IGMP snooping. Syntax show ip igmp snooping interface { fastEthernet port | gigabitEthernet port } { basic-config | filter | packet-stat } show ip igmp snooping interface { fastEthernet port-list | gigabitEthernet port-list } { basic-config | filter | packet-stat } Parameter port —— The Ethernet port number. port-list —— The list of Ethernet ports.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the IGMP snooping configuration information of VLAN 2: T1500-28PCT# show ip igmp snooping vlan 2 show ip igmp snooping multi-vlan Description The show ip igmp snooping multi-vlan command is used to display the Multicast VLAN configuration.
static—— Display static multicast groups. static count—— The numbers of all static multicast groups.
Example Display all the multicast filter address information: T1500-28PCT(config)# show ip igmp snooping filter 160
Chapter 22 SNMP Commands SNMP (Simple Network Management Protocol) functions are used to manage the network devices for a smooth communication, which can facilitate the network administrators to monitor the network nodes and implement the proper operation. snmp-server Description The snmp-server command is used to enable the SNMP function. By default, it is disabled. To return to the default configuration, please use no snmp-server command.
mib-oid —— MIB Object ID. It is the Object Identifier (OID) for the entry of View, ranging from 1 to 61 characters. include | exclude —— View Type, with include and exclude options. They represent the view entry can/cannot be managed by the SNMP management station individually. Command Mode Global Configuration Mode Example Add a View named view1, configuring the OID as 1.3.6.1.6.3.20, and this OID can be managed by the SNMP management station: T1500-28PCT(config)# snmp-server view view1 1.3.6.1.6.3.
By default, the Security Level is noAuthNoPriv. There is no need to configure this in SNMP v1 Mode and SNMP v2c Mode. read-view —— Select the View to be the Read View. The management access is restricted to read-only, and changes cannot be made to the assigned SNMP View. write-view —— Select the View to be the Write View. The management access is writing only and changes can be made to the assigned SNMP View. The View defined both as the Read View and the Write View can be read and modified.
local | remote —— User Type, with local and remote options. Local indicates that the user is connected to a local SNMP engine, while remote means that the user is connected to a remote SNMP engine. group-name —— The Group Name of the User. The User is classified to the corresponding Group according to its Group Name, Security Model and Security Level. smode —— The Security Model of the User, with v1, v2c and v3 options. By default, the option is v1.
T1500-28PCT(config)# snmp-server user admin local group2 smode v3 slev authPriv cmode MD5 cpwd 11111 emode DES epwd 22222 snmp-server community Description The snmp-server community command is used to add Community. To delete the corresponding Community, please use no snmp-server community command. SNMP v1 and SNMP v2c adopt community name authentication. The community name can limit access to the SNMP agent from SNMP network management station, functioning as a password.
Syntax snmp-server host ip udp-port user-name [ smode { v1 | v2c | v3 }] [ slev { noAuthNoPriv | authNoPriv | authPriv }] [ type { trap | inform }] [ retries retries ] [ timeout timeout ] no snmp-server host ip user-name Parameter ip —— The IP address of the management Host. udp-port —— UDP port, which is used to send notifications. The UDP port functions with the IP address for the notification sending. It ranges from 1 to 65535. user-name —— The User name of the management station.
of the notifications as inform, the maximum time for the switch to wait as 1000 seconds, and the retries time as 100: T1500-28PCT(config)# snmp-server host 192.168.0.146 162 admin smode v2c type inform retries 100 timeout 1000 snmp-server engineID Description The snmp-server engineID command is used to configure the local and remote engineID of the switch. To restore to the default setting, please use no snmp-server engineID command.
snmp-server traps snmp Description The snmp-server traps snmp command is used to enable SNMP standard traps which include four types: linkup, linkdown, warmstart and coldstart. To disable the sending of SNMP standard traps, please use no snmp-server traps snmp command. Syntax snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart | auth-failure ] no snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart | auth-failure ] Parameter linkup —— Enable linkup trap.
Syntax snmp-server traps { bandwidth-control | cpu | flash | ipaddr-change | lldp | loopback-detection | storm-control | spanning-tree | memory } no snmp-server traps { bandwidth-control | cpu | flash | ipaddr-change | lldp | loopback-detection | storm-control | spanning-tree | memory } Parameter bandwidth-control —— Enable bandwidth-control trap. It is sent when the rate limit function is enabled and the bandwidth exceeds the predefined value. cpu —— Allow CPU-related trap.
Syntax snmp-server traps power [ over-max-pwr-budget | port-pwr-change | port-pwr-deny | port-pwr-over-30w | port-pwr-overload | port-short-circuit | thermal-shutdown ] no snmp-server traps power [ over-max-pwr-budget | port-pwr-change | port-pwr-deny | port-pwr-over-30w | port-pwr-overload | port-short-circuit | thermal-shutdown ] Parameter over-max-pwr-budget —— Enable over-max-pwr-budget trap. It is sent when the system’s actual total supply power exceeds the system’s maximum budget power.
extended MAC address related traps, please use no snmp-server traps mac command. Syntax snmp-server traps mac [ new | full | learn-mode-change | max-learned ] no snmp-server traps mac [ new | full | learn-mode-change | max-learned ] Parameter new —— Enable new MAC address trap. It is sent when the switch learns new MAC address including dynamic address, static address and filter address. full —— Enable MAC address table trap. It is sent when the MAC address table is full.
delete —— Enable VLAN-deleted traps. It is sent when VLAN is deleted successfully. Command Mode Global Configuration Mode Example Enable all SNMP extended VLAN-related traps for the switch: T1500-28PCT(config)# snmp-server traps vlan Enable VLAN-created trap only for the switch: T1500-28PCT(config)# snmp-server traps vlan create rmon history Description The rmon history command is used to configure the history sample entry. To return to the default configuration, please use no rmon history command.
Example Configure the sample port as Gi1/0/2 and the sample interval as 100 seconds for the entry 1-3: T1500-28PCT(config)# rmon history 1-3 interface fastEthernet 1/0/2 interval 100 owner owner1 rmon event Description The rmon event command is used to configure the entries of SNMP-RMON Event. To return to the default configuration, please use no rmon event command. Event Group, as one of the commonly used RMON Groups, is used to define RMON events. Alarms occur when an event is detected.
T1500-28PCT(config)# rmon event 1-4 user user1 description description1 type log owner owner1 rmon alarm Description The rmon alarm command is used to configure SNMP-RMON Alarm Management. To return to the default configuration, please use no rmon alarm command. Alarm Group is one of the commonly used RMON Groups. RMON alarm management allows monitoring the specific alarm variables.
f-hold —— The falling counter value that triggers the Falling Threshold alarm, ranging from 1 to 65535. By default, it is 100. f-event —— Fall Event, which is the index of the corresponding event which will be triggered if the sampled value is lower than the Falling Threshold. It ranges from 1 to 12. a-type —— Alarm Type, with rise, fall and all options.
show snmp-server view Description The show snmp-server view command is used to display the View table. Syntax show snmp-server view Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the View table: T1500-28PCT# show snmp-server view show snmp-server group Description The show snmp-server group command is used to display the Group table.
Example Display the User table: T1500-28PCT# show snmp-server user show snmp-server community Description The show snmp-server community command is used to display the Community table. Syntax show snmp-server community Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Community table: T1500-28PCT# show snmp-server community show snmp-server host Description The show snmp-server host command is used to display the Host table.
Syntax show snmp-server engineID Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the engineID: T1500-28PCT# show snmp-server engineID show rmon history Description The show rmon history command is used to display the configuration of the history sample entry. Syntax show rmon history [ index ] Parameter index —— The index number of the entry selected to display the configuration, ranging from 1 to 12, in the format of 1-3, 5.
Parameter index —— The index number of the entry selected to display the configuration, ranging from 1 to 12, in the format of 1-3, 5. You can select more than one entry for each command. By default, the configuration of all SNMP-RMON enabled entries is displayed.
Chapter 23 LLDP Commands LLDP function enables network devices to advertise their own device information periodically to neighbors on the same LAN. The information of the LLDP devices in the LAN can be stored by its neighbor in a standard MIB, so it is possible for the information to be accessed by a Network Management System (NMS) such as SNMP. lldp Description The lldp command is used to enable LLDP function. To disable the LLDP function, please use no lldp command.
Parameter multiplier —— Configure the Hold Multiplier parameter. It ranges from 2 to 10. By default, it is 4. Command Mode Global Configuration Mode Example Specify Hold Multiplier as 5: T1500-28PCT(config)# lldp hold-multiplier 5 lldp timer Description The lldp timer command is used to configure the parameters about transmission. To return to the default configuration, please use no lldp timer command.
be sent out (the number of LLDPDUs equals this parameter). The value ranges from 1 to 10 and the default value is 3. Command Mode Global Configuration Mode Example Specify the Transmit Interval of LLDPDU as 45 seconds and Trap message to NMS as 120 seconds: T1500-28PCT(config)# lldp timer tx-interval 45 T1500-28PCT(config)# lldp timer notify-interval 120 lldp med-fast-count Description The lldp med-fast-count command is used to configure the number of the LLDP-MED frames that will be sent out.
Syntax lldp receive no lldp receive Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Enable port 1/0/1 to receive LLDPDU: T1500-28PCT(config)# interface fastEthernet 1/0/1 T1500-28PCT(config-if)# lldp receive lldp transmit Description The lldp transmit command is used to enable the designated port to transmit LLDPDU. To disable the function, please use no lldp transmit command.
Syntax lldp snmp-trap no lldp snmp-trap Command Mode Interface Configuration Mode (interface fastEthernet / interface range fastEthernet / interface gigabitEthernet / interface range gigabitEthernet) Example Enable the SNMP notification for port 1/0/1: T1500-28PCT(config)# interface fastEthernet 1/0/1 T1500-28PCT(config-if)# lldp snmp-trap lldp tlv-select Description The lldp tlv-select command is used to configure TLVs to be included in outgoing LLDPDU.
lldp med-location Description The lldp med-location command is used to configure the Location Identification TLV's content in outgoing LLDPDU of the port.
Status will be changed to Tx&Rx. To disable the LLDP-MED feature for the corresponding port, please use no lldp med-status command.
show lldp Description The show lldp command is used to display the global configuration of LLDP and LLDP-MED fast start repeat count number. Syntax show lldp Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of LLDP and LLDP-MED fast start repeat count number: T1500-28PCT# show lldp show lldp interface Description The show lldp interface command is used to display LLDP and LLDP-MED configuration of the corresponding port.
show lldp local-information interface Description The show lldp local-information interface command is used to display the LLDP and LLDP-MED local information of the corresponding port. By default, the information of all the ports will be displayed. Syntax show lldp local-information interface [ fastEthernet port | gigabitEthernet port ] Parameter port —— The Ethernet port number.
Example Display the LLDP and LLDP-MED neighbor information of port 1/0/1: T1500-28PCT# show lldp neighbor-information interface fastEthernet 1/0/1 show lldp traffic interface Description The show lldp traffic interface command is used to display the LLDP statistic information between the local device and neighbor device of the corresponding port. By default, the LLDP statistic information of all the ports will be displayed.