Planet Networking & Communication GS-2240-48T4X Command Manual

Planet Networking & Communication GS-2240-48T4X Command Manual

Gigabit ethernet l2 web smart switch with 10gbe uplink
Table of Contents

Advertisement

Command Guide
-1-

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GS-2240-48T4X and is the answer not in the manual?

Questions and answers

shaik imran
February 15, 2025

we need all command are working on planet switches

1 comments:
Mr. Anderson
February 15, 2025

The Planet Networking & Communication GS-2240-48T4X switch supports the following commands:

1. show system-runtime - Displays system runtime information.
2. show systime - Displays the system time information.
3. show user - Displays user status.
4. show version - Displays software and system information.
5. show vlan - Displays VLAN information.
6. spanning-tree force-version - Configures the STP version for a specific interface.
7. spanning-tree guard root - Enables BPDU Guard in root mode for a specific interface.
8. spanning-tree link-type - Configures point-to-point mode for an interface.
9. spanning-tree portfast - Configures PortFast settings.
10. help - Provides command-line help.
11. hostname - Configures the switch’s hostname.
12. interface range | xe | ge - Configures interface settings for specific ports.

These commands allow users to monitor system status, configure spanning-tree settings, manage VLANs, and set device parameters.

This answer is automatically generated

Summary of Contents for Planet Networking & Communication GS-2240-48T4X

  • Page 1 Command Guide...
  • Page 2: Table Of Contents

    Command Guide Contents Chapter 1 COMMAND LINE INTERFACE............8 1.1 Accessing the CLI ......................8 1.2 Command Line Modes....................8 1.3 Requirements ........................ 9 Chapter 2 CONSOLE CLI MANAGEMENT............10 2.1 Terminal Setup ......................10 2.2 Logon to the Console ....................12 2.3 Configuring IP Address ....................
  • Page 3 Command Guide 4.3.5.3 description ..............................23 4.3.5.4 exit................................23 4.3.5.5 flowcontrol ..............................24 4.3.5.6 instance ..............................24 4.3.5.7 ip dhcp snooping ............................25 4.3.5.8 jumbo-frame ..............................25 4.3.5.9 ip arp inspection check-vlan ........................26 4.3.5.10 ip arp inspection logging..........................26 4.3.5.11 ip arp inspection trust ..........................27 4.3.5.12 ip dhcp snooping trust ..........................28 4.3.5.13 lacp port-priority............................28 4.3.5.14 lacp timeout .............................29 4.3.5.15 line-rate ..............................29...
  • Page 4 Command Guide 4.3.5.44 switchport private-vlan..........................44 4.3.5.45 switchport private-vlan host-associationGG ....................45 4.3.5.46 switchport trunk allowed vlan........................45 4.3.5.47 vlan classifier activate ..........................46 4.3.6 interface sa | po ..............................46 4.3.6.1 port-channel load-balance .........................47 4.3.6.2 static-channel-group member........................47 4.3.7 interface vlan1 ..............................48 4.3.7.1 arp-ageing-timeout ............................48 4.3.7.2 end ................................49 4.3.7.3 exit................................49 4.3.7.4 ip address..............................50...
  • Page 5 Command Guide 4.3.32 vlan classifier rule ..............................65 4.3.33 vlan database ..............................67 4.3.34 web..................................67 4.4 copy ..........................68 4.4.1 copy..................................68 4.5 debug ........................... 69 4.5.1 debug arp ................................69 4.5.2 debug igmp snooping ............................69 4.5.3 debug ip................................70 4.5.4 debug lacp................................70 4.5.5 debug lldp ................................71 4.5.6 debug mstp................................71 4.5.7 debug pkt filter ..............................72 4.5.8 debug snmp.................................72...
  • Page 6 Command Guide 4.14.6 show ip arp ................................81 4.14.7 show ip dhcp snooping ............................81 4.14.8 show ip igmp snooping ............................82 4.14.9 show ip interface brief............................83 4.14.10 show ip route ..............................83 4.14.11 show lacp.................................84 4.14.12 show lldp .................................84 4.14.13 show logging ..............................85 4.14.14 show mac address-table..........................85 4.14.15 show memory-utilization ..........................86 4.14.16 show mirror..............................86...
  • Page 7 Command Guide 4.20 vty..........................99 4.20.1 vty unlock ................................99 4.21 who..........................99 4.21.1 who..................................99 4.22 write ......................... 100 4.22.1 write.................................100...
  • Page 8: Chapter 1 Command Line Interface

    Command Guide Chapter 1 COMMAND LINE INTERFACE 1.1 Accessing the CLI When accessing the management interface for the switch over a direct connection to the server’s console port, or via a Telnet connection, the switch can be managed by entering command keywords and parameters at the prompt. Using the switch's command-line interface (CLI) is very similar to entering commands on a UNIX system.
  • Page 9: Requirements

    Command Guide The CLI provides the following modes:  User Mode When the operator logs into the CLI, the User Mode is the initial mode. The User Mode contains a limited set of commands. The command prompt shown at this level is: Command Prompt: switch>...
  • Page 10: Chapter 2 Console Cli Management

    Command Guide Chapter 2 CONSOLE CLI MANAGEMENT 2.1 Terminal Setup To configure the system, connect a serial cable to a COM port on a PC or notebook computer and to RJ45 type of serial (console) port of the Industrial Managed Switch. Figure 2-1 Industrial Managed Switch Console Connectivity The console port of the Industrial Managed Switch is an RJ45 type, RS232 serial port connector.
  • Page 11 Command Guide Figure 2-3 Terminal emulatior COM Port Configuration You can change these settings, if desired, after you log on. This management method is often preferred because you can remain connected and monitor the system during system reboots. Also, certain error messages are sent to the serial port, regardless of the interface through which the associated action was initiated.
  • Page 12: Logon To The Console

    Command Guide 2.2 Logon to the Console Once the terminal is connected to the device, power on the Industrial Managed Switch, and the terminal will display “running testing procedures”. Then, the following message asks to log-in user name and password. The factory default user name and password are shown as follows and the login screen in Figure 3-1 appears.
  • Page 13 Command Guide  Configuring IP Address At the “#” prompt, enter the following command and press <Enter>.as shown in Figure 3-3. # configure terminal (config)# ip route 0.0.0.0/0 192.168.1.254 (config)# interface vlan 1 (config-vlan1)# ip address 192.168.1.100/24 The previous command would apply the following settings for the Industrial Managed Switch. IP Address: 192.168.1.100 Subnet Mask: 255.255.255.0 Gateway: 192.168.1.254...
  • Page 14: Chapter 3 Telnet Cli Management

    Command Guide Chapter 3 TELNET CLI MANAGEMENT 3.1 Telnet Login The Industrial Managed Switch also supports telnet for remote management. The switch asks for user name and password for remote login when using telnet, please use “admin” for both username and password. Default IP address: 192.168.0.100 Username: admin Password: admin...
  • Page 15: Chapter 4 Commands For Cli Configuration

    Command Guide Chapter 4 Commands for CLI Configuration 4.1 build 4.1.1 build running-state file Command: build running-state file Default: Usage Guide: To build the running-state file. Example: To build the running-state file. Switch# build running-state file 4.2 clear 4.2.1 clear arp-cache Command: clear arp-cache Default:...
  • Page 16: Clear Ip Dhcp Snooping Binding

    Command Guide 4.2.2 clear ip dhcp snooping binding Command: clear ip dhcp snooping binding <A.B.C.D> | dynamic <A.B.C.D> IP address. dynamic Dynamic IP address. Default: Usage Guide: To clear the dhcp snooping binding statistics. Example: To clear the Switch’s dhcp snooping binding statistics for dynamic IP. Switch# clear ip dhcp snooping binding dynamic 4.2.3 clear clear ip igmp snooping group Command:...
  • Page 17: Clear Ip Prefix-List

    Command Guide 4.2.4 clear ip prefix-list Command: clear ip prefix-list <WORD> <WORD> Name of a prefix list. Default: Usage Guide: To clear the IP . Example: To clear the Switch’s ERPS group 1 statistics. Switch# # clear ip prefix-list 4.2.5 clear lacp Command: clear lacp {counters} | {<1-32>...
  • Page 18: Clear Logging

    Command Guide 4.2.6 clear logging Command: clear logging Default: Usage Guide: To clear the system log. Example: To clear the Switch’s system log. Switch# clear logging 4.2.7 clear mac address-table dynamic Command: clear mac address-table dynamic {address <HHHH.HHHH.HHHH>} | {interface <Port list>} | {vlan <VLAN ID>} <HHHH.HHHH.HHHH>...
  • Page 19: Clear Spanning-Tree Detected Protocols

    Command Guide 4.2.8 clear spanning-tree detected protocols Command: clear spanning-tree detected protocols{ bridge | <1-32> } | { interface <Port list> } Default: Usage Guide: To clear the STP statistics. Example: To clear the Switch’s bridge 1 STP statistics. Switch# clear spanning-tree detected protocols bridge 1 4.3 configure terminal 4.3.1 aaa authentication login console local Command:...
  • Page 20: Exit

    Command Guide 4.3.2 exit Command: exit Default: Usage Guide: To exit configure terminal mode. Example: To exit configure terminal mode. Switch# configure terminal Switch (config)# exit 4.3.3 help Command: help Default: Usage Guide: To explain how to use commands. Example: To explain how to use commands.
  • Page 21: Hostname

    Command Guide Two styles of help are provided: 1. Full help is available when you are ready to enter a command argument (e.g. 'show ?') and describes each possible argument. 2. Partial help is provided when an abbreviated argument is entered and you want to know what arguments match the input (e.g.
  • Page 22: Bandwidth

    Command Guide Example: To enter the interface ge1 and ge2 Switch# configure terminal Switch (config)# interface range ge1 - 2 Switch(config-if-range)# 4.3.5.1 bandwidth Command: access-list action deny action Access list action Default: Deny Usage Guide: To configure Deny for the ACL action. Example: To configure Deny ACL action for the ge4.
  • Page 23: Description

    Command Guide Example: To enable active mode for the LACP profile 1 in the ge4. Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # channel-group 1 mode active 4.3.5.3 description Command: description <description> <description> Interface specific description Default: Disabled Usage Guide: To configure specific description for the interface description.
  • Page 24: Flowcontrol

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # exit Switch (config)# 4.3.5.5 flowcontrol Command: flowcontrol {receive | send} {off | on} flowcontrol Traffic flow control. receive Flow control on receive. send Flow control on send. Disable flow control. Enable flow control.
  • Page 25: Ip Dhcp Snooping

    Command Guide Default: Usage Guide: To configure MSTP instance path-cost or priority for ports. Example: To configure MSTP instance (1) or priority(16) for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # instance 1 priority 16 4.3.5.7 ip dhcp snooping Command: ip dhcp snooping { limit rate <1-2048>...
  • Page 26: Ip Arp Inspection Check-Vlan

    Command Guide Default: 13312 bytes Usage Guide: To configure jumbo frame size for ports. Example: To configure jumbo frame size (2000 bytes) for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # jumbo-frame 2000 4.3.5.9 ip arp inspection check-vlan Command: ip arp inspection check-vlan Address Resolution Protocol...
  • Page 27: Ip Arp Inspection Trust

    Command Guide logging ARP inspection logging mode config log all entries deny log denied entries permit log permitted entries Default: None Usage Guide: To configure Logging type into ARP inspection for specific interface Example: To configure Logging type (All) into ARP inspection for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # ip arp inspection logging all...
  • Page 28: Ip Dhcp Snooping Trust

    Command Guide 4.3.5.12 ip dhcp snooping trust Command: ip dhcp snooping trust Default: Trusted Usage Guide: To configure Trusted into DHCP Snooping for specific interface Example: To configure Trusted into DHCP Snooping for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # ip dhcp snooping trust 4.3.5.13 lacp port-priority Command:...
  • Page 29: Lacp Timeout

    Command Guide 4.3.5.14 lacp timeout Command: lacp timeout short | long lacp Enable LACP on this interface timeout The period between BPDU transmissions short Transmit BPDU each second (fast timeout) long Transmit BPDU each 30th second (slow timeout) Default: Short Usage Guide: To configure LACP timeout type for specific interface Example:...
  • Page 30: Lldp Admin-Status

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # line-rate egress 120m 4.3.5.16 lldp admin-status Command: lldp admin-status { disable | rx | tx | txrx } disable The port can neither transmit nor receive LLDP frames The port can only receive LLDP frames The port can only transmit LLDP frames txrx...
  • Page 31: Lldp Management-Address

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # lldp frame-format snap 4.3.5.18 lldp management-address Command: lldp management-address <ip> <ip> IP address (e.g. 10.0.0.1) Default: Disabled Usage Guide: To configure management address of LLDP TLV for specific interface Example: To configure management address (192.168.0.100) of LLDP TLV for ge4 Switch# configure terminal...
  • Page 32: Mirror Interface

    Command Guide Switch (config)# interface ge4 Switch (config-ge4) # mac-address-learning enable 4.3.5.20 mirror interface Command: mirror interface <port> { both | receive | transmit} <port> Mirrored Port both Mirror traffic in both directions receive Mirror received traffic transmit Mirror transmit traffic Default: Disabled Usage Guide:...
  • Page 33: Path-Cost

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # no mirror interface ge11 direction both 4.3.5.22 path-cost Command: path-cost <1-200000000> <1-200000000> Enable power saving for ports with no link partner. Default: Usage Guide: To configure CIST path-cost for ports. Example: To configure CIST path-cost (200) for ge4 Switch# configure terminal...
  • Page 34: Shutdown

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # priority 16 4.3.5.24 shutdown Command: shutdown Default: No shutdown Usage Guide: To shut down specific interface Example: To shut down ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # shutdown 4.3.5.25 spanning-tree auto-edge Command:...
  • Page 35: Spanning-Tree Edgeport

    Command Guide 4.3.5.26 spanning-tree edgeport Command: spanning-tree edgeport Default: Non-Edge Usage Guide: To enable edge port of CIST Normal Port Configuration for specific interface Example: To enable edge port of CIST Normal Port Configuration for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # spanning-tree edgeport 4.3.5.27 spanning-tree force-version Command:...
  • Page 36: Spanning-Tree Guard Root

    Command Guide 4.3.5.28 spanning-tree guard root Command: spanning-tree guard root Default: Disabled Usage Guide: To enable BPDU Guard of CIST Normal Port Configuration for specific interface Example: To enable BPDU Guard(root mode) of CIST Normal Port Configuration for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-if) # spanning-tree guard root 4.3.5.29 spanning-tree link-type...
  • Page 37: Spanning-Tree Portfast

    Command Guide 4.3.5.30 spanning-tree portfast Command: spanning-tree portfast { bpdu-filter [default | disable | enable] | bpdu-guard [default | disable | enable]} bpdu-filter Set the portfast bpdu-filter for the port bpdu-guard Guard the port against reception of BPDUs default Default disable Disable enable...
  • Page 38: Storm-Control

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # speed 100-full 4.3.5.32 storm-control Command: storm-control [broadcast | dlf | multicast] {disable | level pps <0-100000>} broadcast 100Mbps-full 100Mbps-half multicast 1Gbps disable 10Gbps level pps Threshold Level <0-100000> Threshold pps Default: Auto...
  • Page 39: Switchport Hybrid Vlan

    Command Guide Usage Guide: To configure access VLAN ID for specific interface Example: To configure access VLAN ID (5) for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # switchport access vlan 5 4.3.5.34 switchport hybrid vlan Command: switchport hybrid vlan <vlan_list>...
  • Page 40: Switchport Mode

    Command Guide All VLANs except All VLANs except the following none No VLANs remove Remove VLANs from the current list Default: Usage Guide: To configure VLAN list of Hybrid VLAN for specific interface Example: To configure VLAN list (None) of Hybrid VLAN for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # switchport hybrid allowed vlan none...
  • Page 41: Switchport Mode Hybrid Acceptable-Frame-Type

    Command Guide 4.3.5.37 switchport mode hybrid acceptable-frame-type Command: switchport mode hybrid acceptable-frame-type [ all | vlan-tagged | vlan-untagged ] Allow all frames vlan-tagged Allow only tagged frames vlan-untagged Allow only untagged frames Default: Usage Guide: To configure acceptable-frame-type of hybrid VLAN for specific interface Example: To configure acceptable-frame-type (all) of hybrid VLAN for ge4 Switch# configure terminal...
  • Page 42: Switchport Mode Access Acceptable-Frame-Type

    Command Guide 4.3.5.39 switchport mode access acceptable-frame-type Command: switchport mode access acceptable-frame-type [ all | vlan-untagged ] Allow all frames vlan-untagged Allow only untagged frames Default: Usage Guide: To configure acceptable-frame-type of access VLAN for specific interface Example: To configure acceptable-frame-type (all) of access VLAN for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-if) # switchport mode access acceptable-frame-type all...
  • Page 43: Switchport Mode Trunk Ingress-Filter

    Command Guide 4.3.5.41 switchport mode trunk ingress-filter Command: switchport mode trunk ingress-filter [disable | enable ] disable Disable ingress filtering enable Enable ingress filtering Default: Disabled Usage Guide: To configure ingress filter of trunk VLAN for specific interface Example: To configure ingress filter (enabled) of trunk VLAN for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-if) # switchport mode trunk ingress-filter enable...
  • Page 44: Switchport Port-Security

    Command Guide 4.3.5.43 switchport port-security Command: switchport port-security {mac-address <mac> vlan <vlan id> | maximum <1-1024>} mac-address Secure MAC address <mac> MAC address in HHHH.HHHH.HHHH format vlan VLAN. <vlan id> VLAN ID maximum Max secure addresses <1-1024> Maximum addresses Default: Usage Guide: To configure switchport port-security mode for specific interface Example:...
  • Page 45: Switchport Private-Vlan Host-Associationgg

    Command Guide Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # switchport private-vlan host-association 4 add 5 4.3.5.45 switchport private-vlan host-associationGG Command: switchport private-vlan [host-association | mapping] <vlan_list> add <vlan_list> host-association Host-association mapping Mapping Switching mode characteristics <vlan_list> VLAN IDs Default: Usage Guide: To configure private VLAN host-association for specific interface...
  • Page 46: Vlan Classifier Activate

    Command Guide Default: Usage Guide: To configure VLAN list of trunk VLAN for specific interface Example: To configure VLAN list (Add VLAN ID6) of trunk VLAN for ge4 Switch# configure terminal Switch (config)# interface ge4 Switch (config-ge4) # switchport trunk allowed vlan add 6 4.3.5.47 vlan classifier activate Command: vlan classifier activate [ip-subnet-vlan | mac-vlan | protocol-vlan]...
  • Page 47: Port-Channel Load-Balance

    Command Guide Default: Usage Guide: To enter the aggregation group. Example: To enter the aggregation group(po1) Switch# configure terminal Switch (config)# interface po1 Switch (config-po1)# 4.3.6.1 port-channel load-balance Command: port-channel load-balance { dst-ip | dst-mac | src-dst-ip | src-dst-mac | src-ip | src-mac } dst-ip Destination IP address based load balancing...
  • Page 48: Interface Vlan1

    Command Guide Add aggregator member remove Remove aggregator member Default: Usage Guide: To configure static-channel-group member for groups. Example: To add static-channel-group member (ge10) for groups sa1 Switch# configure terminal Switch (config)# interface sa1 Switch (config-sa1) # static-channel-group member add interface ge10 4.3.7 interface vlan1 Command: interface vlan1...
  • Page 49: End

    Command Guide Default: 300seconds Usage Guide: To configure ARP age time for the vlan1. Example: To configure ARP age time(200seconds) for the vlan1. Switch# configure terminal Switch (config)# interface vlan1 Switch (config- vlan1) # arp-ageing-timeout 200 4.3.7.2 end Command: Go back to EXEC mode Default: Auto Usage Guide:...
  • Page 50: Ip Address

    Command Guide Usage Guide: To exit current mode Example: To exit current mode. Switch# configure terminal Switch (config)# interface vlan X Switch (config-vlan1)# exit Switch (config)# 4.3.7.4 ip address Command: ip address <ip > <ip > IP address (e.g. 10.0.0.1/8) Default: 192.168.0.100/24 Usage Guide:...
  • Page 51: Ip Igmp Snooping

    Command Guide <Port> Port <IP address> IP address <MAC address> MAC address database write-delay DHCP-snooping write-delay <15-86400> Delay time to write(default: 30s) errdisable recovery cause dhcp-rate-limit DHCP-snooping -rate-limit errdisable recovery interval DHCP-snooping interval <1-3600> DHCP-snooping interval(default: 30) verify mac-address DHCP-snooping verify vlan VLAN Default:...
  • Page 52: Ip Interface Vlan

    Command Guide multicast-vlan IGMP Snooping Multicast vlan querier Querier querier-timeout IGMP previous querier timeout query-interval Query Interval query-max-response-time IGMP Max Query Response Time report-suppression IGMPv1/V2 Report Suppression robustness-variable Robustness Variable source-ip Source IP for Querier static-group Static Group to be Joined version IGMP Version vlan...
  • Page 53: Ip Route

    Command Guide Usage Guide: To enable IP VLAN interface. Example: To enable IP VLAN interface(VLAN 2). Switch# configure terminal Switch (config)# ip interface vlan 2 4.3.11 ip route Command: ip route <IP Network> <Next Hop> <IP Network> IP Network <Next Hop> Next Hop Default: Usage Guide:...
  • Page 54: Line Vty

    Command Guide Switch# configure terminal Switch (config)# lacp system-priority 32768 4.3.13 line vty Command: line vty Default: Usage Guide: To enter line mode Example: To enter line mode (vty) Switch# configure terminal Switch (config)# line vty Switch (config-line)# 4.3.13.1 login local Command: login local Default:...
  • Page 55: Connected Count

    Command Guide 4.3.13.2 connected count Command: connected count <0-15> exec-banner Input the number between 0 to 15 Default: Enabled Usage Guide: To enable the connected count of the VTY Example: To enable the connected count(15) of the VTY Switch# configure terminal Switch (config)# line vty Switch (config-line)# connected count 15 4.3.13.3 exec-timeout...
  • Page 56: Exit

    Command Guide <1-2000> Timeout in minutes Default: Usage Guide: To configure EXEC number Example: To configure EXEC number (2000) Switch# configure terminal Switch (config)# line vty Switch (config-line)# executed number 2000 4.3.13.5 exit Command: exit exit Exit from current mode Default: None Usage Guide:...
  • Page 57: Logging Host

    Command Guide timer Set the interval at which packets are sent <5-300> Rate at which LLDP packets are sent (in sec) Default: Usage Guide: To configure the LLDP. Example: To enable the LLDP. Switch# configure terminal Switch (config)# lldp enable 4.3.15 logging host Command: logging host <hostname>...
  • Page 58: Logging Record-Priority

    Command Guide 4.3.16 logging record-priority Command: logging record-priority Default: Disabled Usage Guide: To enable logging record-priority Example: To enable logging record-priority Switch# configure terminal Switch (config)# logging record-priority 4.3.17 mac-address-table ageing-time Command: mac-address-table ageing-time <0,10-1000000> <0,10-1000000> Aging time in seconds, 0 disables aging Default: Usage Guide: To configure Aging Time of MAC Address Table...
  • Page 59: Multiple-Spanning-Tree Enable

    Command Guide <mac_addr> MAC address vlan VLAN keyword <vlan_id> VLAN IDs 1-4095 interface Select an interface to configure <port_type_list> Port list drop drop frames Default: Usage Guide: To configure Static MAC Address Table Example: To configure Static MAC Address Table(Drop MAC address: 0033.4455.5555, VLAN 1). Switch# configure terminal Switch (config)# mac-address-table static 0033.4455.5555 vlan 1 drop 4.3.19 multiple-spanning-tree enable...
  • Page 60: Service Advanced-Vty

    Command Guide Negate a command or set its defaults Default: Usage Guide: To default the function Example: To disable the function (mac-address-table static 0033.4455.5555 vlan 1 drop) Switch# configure terminal Switch (config)# no mac-address-table static 0033.4455.5555 vlan 1 drop 4.3.21 service advanced-vty Command: service advanced-vty Default:...
  • Page 61: Snmp-Server Community

    Command Guide Example: To configure length of command display with 5 lines for current terminal session. Switch # service terminal length 5 4.3.23 snmp-server community Command: snmp-server community <comm> [ ro | rw ] <comm> Community word Read only Read write Default: None Usage Guide:...
  • Page 62: Snmp-Server Enable Traps

    Command Guide Switch# configure terminal Switch (config)# snmp-server contact Server123 4.3.25 snmp-server enable traps Command: snmp-server enable traps Default: Disabled Usage Guide: To enable the SNMP trap Service Example: To enable the SNMP trap Service Switch# configure terminal Switch (config)# snmp-server enable traps 4.3.26 snmp-server group Command: snmp-server group <group_name>...
  • Page 63: Snmp-Server Host

    Command Guide Switch# configure terminal Switch (config)# snmp-server group qq v3 auth 4.3.27 snmp-server host Command: snmp-server host <IP> <conf_name> <IP> SNMP host's IP address <conf_name> Name of the host configuration Default: None Usage Guide: To configure the SNMP Trap Configuration Example: To configure the SNMP Trap Configuration (below table) Switch# configure terminal...
  • Page 64: Static-Channel-Group

    Command Guide Switch# configure terminal Switch (config)# snmp-server location Server123 4.3.29 static-channel-group Command: static-channel-group <1-32> <1-32> Channel group number Default: Disabled Usage Guide: To enable the static-channel-group ID Example: To enable the static-channel-group ID 1 Switch# configure terminal Switch (config)# static-channel-group 1 4.3.30 system-monitor debug Command: system-monitor debug...
  • Page 65: Username

    Command Guide 4.3.31 username Command: username <username> password <password> username Establish User Name Authentication <username > Define username password Specify the password for the user <Password> Define password Default: Username: admin Password: admin Usage Guide: To configure the Profiles of Username Example: To configure the Profiles of Username (Username: aa, Password: bb) Switch# configure terminal...
  • Page 66 Command Guide <vlan> VLAN ID <1000-1999> IP Subnet-based VLAN rule ID ipv4 IP address <ipv4 subnet> IP address in A.B.C.D/M format <2000-2099> Protocol-based VLAN rule ID proto proto - specify an ethernet protocol classification <2000-2099> Protocol-based VLAN rule ID <0-65535> ethernet decimal protocol - Address Resolution atalkaarp...
  • Page 67: Vlan Database

    Command Guide Example: To configure the MAC address (00:30:44:44:55:55) for MAC-based VLAN 2 Switch# configure terminal Switch (config)# vlan classifier rule 1 mac 0030.4444.5555 vlan 2 4.3.33 vlan database Command: Switch(config)#vlan database Switch(config-vlan)# {vlan <2-4094> | private-vlan <2-4094> [association | community | isolated | primary]} vlan database Configure VLAN database...
  • Page 68: Copy

    Command Guide disable disable web function enable enable web function max-connect max-connect <1-8> max num of connect refresh-interval refresh-interval <100-10000> time of refresh interval (default 1000 ms) Default: Usage Guide: To configure the web service Example: To disable the web service Switch# configure terminal Switch (config)# web disable 4.4 copy...
  • Page 69: Debug

    Command Guide 4.5 debug 4.5.1 debug arp Command: debug arp IP ARP and switch transactions Default: None Usage Guide: To enable debug mode of ARP Example: To enable debug mode of ARP Switch # debug arp 4.5.2 debug igmp snooping Command: debug igmp snooping all | decode | encode | event | fsm | recv | send | tib Enable all debugging...
  • Page 70: Debug Ip

    Command Guide Switch # debug igmp snooping 4.5.3 debug ip Command: debug ip dhcp | icmp | packet | tcp | udp dhcp DHCP based transactions icmp ICMP transactions packet IP packets TCP information UDP based transactions Default: None Usage Guide: To enable debug mode of IP Example: To enable debug mode of ICMP...
  • Page 71: Debug Lldp

    Command Guide Default: None Usage Guide: To enable debug mode of LACP Example: To enable debug mode of LACP Switch # debug lacp all 4.5.5 debug lldp Command: debug lldp all | events | packet | protocol Turn on all LLDP debugging events LLDP events packet...
  • Page 72: Debug Pkt Filter

    Command Guide packet MSTP Packets protocol Protocol roles MSTP Role snmp snmp debugging state MSTP State timer MSTP Timers Default: None Usage Guide: To enable debug mode of MSTP Example: To enable debug mode of MSTP Switch # debug mstp all 4.5.7 debug pkt filter Command: debug pkt filter...
  • Page 73: Disable

    Command Guide detail Detail debugging error-string Error string display cess Packet process receive Packet receive send Packet send xdump Packet hexa dump Default: None Usage Guide: To enable debug mode of SNMP Example: To enable debug mode of SNMP Switch # debug snmp all 4.6 disable 4.6.1 disable Command:...
  • Page 74: Dump

    Command Guide 4.7 dump 4.7.1 dump running-state Command: dump running-state Default: None Usage Guide: To dump the running status Example: To dump the running status Switch # dump running-state 4.8 enable 4.8.1 enable Command: enable enable Turn on privileged commands Default: None Usage Guide:...
  • Page 75: Erase

    Command Guide 4.9 erase 4.9.1 erase Command: erase {file | private-config | startup-config} file The file on flash private-config Erase configuration in NV memory startup-config Erase configuration in NV memory Default: None Usage Guide: To erase data of Flash Example: To erase startup-config to default factory configuration(Factory Reset) Switch # erase startup-config erase startup-config? (y/n): y...
  • Page 76: Ping

    Command Guide Switch > exit Press ENTER to get started 4.11 no 4.11.1 no Command: Negate a command or set its defaults Default: Usage Guide: To default the function Example: To disable the function (lacp system-priority 1) Switch# no lacp system-priority 1 4.12 ping 4.12.1 ping Command:...
  • Page 77: Reboot

    Command Guide Switch# ping 192.168.0.5 PING 192.168.0.5 (192.168.0.5): 100 data bytes 100 bytes from 192.168.0.5: icmp_seq=0 time=1.763 ms 100 bytes from 192.168.0.5: icmp_seq=1 time=0.957 ms 100 bytes from 192.168.0.5: icmp_seq=2 time=1.313 ms 100 bytes from 192.168.0.5: icmp_seq=3 time=0.931 ms 100 bytes from 192.168.0.5: icmp_seq=4 time=1.280 ms ----192.168.0.5 PING Statistics---- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.931/1.248/1.763 ms...
  • Page 78: Show

    Command Guide 4.14 show 4.14.1 show cpuusage Command: show cpuusage Default: Usage Guide: To display the CPU usage. Example: To display the CPU usage. Switch # show cpuusage cpu0: 32% 4.14.2 show debugging Command: show debugging Default: Usage Guide: To display debugging functions. Example: To display debugging functions.
  • Page 79: Show Flowcontrol

    Command Guide Snmp debugging is off MSTP debugging status: Snmp debugging is off DHCP snooping debugging status: 4.14.3 show flowcontrol Command: show flowcontrol Default: Usage Guide: To display IEEE 802.3x Flow Control Statistics. Example: To display IEEE 802.3x Flow Control Statistics. Switch # show flowcontrol Port Send FlowControl...
  • Page 80: Show Interface

    Command Guide Switch # show history service terminal-length 1 do sh ru service terminal-length snmp-server community 22 ro snmp-server contact snmp-server contact Server123 snmp-server contact Server123 snmp-server enable traps snmp-server group qq snmp-server group qq v3 auth snmp-server host 192.168.0.4 snmp-server host 192.168.0.4 traps www snmp-server location 123 snmp-server location Server123...
  • Page 81: Show Ip Arp

    Command Guide Hardware is Ethernet, address is 005e.be00.05b4 (bia 005e.be00.05b4) index 5001 metric 1 jumbo-frame 13312 duplex-half <UP,BROADCAST,MULTICAST> VRF Binding: Not bound DHCP client: no started input packets 00, bytes 00, dropped 00, multicast packets 00 output packets 00, bytes 00, multicast packets 00 broadcast packets 00 4.14.6 show ip arp Command: show ip arp...
  • Page 82: Show Ip Igmp Snooping

    Command Guide Switch # show ip dhcp snooping switch DHCP snooping is enabled DHCP snooping is configured on following VLANS: Verification of hwaddr field is enabled 4.14.8 show ip igmp snooping Command: show ip igmp snooping [ vlan <vlan_list> ] [ group ( vlan <vlan_list> ) ] [mrouter ( vlan <vlan_list>...
  • Page 83: Show Ip Interface Brief

    Command Guide 4.14.9 show ip interface brief Command: show ip interface brief brief Brief IP interface status Default: Usage Guide: To display the IP interface status. Example: To display the IP interface status. Switch # show ip interface brief Interface IP-Address Status Protocol...
  • Page 84: Show Lacp

    Command Guide 0.0.0.0/0 [1/0] via 192.168.0.254, vlan1 127.0.0.0/8 is directly connected, lo 192.168.0.0/24 is directly connected, vlan1 192.168.1.0/24 [1/0] via 192.168.0.10, vlan1 4.14.11 show lacp Command: show lacp { counter | etherchannel | port | sys-id } counter LACP counters etherchannel LACP channel commands port port commands...
  • Page 85: Show Logging

    Command Guide Default: Usage Guide: To display the LLDP neighbor information. Example: To display the LLDP neighbor information. Switch # show lldp neighbor LLDP Neighbors Number: 0 4.14.13 show logging Command: show logging Default: Usage Guide: To display the Syslog information. Example: To display the Syslog information Switch # show logging...
  • Page 86: Show Memory-Utilization

    Command Guide Usage Guide: To display the MAC address table. Example: To display the MAC address table counter. Switch # show mac-address-table count Mac-address-table count: Static: Dynamic: 4.14.15 show memory-utilization Command: show memory-utilization Default: Usage Guide: To display the System Memory information. Example: To display the System Memory information.
  • Page 87: Show Port-Security

    Command Guide Usage Guide: To display the Port Mirroringinformation. Example: To display the Port Mirroring information. Switch # show mirror 4.14.17 show port-security Command: show port-security [address] address Show secure address Default: Usage Guide: To display the MAC Addresses of Port Security. Example: To display the MAC Addresses of Port Security.
  • Page 88: Show Process

    Command Guide Switch # show privilege 4.14.19 show process Command: show process Default: Usage Guide: To display the System Process ID. Example: To display the System Process ID. Switch # show process PID NAME TIME FD 1 nsm 00:08:59 9 15 lacpd 00:08:55 11 18 mstpd...
  • Page 89: Show Snmp

    Command Guide Switch # show running-config spanning-tree mst config no multiple-spanning-tree enable interface lo mtu 32768 interface vlan1 ip address 192.168.0.100/24 interface ge1 jumbo-frame 13312 4.14.21 show snmp Command: show snmp {community | contact | engine-id | group | host | location | sub-agent | user | view} community show community information contact...
  • Page 90: Show Spanning-Tree Mst

    Command Guide Switch # show snmp % SNMP agent not enabled 4.14.22 show spanning-tree mst Command: show spanning-tree mst [ brief | config | detailed [ interface <port_type> ] | instance <1-15> | interface <port_type> brief Display Brief information config Display Configuration information detail Display detailed information...
  • Page 91: Show Static-Channel-Group

    Command Guide Usage Guide: To display the startup-config. Example: To display the startup-config. Switch # show startup-config spanning-tree mst config no multiple-spanning-tree enable interface lo mtu 32768 interface vlan1 ip address 192.168.0.100/24 interface ge1 jumbo-frame 13312 4.14.24 show static-channel-group Command: show static-channel-group Default: Usage Guide:...
  • Page 92: Show Storm-Control

    Command Guide 4.14.25 show storm-control Command: show storm-control <port_type> <port_type> Port Type Default: Usage Guide: To display the storm-control configuration. Example: To display the storm-control configuration with ge1. Switch # show storm-control ge1 Port BcastLevel McastLevel DlfLevel disable disable disable 4.14.26 show system-runtime Command: show system-runtime...
  • Page 93: Show User

    Command Guide Default: Usage Guide: To display the system time information. Example: To display the system time information. Switch # show systime The current time:2000-01-01 00:40:05 4.14.28 show user Command: show user Default: Usage Guide: To display the user status. Example: To display the user status for all.
  • Page 94: Show Vlan

    To display the software and system information. Switch # show verison Version : 1.0b151208 Created : 2015-12-08 17:02:08 Product Name: GS-2240-48T4X MAC Address : 0011.2233.4455 DRAM SIZE : 262144K bytes FLASH SIZE : 32768K bytes Running Time: DAY:0 HOUR:0 MIN:41 SEC:58 4.14.30 show vlan...
  • Page 95: Systime

    Command Guide 4.15 systime 4.15.1 systime Command: systime <data> <time> <data> Date format:2010-01-01 <time> Time format:23:59:59 Default: None Usage Guide: To configure the system time Example: To configure the system time Switch # systime 2015-02-02 22:45:45 4.16 telnet 4.16.1 telnet Command: telnet <ip>...
  • Page 96: Terminal

    Command Guide 4.17 terminal 4.17.1 terminal length Command: terminal length <0-512> <0-512> Number of lines on screen (0 for no pausing) Default: The default length is 24. Usage Guide: To use this command to set the number of lines to display on the screen. Example: set the number of lines to display on the screen to 30 Switch # terminal length 30...
  • Page 97: Trace-Route

    Command Guide 4.18 trace-route 4.18.1 trace-route Command: trace-route <ip> <ip> host IP address (e.g. 10.0.0.1) Default: None Usage Guide: To trace routing the IP address Example: To trace routing the 192.168.0.5 Switch # trace-route 192.168.0.5 4.19 undebug 4.19.1 undebug all Command: undebug all Turn off all debugging...
  • Page 98: Undebug Arp

    Command Guide 4.19.2 undebug arp Command: undebug arp IP ARP and switch transactions Default: None Usage Guide: To disable debug mode of ARP Example: To disable debug mode of ARP Switch # undebug arp 4.19.3 undebug ip Command: undebug ip dhcp | icmp | packet | tcp | udp dhcp DHCP based transactions icmp...
  • Page 99: Vty Unlock

    Command Guide 4.20 vty 4.20.1 vty unlock Command: vty unlock Default: None Usage Guide: To unlock the vty Example: To unlock the vty Switch # vty unlock 4.21 who 4.21.1 who Command: Default: None Usage Guide: To dump the vty user status Example: To dump the vty user status Switch # who...
  • Page 100: Write

    Command Guide 4.22 write 4.22.1 write Command: write { <file> | memory | terminal } <file> Write to file memory Write to NV memory terminal Write to terminal Default: None Usage Guide: To write running configuration to memory or terminal. Example: To write running configuration to memory.

This manual is also suitable for:

Gs-2240-24t4x

Table of Contents