D-Link DGS-3212SR Command Line Interface Reference Manual

D-link dgs-3212sr: reference guide
Hide thumbs Also See for DGS-3212SR:

Advertisement

DGS-3212SR
Command Line Interface Reference Manual
First Edition (August 2003)
.............

Advertisement

Table of Contents
loading

Summary of Contents for D-Link DGS-3212SR

  • Page 1 DGS-3212SR Command Line Interface Reference Manual First Edition (August 2003) ………….
  • Page 2 DGS-3212SR Switch CLI Reference Wichtige Sicherheitshinweise Bitte lesen Sie sich diese Hinweise sorgfältig durch. Heben Sie diese Anleitung für den spätern Gebrauch auf. Vor jedem Reinigen ist das Gerät vom Stromnetz zu trennen. Vervenden Sie keine Flüssig- oder Aerosolreiniger. Am besten dient ein angefeuchtetes Tuch zur Reinigung.
  • Page 3 This Warranty applies on the condition that the product Registration Card is filled out and returned to a D-Link office within ninety (90) days of purchase. A list of D-Link offices is provided at the back of this manual, together with a copy of the Registration Card.
  • Page 4 Registration Card. If a Registration Card for the product in question has not been returned to a D-Link office, then a proof of purchase (such as a copy of the dated purchase invoice) must be provided when requesting warranty service.
  • Page 5 DGS-3212SR Switch CLI Reference FCC Warning This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment.
  • Page 6: Table Of Contents

    Table of Contents Introduction ... 1 Using the Console CLI ... 3 Command Syntax ... 7 Basic Switch Commands ... 9 Switch Port Commands ... 30 SNMP Commands ... 35 Download|Upload Commands ... 70 Network Monitoring Commands ... 73 MAC Notification ... 89 Spanning Tree Commands ...
  • Page 7: Introduction

    Introduction NTRODUCTION There is no initial username or password. Just press the Enter key twice to display the CLI input cursor − DGS-3212SR:4#. This is the command line where all commands are input. Setting the Switch’s IP Address Each Switch must be assigned its own IP Address, which is used for communication with an SNMP network manager or other TCP|IP application (for example BOOTP, TFTP).
  • Page 8 Switch Information (Basic Settings) window on the Configuration menu. The IP address for the switch must be set before it can be managed with the Web- based manager. The switch IP address can be automatically set using BOOTP or DHCP protocols, in which case the actual address assigned to the switch must be known.
  • Page 9: Using The Console Cli

    DGS-3212SR Switch CLI Reference SING THE The DGS-3212SR supports a console management interface that allows the user to connect to the switch’s management agent via a serial port and a terminal or a computer running a terminal emulation program. The console can also be used over the network using the TCP|IP Telnet protocol.
  • Page 10 DGS-3212SR Switch CLI Reference There are a number of helpful features included in the CLI. Entering the ? command will display a list of all of the top-level commands. Figure 2-2. The ? Command The dir command has the same function as the ? command.
  • Page 11 DGS-3212SR Switch CLI Reference Figure 2-4. Using the Up Arrow to Re-enter a Command In the above example, the command config account was entered without the required parameter <username>, the CLI returned the Next possible completions: <username> prompt. The up arrow cursor control key was pressed to re-enter the previous command (config account) at the command prompt.
  • Page 12 DGS-3212SR Switch CLI Reference Figure 2-6. Next possible completions: Show Command In the above example, all of the possible next parameters for the show command are displayed. At the next command prompt, the up arrow was used to re-enter the show command, followed by the account parameter.
  • Page 13: Command Syntax

    DGS-3212SR Switch CLI Reference OMMAND The following symbols are used to describe how command entries are made and values and arguments are specified in this manual. The online help contained in the CLI and available through the console interface uses the same syntax.
  • Page 14 DGS-3212SR Switch CLI Reference {braces} Purpose Encloses an optional value or set of optional arguments. Syntax config igmp [<ipif_name>|all] {version <value>|query_interval <sec>|max_response_time <sec>| robustness_variable <value>|last_member_query_interval <value>|state [enable|disable]} Description In the above syntax example, you must choose to enter an IP interface name in the <ipif_name>...
  • Page 15: Basic Switch Commands

    DGS-3212SR Switch CLI Reference ASIC WITCH The basic switch commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters create account [admin|user] <username> config account <username> show account show session...
  • Page 16 DGS-3212SR Switch CLI Reference create account Purpose Used to create user accounts Syntax create [admin|user] <username> Description The create account command is used to create user accounts that consist of a username of 1 to 15 characters and a password of 0 to 15 characters.
  • Page 17 DGS-3212SR Switch CLI Reference config account Purpose Used to configure user accounts Syntax config account <username> Description The config account command configures a user account that has been created using the create account command. Parameters <username> Restrictions Only Administrator-level users can issue this command.
  • Page 18 DGS-3212SR Switch CLI Reference show account Purpose Used to display user accounts Syntax show account Description Displays all user accounts created on the switch. Up to 8 user accounts can exist on the switch at one time. Parameters None. Restrictions None.
  • Page 19 DGS-3212SR Switch CLI Reference delete account Purpose Used to delete an existing user account Syntax delete account <username> Description The delete account command deletes a user account that has been created using the create account command. Parameters <username> Restrictions Only Administrator-level users can issue this command.
  • Page 20 DGS-3212SR Switch CLI Reference show session Purpose Used to display a list of currently logged-in users. Syntax show session Description This command displays a list of all the users that are logged-in at the time the command is issued. Parameters...
  • Page 21 DGS-3212SR Switch CLI Reference show serial_port Purpose Used to display the current serial port settings. Syntax show serial_port Description This command displays the current serial port settings. Parameters None. Restrictions None Basic Switch Commands Example Usage: To display the serial port setting:...
  • Page 22 DGS-3212SR Switch CLI Reference show switch Purpose Used to display information about the switch. Syntax show switch Description This command displays information about the switch. Parameters None. Restrictions None. Basic Switch Commands Example Usage: To display the switch information: DGS-3212SR:4#show switch...
  • Page 23 DGS-3212SR Switch CLI Reference show serial_port Purpose Used to display the current serial port settings. Syntax show serial_port Description This command displays the current serial port settings. Parameters None. Restrictions None Basic Switch Commands Example Usage: To display the serial port setting:...
  • Page 24 DGS-3212SR Switch CLI Reference config serial_port Purpose Used to configure the serial port. Syntax config serial_port {baud_rate[9600|19200|38400|115200]|auto_logout [never|2_minutes|5_minutes|10_minutes| 15_minutes]} Description This command is used to configure the serial port’s baud rate and auto logout settings. [9600|19200|38400|115200] − The serial bit rate that...
  • Page 25 DGS-3212SR Switch CLI Reference enable clipaging Purpose Used to pause the scrolling of the console screen when the show command displays more than one page. Syntax enable clipaging Description This command is used when issuing the show command will cause the console screen to rapidly scroll through several pages.
  • Page 26 DGS-3212SR Switch CLI Reference disable clipaging Purpose Used to disable the pausing of the console screen scrolling at the end of each page when the show command would display more than one screen of information. Syntax disable clipaging Description This command is used to disable the pausing of...
  • Page 27 DGS-3212SR Switch CLI Reference enable telnet Purpose Used to enable communication with and management of the switch using the Telnet protocol. Syntax enable telnet <tcp_port_number> Description This command is used to enable the Telnet protocol on the switch. The user can specify the TCP or UDP port number the switch will use to listen for Telnet requests.
  • Page 28 DGS-3212SR Switch CLI Reference disable telnet Purpose Used to disable the Telnet protocol on the switch. Syntax disable telnet Description This command is used to disable the Telnet protocol on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 29 DGS-3212SR Switch CLI Reference enable web Purpose Used to enable the HTTP-based management software on the switch. Syntax enable web <tcp_port_number> Description This command is used to enable the Web- based management software on the switch. The user can specify the TCP port number the switch will use to listen for Telnet requests.
  • Page 30 DGS-3212SR Switch CLI Reference disable web Purpose Used to disable the HTTP-based management software on the switch. Syntax disable web Description This command disables the Web-based management software on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 31 DGS-3212SR Switch CLI Reference save Purpose Used to save changes in the switch’s configuration to non-volatile RAM. Syntax save Description This command is used to enter the current switch configuration into non-volatile RAM. The saved switch configuration will be loaded into the switch’s memory each time the switch is...
  • Page 32 DGS-3212SR Switch CLI Reference reboot Purpose Used to restart the switch. Syntax reboot Description This command is used to restart the switch. Parameters None. Restrictions None. Basic Switch Commands Example Usage: To restart the switch: DGS-3212SR:4#reboot Command: reboot Are you sure you want to proceed with the system reboot? (y|n)
  • Page 33 The switch will not reboot. Restrictions Only administrator-level users can issue this command. Basic Switch Commands Example Usage: To restore all of the switch’s parameters to their default values: DGS-3212SR:4#reset config Command: reset config Success. DGS-3212SR:4#...
  • Page 34 DGS-3212SR Switch CLI Reference login Purpose Used to log in a user to the switch’s console. Syntax login Description This command is used to initiate the login procedure. The user will be prompted for his Username and Password. Parameters None.
  • Page 35 DGS-3212SR Switch CLI Reference logout Purpose Used to log out a user from the switch’s console. Syntax logout Description This command terminates the current user’s session on the switch’s console. Parameters None. Restrictions None. Basic Switch Commands Example Usage: To terminate the current user’s console session:...
  • Page 36: Switch Port Commands

    DGS-3212SR Switch CLI Reference WITCH The switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config ports <portlist|all> speed [auto|10_half|10_full|100_half|100_full| 1000_half|1000_full] flow_control [enable|disable] learning [enable|disable] state [enable|disable] show ports <portlist|all>...
  • Page 37 Switch Port Commands Example Usage: To configure the speed of port 3 to be 10 Mbps, full duplex, learning and state enable: DGS-3212SR:4#config ports 1-3 speed 10_full learning on state enable Command: config ports 1-3 speed 10_full learning on state enable Success.
  • Page 38 1:3 would specify switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3-2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4 − in numerical order. admin_state [enable|disaled] – enable or disable port lock for the listed ports.
  • Page 39 DGS-3212SR Switch CLI Reference show ports Purpose Used to display the current configuration of a range of ports. Syntax show ports {<portlist>} Description This command is used to display the current configuration of a range of ports. <portlist> − Specifies a range of ports to be Parameters configured.
  • Page 40 For example, 1:3 would specify switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3-2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4 − in numerical order. Restrictions None.
  • Page 41: Snmp Commands

    Interface (CLI) are listed (along with the appropriate parameters) in the following table. The DGS-3212SR supports the Simple Network Management Protocol (SNMP) versions 1, 2c, and 3. You can specifiy which version of the SNMP you want to use to monitor and control the switch.
  • Page 42 DGS-3212SR Switch CLI Reference Command Parameters 8-16 > | sha(3) <auth_password 8-20 >] priv [none(1) | des(2) <priv_password 8-16> ]| by_key(2) auth [md5(2) <auth_key 32-32>| sha(3) <auth_key 40-40>] priv [none(1) |des(2) <priv_key 32-32> ]]} delete snmp user <username 32> show snmp user...
  • Page 43 DGS-3212SR Switch CLI Reference Command Parameters create snmp host <ipaddr> [v1|v2c|v3 [noauth_nopriv | auth_nopriv | auth_priv]] <auth_string 32> delete snmp host <ipaddr> show snmp host {<ipaddr>} Each command is listed, in detail, in the following sections. SNMP Commands...
  • Page 44 SNMP agent. The default read write community string is private. Restrictions Only administrator-level users can issue this command. SNMP Commands Example Usage: To configure an SNMP community “System”: DGS-3212SR:4#config snmp community System readwrite Command: config snmp community System readwrite Success. DGS-3212SR:4#...
  • Page 45 DGS-3212SR Switch CLI Reference config snmp system_name Purpose Used to configure a name for the switch. Syntax config snmp system_name <sw_name> Description This command is used to give the switch an alpha-numeric name of up to 128 characters. <sw_name> − An alpha-numeric name for the Parameters switch of up to 128 characters.
  • Page 46 DGS-3212SR Switch CLI Reference config snmp system_location Purpose Used to enter a description of the location of the switch. Syntax config snmp system_location <sw_location> Description This command is used to enter a description of the location of the switch. A maximum of 128 characters can be used.
  • Page 47 DGS-3212SR Switch CLI Reference config snmp system_contact Purpose Used to enter the name of a contact person who is responsible for the switch. Syntax config snmp system_contact <sw_contact> Description This command is used to enter the name and|or other information to identify a contact person who is responsible for the switch.
  • Page 48 DGS-3212SR Switch CLI Reference enable rmon Purpose Used to enable RMON on the switch. Syntax enable rmon Description This command is used, in conjunction with the disable RMON command below, to enable and disable remote monitoring (RMON) on the switch.
  • Page 49 DGS-3212SR Switch CLI Reference disable rmon Purpose Used to disable RMON on the switch. Syntax disable rmon Description This command is used, in conjunction with the enable rmon command above, to enable and disable remote monitoring (RMON) on the switch.
  • Page 50 DGS-3212SR Switch CLI Reference create trusted_host Purpose Used to create trusted hosts. Syntax create trusted_host <ipaddr> Description This command is used to create trusted hosts. A trusted host is a recipient of SNMP, Web, and Telnet messages generated by the switch’s SNMP agent.
  • Page 51 DGS-3212SR Switch CLI Reference show trusted_host Purpose Used to display a list of trusted hosts entered on the switch using the create trusted_host command above. Syntax show trusted_host Description This command is used to display a list of trusted hosts entered on the switch using the create trusted_host command above.
  • Page 52 DGS-3212SR Switch CLI Reference delete trusted_host Purpose Used to delete a trusted host entry made using the create trusted_host command above. Syntax delete trusted _host <ipaddr> Description This command is used to delete a trusted host entry made using the create trusted_host command above.
  • Page 53 DGS-3212SR Switch CLI Reference enable snmp traps Purpose Used to enable SNMP trap support. Syntax enable snmp traps Description This command is used to enable SNMP trap support on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 54 DGS-3212SR Switch CLI Reference disable snmp traps Purpose Used to disable SNMP trap support on the switch. Syntax enable snmp traps Description This command is used to disable SNMP trap support on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 55 DGS-3212SR Switch CLI Reference enable snmp authenticate traps Purpose Used to enable SNMP authentication trap support. Syntax enable snmp authenticate traps Description This command is used to enable SNMP authentication trap support on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 56 DGS-3212SR Switch CLI Reference disable snmp authenticate traps Purpose Used to disable SNMP authentication trap support. Syntax disable snmp authenticate traps Description This command is used to disable SNMP authentication support on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 57 Only administrator-level users can issue this command. Example Usage: To create an SNMP user on the switch: DGS-3212SR:4#create snmp user dlink default encrypted by_password auth md5 auth_password none Command: create snmp user dlink default encrypted by_password auth md5 auth_password none Success.
  • Page 58 DGS-3212SR Switch CLI Reference delete snmp user Purpose Used to remove an SNMP user from an SNMP group and to delete the associated SNMP group. Syntax delete snmp user <username 32> Description The delete snmp user command removes an SNMP user from its SNMP group and then deletes the associated SNMP group.
  • Page 59 DGS-3212SR Switch CLI Reference show snmp user Purpose Used to display information about each SNMP username in the SNMP group username table. Syntax show snmp user Description The show snmp user command displays information about each SNMP username in the SNMP group username table.
  • Page 60 DGS-3212SR Switch CLI Reference show snmp groups Purpose Used to display the group-names of SNMP groups currently configured on the switch. The security model, level, and status of each group is also displayed. Syntax show snmp groups Description The show snmp groups command displays the group-names of SNMP groups currently configured on the switch.
  • Page 61 SNMP manager can access. Restrictions Only administrator-level users can issue this command. SNMP Commands Example Usage: To create an SNMP view: DGS-3212SR:4#create snmp view dlinkview 1.3.6 view_type included Command: create snmp view dlinkview 1.3.6 view_type included Success. DGS-3212SR:4#...
  • Page 62 DGS-3212SR Switch CLI Reference delete snmp view Purpose Used to remove an SNMP view entry previously created on the switch. Syntax delete snmp view <view_name 32> [all|<oid>] Description The delete snmp view command is used to remove an SNMP view previously created on the switch.
  • Page 63 DGS-3212SR Switch CLI Reference show snmp view Purpose Used to display an SNMP view previously created on the switch. Syntax show snmp view {<view_name 32>} Description The show snmp view command displays an SNMP view previously created on the switch.
  • Page 64 MIBs on the switch. Restrictions Only administrator-level users can issue this command. Example Usage: To create the SNMP community string “dlink:” DGS-3212SR:4#create snmp community dlink view ReadView read_write Command: create snmp community dlink view ReadView read_write Success.
  • Page 65 DGS-3212SR Switch CLI Reference delete snmp community Purpose Used to remove a specific SNMP community string from the switch. Syntax delete snmp community <community_string 32> Description The delete snmp community command is used to remove a previously defined SNMP community string from the switch.
  • Page 66 DGS-3212SR Switch CLI Reference show snmp community Purpose Used to display SNMP community strings configured on the switch. Syntax show snmp community {<community_string 32>} Description The show snmp community command is used to display SNMP community strings that are configured on the switch.
  • Page 67 DGS-3212SR Switch CLI Reference config snmp engineID Purpose Used to configure a name for the SNMP engine on the switch. Syntax config snmp engineID <snmp_engineID> Description The config snmp engineID command configures a name for the SNMP engine on the switch.
  • Page 68 DGS-3212SR Switch CLI Reference show snmp engineID Purpose Used to display the identification of the SNMP engine on the switch. Syntax show snmp engineID Description The show snmp engineID command displays the identification of the SNMP engine on the switch.
  • Page 69 DGS-3212SR Switch CLI Reference create snmp group Purpose Used to create a new SNMP group, or a table that maps SNMP users to SNMP views. Syntax create snmp group <groupname 32> [v1|v2c|v3 [noauth_nopriv|auth_nopriv|auth_priv]] {read_view <view_name 32>|notify_view <view_name 32>|notify_view <view_name 32>}...
  • Page 70 DGS-3212SR Switch CLI Reference To create an SNMP group named “sg1:” DGS-3212SR:4#create snmp group sg1 v3 noauth_nopriv read_view v1 write_view v1 no tify_view v1 Command: create snmp group sg1 v3 noauth_nopriv read_view v1 write_view v1 notif y_view v1 Success. DGS-3212SR:4#...
  • Page 71 DGS-3212SR Switch CLI Reference delete snmp group Purpose Used to remove an SNMP group from the switch. Syntax delete snmp group <groupname 32> Description The delete snmp group command is used to remove an SNMP group from the switch. <groupname 32> − An alphanumeric name of...
  • Page 72 SNMP agent. Restrictions Only administrator-level users can issue this command. Example Usage: To create an SNMP host to receive SNMP messages: DGS-3212SR:4#create snmp host 10.48.74.100 v3 auth_priv public Command: create snmp host 10.48.74.100 v3 auth_priv public Success. DGS-3212SR:4#...
  • Page 73 DGS-3212SR Switch CLI Reference SNMP Commands...
  • Page 74 DGS-3212SR Switch CLI Reference delete snmp host Purpose Used to remove a recipient of SNMP traps generated by the switch’s SNMP agent. Syntax delete snmp host <ipaddr> Description The delete snmp host command deletes a recipient of SNMP traps generated by the switch’s SNMP agent.
  • Page 75 DGS-3212SR Switch CLI Reference show snmp host Purpose Used to display the recipient of SNMP traps generated by the switch’s SNMP agent. Syntax show snmp host {<ipaddr>} Description The show snmp host command is used to display the IP addresses and configuration...
  • Page 76: Download|Upload Commands

    DGS-3212SR Switch CLI Reference OWNLOAD PLOAD The download|upload commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters download firmware <ipaddr> <path_filename> unit [all|<unitid>] configuration <ipaddr> <path_filename> {increment} upload configuration <ipaddr>...
  • Page 77 TFTP server. For example, C:\3326S.had. unit [all|<unitid>] − all specifies all units (switches), <unitid> is the unit id of the switch that will receive the download. increment − Allows the download of a partial switch configuration file.
  • Page 78 DGS-3212SR Switch CLI Reference upload Purpose Used to upload the current switch settings or the switch history log to a TFTP server. Syntax upload [configuration|log] <ipaddr> <path_filename> Description This command is used to upload either the switch’s current settings or the switch’s history log to a TFTP server.
  • Page 79: Network Monitoring Commands

    DGS-3212SR Switch CLI Reference ETWORK ONITORING The network monitoring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters show packet ports <portlist> show error ports <portlist> show utilitzation clear counters ports <portlist>...
  • Page 80 DGS-3212SR Switch CLI Reference show packet ports Purpose Used to display statistics about the packets sent and received by the switch. Syntax show packet ports <portlist> Description This command is used to display statistics about packets sent and received by ports specified in the port list.
  • Page 81 DGS-3212SR Switch CLI Reference show error ports Purpose Used to display the error statistics for a range of ports. Syntax show error ports <portlist> Description This command will display all of the packet error statistics collected and logged by the swtich for a given port list.
  • Page 82 DGS-3212SR Switch CLI Reference show utilization Purpose Used to display real-time port utilization statistics. Syntax show utilization Description This command will display the real-time port utilization statistics for the switch. Parameters None. Restrictions None. Network Monitoring Commands Example Usage: To display the port utilization statistics:...
  • Page 83 DGS-3212SR Switch CLI Reference clear counters Purpose Used to clear the switch’s statistics counters. Syntax clear counters {ports <portlist>} Description This command will clear the counters used by the switch to compile statistics. <portlist> − Specifies a range of ports to be Parameters configured.
  • Page 84 DGS-3212SR Switch CLI Reference clear log Purpose Used to clear the switch’s history log. Syntax clear log Description This command will clear the switch’s history log. Parameters None. Restrictions Only administrator-level users can issue this command. Network Monitoring Commands Example Usage:...
  • Page 85 DGS-3212SR Switch CLI Reference show log Purpose Used to display the switch history log. Syntax show log {index <value>} Description This command will display the contents of the switch’s history log. index <value> − The show log command will Parameters display the history log until the log number reaches this value.
  • Page 86 DGS-3212SR Switch CLI Reference enable syslog Purpose Used to enable the system log to be sent to a remote host. Syntax enable syslog Description The enable syslog command enables the system log to be sent to a remote host. Parameters None.
  • Page 87 DGS-3212SR Switch CLI Reference disable syslog Purpose Used to enable the system log to be sent to a remote host. Syntax disable syslog Description The disable syslog command disables the system log to be sent to a remote host. Parameters None.
  • Page 88 DGS-3212SR Switch CLI Reference show syslog Purpose Used to display the syslog protocol status as enable or disable. Syntax show syslog Description The show syslog command displays the syslog status as enable or disable. Parameters None. Restrictions None. Network Monitoring Commands...
  • Page 89 DGS-3212SR Switch CLI Reference create syslog host Purpose Used to create a new syslog host. Syntax create syslog host [all|<index 1-4>] {severity [informational|warning|all]| facility[local0|local1|local2|local3| local4|local5|local6|local7]|udp_port<int>| ipaddress <ipaddr>| state[enable|disable] Description The create syslog host command is used to create a new syslog host.
  • Page 90 Restrictions Only administrator-level users can issue this command. Example Usage: To create syslog host: DGS-3212SR:4#create syslog host 1 severity all facility local0 Command: create syslog host 1 severity all facility local0 Success. DGS-3212SR:4#...
  • Page 91 DGS-3212SR Switch CLI Reference config syslog host Used to configure the syslog protocol to send system Purpose log data to a remote host. config syslog host [all|<index 1-4>] {severity Syntax [informational|warning|all]| facility[local0|local1|local2|local3| local4|local5|local6|local7]|udp_port<int>| ipaddress <ipaddr>| state[enable|disable] The config syslog host command is used to...
  • Page 92 Restrictions Only administrator-level users can issue this command. Example Usage: To create syslog host: DGS-3212SR:4#config syslog host all severity all facility local0 Command: config syslog host all severity all facility local0 Success. DGS-3212SR:4#...
  • Page 93 DGS-3212SR Switch CLI Reference delete syslog host Purpose Used to remove a syslog host, that has been previously configured, from the switch. Syntax delete syslog host [<index 1-4>|all] Description The delete syslog host command is used to remove a syslog host, that has been previously configured, from the switch.
  • Page 94 DGS-3212SR Switch CLI Reference show syslog host Purpose Used to display the syslog hosts currently configured on the switch. Syntax show syslog host {<index 1-4>} Description The show syslog host command is used to display the syslog hosts that are currently configured on the switch.
  • Page 95: Mac Notification

    DGS-3212SR Switch CLI Reference MAC N The network monitoring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config interval <int 1-214783647> mac_notification historysize <int 1-500> config <portlist> mac_notification...
  • Page 96 Only administrator-level users can issue this command. MAC Notification Example Usage: To configure a 60 second interval for MAC address notification on unit 1 ports 6-9: DGS-3212SR:4#config mac_notification ports 1:6-1:9 60 Command: config mac_notification ports 1:6-1:9 interval 60 Success. DGS-3212SR:4#...
  • Page 97 DGS-3212SR Switch CLI Reference config mac_notification ports Purpose Used to configure MAC address notification on a port basis. Syntax config mac_notification ports ports <portlist>|all enable disable Description MAC address notificiation is used to monitor MAC addresses learned and entered into the FDB.
  • Page 98 DGS-3212SR Switch CLI Reference enable mac_notification Purpose Used to globally enable MAC address notification without changing the mac_notification configuration. Syntax enable mac_notification Description Enables MAC notication on the switch. Parameters None. Restrictions Only administrator-level users can issue this command. MAC Notification...
  • Page 99 DGS-3212SR Switch CLI Reference disable mac_notification Purpose Used to disable MAC address notification globally without changing mac_notification configuration.. Syntax disable mac_notification Description Disables MAC notication on the switch. Parameters None. Restrictions Only administrator-level users can issue this command. MAC Notification...
  • Page 100 DGS-3212SR Switch CLI Reference show mac_notification Purpose Used to display MAC address notification. Syntax show mac_notification {ports} Description Displays MAC notification settings either per port or globally as desired. Parameters None – this will display global MAC notification settings currently configured including Interval, History Size and State.
  • Page 101 DGS-3212SR Switch CLI Reference show mac_notification ports Purpose Used to display MAC address notification. Syntax show mac_notification ports Description Displays MAC notification settings either per port or globally as desired. Parameters ports – this displays per ports MAC notification settings.
  • Page 102: Spanning Tree Commands

    DGS-3212SR Switch CLI Reference PANNING The switch supports 802.1d STP and 802.1w Rapid STP. The spanning tree commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config stp maxage <value 6-40>...
  • Page 103 802.1d STP select stp. Select rstp for IEEE 802.1w Rapid STP. Restrictions Only administrator-level users can issue this command. Example Usage: To configure STP with maxage 18 and hellotime 4: DGS-3212SR:4#config stp maxage 18 hellotime 4 Command: config stp maxage 18 hellotime 4 Success. DGS-3212SR:4#...
  • Page 104 DGS-3212SR Switch CLI Reference config stp ports Purpose Used to setup STP on the port level. Syntax config stp ports <portlist> {cost [auto| <value 1-200000000>]|priority <value 0-240>| migrate [yes|no]| edge [true|false]| p2p [true|false|auto]| state [enable|disable] Description This command is used to create and configure STP for a group of ports.
  • Page 105 DGS-3212SR Switch CLI Reference DGS-3212SR:4#config stp_ports 1-5 cost 19 priority 15 state enable Command: config stp_ports 1-5 cost 19 priority 15 state enable Success. DGS-3212SR:4# Spanning Tree Commands...
  • Page 106 DGS-3212SR Switch CLI Reference enable stp Purpose Used to globally enable STP on the switch. Syntax enable stp Description This command allows the Spanning Tree Protocol to be globally enabled on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 107 DGS-3212SR Switch CLI Reference disable stp Purpose Used to globally disable STP on the switch. Syntax disable stp Description This command allows the Spanning Tree Protocol to be globally disabled on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 108 DGS-3212SR Switch CLI Reference show stp Purpose Used to display the switch’s current STP configuration. Syntax show stp Description This command displays the switch’s current STP configuration. Parameters None Restrictions None. Spanning Tree Commands Example Usage: To display the status of STP on the switch:...
  • Page 109 DGS-3212SR Switch CLI Reference Hello Time Forward Delay : 15 Hold Time Status 2: STP Disabled DGS-3212SR:4#show stp Command: show stp STP Status : Disabled Max Age : 20 Hello Time Forward Delay : 15 Priority : 32768 STP Version...
  • Page 110 DGS-3212SR Switch CLI Reference show stp ports Purpose Used to display the switch’s current per-port group STP configuration. Syntax show stp ports <portlist> Description This command displays the switch’s current per- port group STP configuration. <portlist> − Specifies a range of ports to be Parameters configured.
  • Page 111: Forwarding Database Commands

    DGS-3212SR Switch CLI Reference ORWARDING ATABASE The layer 2 forwarding database commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters create fdb <vlan_name> <macaddr> port <port> create <vlan_name> multicast_fdb <macaddr>...
  • Page 112 DGS-3212SR Switch CLI Reference create fdb Purpose Used to create a static entry to the unicast MAC address forwarding table (database) Syntax create fdb <vlan_name32> <macaddr> [port <port>] Description This command will make an entry into the switch’s unicast MAC address forwarding database.
  • Page 113 DGS-3212SR Switch CLI Reference create multicast_fdb Purpose Used to create a static entry to the multicast MAC address forwarding table (database) Syntax create multicast_fdb <vlan_name 32> <macaddr> Description This command will make an entry into the switch’s multicast MAC address forwarding database.
  • Page 114 DGS-3212SR Switch CLI Reference config multicast_fdb Purpose Used to configure the switch’s multicast MAC address forwarding database. Syntax config multicast_fdb <vlan_name 32> <macaddr> [add|delete] [egress|forbidden] <portlist> Description This command configures the multicast MAC address forwarding table. <vlan_name 32> − The name of the VLAN on Parameters which the MAC address resides.
  • Page 115 DGS-3212SR Switch CLI Reference delete fdb Purpose Used to delete an entry to the switch’s forwarding database. Syntax delete fdb <vlan_name 32> <macaddr> Description This command is used to delete a previous entry to the switch’s MAC address forwarding database.
  • Page 116 DGS-3212SR Switch CLI Reference clear fdb Purpose Used to clear the switch’s forwarding database of all dynamically learned MAC addresses. Syntax clear fdb [vlan <vlan_name 32>|port <port>|all] Description This command is used to clear dynamically learned entries to the switch’s forwarding database.
  • Page 117 DGS-3212SR Switch CLI Reference show multicast_fdb Purpose Used to display the contents of the switch’s multicast forwarding database. Syntax show multicast_fdb [vlan <vlan_name 32>|mac_address <macaddr> Description This command is used to display the current contents of the switch’s multicast MAC address forwarding database.
  • Page 118 DGS-3212SR Switch CLI Reference config fdb aging_time Purpose Used to set the aging time of the forwarding database. Syntax config fdb aging_time <sec> Description The aging time affects the learning process of the switch. Dynamic forwarding table entries, which are made up of the source MAC...
  • Page 119 DGS-3212SR Switch CLI Reference config multicast port_filtering_mode Purpose Used to configure the multicast packet filtering mode for ports. Syntax config multicast port_filtering_mode [<portlist>|all] [forward_all_groups| forward_unregistered_groups| filter_unregistered_groups] Description The config multicast port_filtering_mode command configures the multicast packet filtering mode for ports.
  • Page 120 DGS-3212SR Switch CLI Reference show fdb Purpose Used to display the current unicast MAC address forwarding database. Syntax show fdb {port <port>|vlan <vlan_name 32>|mac_address <macaddr>|static|aging_time} Description This command will display the current contents of the switch’s forwarding database. <port> − The port number corresponding to the Parameters MAC destination address.
  • Page 121: Broadcast Storm Control Commands

    DGS-3212SR Switch CLI Reference ROADCAST The broadcast storm control commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config traffic control <storm_grouplist> broadcast [enable|disable] multicast [enable|disable] dlf [enable|disable] threshold <value>...
  • Page 122 Restrictions Only administrator-level users can issue this command. Broadcast Storm Control Commands Example Usage: To configure traffic control: DGS-3212SR:4#config traffic control 1-3,1-2 broadcast enable Command: config traffic control 1-1,2-2 broadcast enable Success. DGS-3212SR:4#...
  • Page 123 DGS-3212SR Switch CLI Reference show traffic control Purpose Used to display current traffic control settings. Syntax show traffic control <storm_grouplist> Description This command displays the current storm traffic control configuration on the switch. group_list <storm_grouplist> − Used to specify a...
  • Page 124: Qos Commands

    DGS-3212SR Switch CLI Reference QOS C The MAC address priority commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config bandwidth_control <portlist> rx_rate no_limit <value 1-1000> tx_rate no_limit <value 1-1000>...
  • Page 125 8 i.e. for Gigabit ports <value 8-1000 in increments of 8>. Restrictions Only administrator-level users can issue this command. Example Usage: To configure bandwitdth control: DGS-3212SR:4#config bandwidth_control 1-10 tx_rate 10 Command: config bandwidth_control 1-10 tx_rate 10 Success. DGS-3212SR:4#...
  • Page 126 DGS-3212SR Switch CLI Reference show bandwidth_control Purpose Used to display the bandwidth control configuration on the switch. Syntax show bandwidth_control {<portlist>} Description The show bandwidth_control command displays the current bandwidth control configuration on the switch, on a port-by-port basis. <portlist> − Specifies a range of ports to be Parameters configured.
  • Page 127 DGS-3212SR Switch CLI Reference config scheduling_mechanism Purpose Used to configure the traffic sheduling mechanism for each COS queue. Syntax config scheduling_mechanism [strict|round_robin] Description The switch contains 8 hardware priority queues. Incoming packets must be mapped to one of these eight queues. This command is used to specify the rotation by which these eight hardware priority queues are emptied.
  • Page 128 DGS-3212SR Switch CLI Reference show scheduling Purpose Used to display the currently configured traffic scheduling on the switch. Syntax show scheduling Description The show scheduling command displays the current configuration for the maximum number of packets (max_packets) and the maximum latency (max_latency) values assigned to the four priority queues on the switch.
  • Page 129 <class_id 0-3> − Specifies which of the switch’s hardware priority queues the 802.1p priority QOS Commands Restrictions Example Usage: To configure 802.1 user priority on the switch: DGS-3212SR:4# config 802.1p user_priority 1 3 Command: config 802.1p user_priority 1 3 Sucess. Remark DGS-3212SR:4# ----------- value (specified above) will be mapped to.
  • Page 130 DGS-3212SR Switch CLI Reference show 802.1p user_priority Purpose Used to display the current mapping between an incoming packet’s 802.1p priority value and one of the switch’s four hardware priority queues. Syntax show 802.1p user_priority Description The show 802.1p user_priority command displays the current mapping of an incoming packet’s 802.1p priority value to one of the...
  • Page 131 Restrictions Only administrator-level users can issue this command. QOS Commands Example Usage: To configure 802.1p default priority on the switch: DGS-3212SR:4#config 802.1p default_priority all 5 Command: config 802.1p default_priority all 5 Success. DGS-3212SR:4#...
  • Page 132 DGS-3212SR Switch CLI Reference show 802.1 default_priority Purpose Used to display the currently configured 802.1p priority value that will be assigned to an incoming, untagged packet before being forwarded to its destination. Syntax show 802.1p default_priority {<portlist>} Description The show 802.1p default_priority command displays the currently configured 802.1p priority...
  • Page 133: 802.1X Commands

    DGS-3212SR Switch CLI Reference 802.1X COMMANDS The DGS-3212SR implements the server-side of the IEEE 802.1x Port-based Network Access Control. This mechanism is intended to allow only authorized users, or other network devices, access to network resources by establishing criteria for each port on the switch that a user or network device must meet before allowing that port to forward or receive frames.
  • Page 134 DGS-3212SR Switch CLI Reference enable 802.1x Purpose Used to enable the 802.1x server on the switch. Syntax enable 802.1x Description The enable 802.1x command enables the 802.1x Port-based Network Access control server application on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 135 DGS-3212SR Switch CLI Reference disable 802.1x Purpose Used to disable the 802.1x server on the switch. Syntax disable 802.1x Description The disable 802.1x command is used to disable the 802.1x Port-based Network Access control server application on the switch. Parameters None.
  • Page 136 DGS-3212SR Switch CLI Reference show 802.1x Purpose Used to display the current configuration of the 802.1x server on the switch. Syntax show 802.1x {ports <portlist>} Description The show 802.1x command is used to display the current configuration of the 802.1x Port- based Network Access Control server application on the switch.
  • Page 137 DGS-3212SR Switch CLI Reference show 802.1x OpenCtlDir: Both|In − Shows whether a Parameters controlled Port that is unauthorized will exert control over communication in both recieving and transmitting directions, or just the recieving direction. Port Control: ForceAuth|ForceUnauth|Auto − Shows the adminstrative control over the port’s authorization status.
  • Page 138 Restrictions Only administrator-level users can issue this command. 802.1X COMMANDS Example Usage: To configure 802.1x capability on ports 1-10 on switch 1: DGS-3212SR:4#config 802.1x capability ports 1:1 – 1:10 authenticator Command: config 802.1x capability ports 1-10 authenticator Success. DGS-3212SR:4#...
  • Page 139 DGS-3212SR Switch CLI Reference config 802.1x auth_parameter Used to configure the 802.1x Authentication Purpose parameters on a range of ports. The default parameter will return all ports in the specified range to their default 802.1x settings. config 802.1x auth_parameter ports Syntax [<portlist>|all] [default|{direction...
  • Page 140 DGS-3212SR Switch CLI Reference Example Usage: To configure 802.1x authentication parameters for ports 1 – 20 of switch DGS-3212SR:4#config 802.1x auth_parameter ports 1:1 – 1:20 direction both Command: config 802.1x auth_parameter ports 1:1-1:20 direction both Success. DGS-3212SR:4# 802.1X COMMANDS...
  • Page 141 DGS-3212SR Switch CLI Reference config 802.1x auth_mode Purpose Used to configure 802.1x authentication mode. Syntax config 802.1x auth_mode [port_based|mac_based] Description The configu 802.1x auth_mode command configures the authentication mode. port_based − Configure the authentication as Parameters port based mode. mac_based − Configure the authentication as MAC based mode.
  • Page 142 − Specifies all of the ports on the switch. Restrictions Only administrator-level users can issue this command. 802.1X COMMANDS Example Usage: To initialize 802.1xfunctions on ports 1:1 – 1:15: DGS-3212SR:4#config 802.1x init ports 1:1-1:15 Command: config 802.1x init ports 1:1-1:15 Success. DGS-3212SR:4#...
  • Page 143 − Specifies all of the ports on the switch. Restrictions Only administrator-level users can issue this command. 802.1X COMMANDS Example Usage: To configure 802.1x reauthentication for posrts 1:1-1:15: DGS-3212SR:4#config 802.1x init ports 1:1-1:15 Command: config 802.1x init ports 1:1-1:15 Success. DGS-3212SR:4#...
  • Page 144 The default is 1813. Restrictions Only administrator-level users can issue this command. 802.1X COMMANDS Example Usage: To configure Radius server communication settings: DGS-3212SR:4#config radius add 1 10.48.74.121 key dlink default Command: config radius add 1 10.48.74.121 key dlink default Success. DGS-3212SR:4#...
  • Page 145 DGS-3212SR Switch CLI Reference config radius delete Purpose Used to delete a previously entered Radius server configuration. Syntax config radius delete <server_index 1-3> Description The config radius delete command is used to delete a previously entered Radius server configuration. <server_index 1-3> − Assins a number to the Parameters current set of Radius server settings.
  • Page 146 The default is 1813. Restrictions Only administrator-level users can issue this command. 802.1X COMMANDS Example Usage: To configure Radius settings: DGS-3212SR:4#config radius add 1 10.48.74.121 key dlink default Command: config radius add 1 10.48.74.121 key dlink default Success. DGS-3212SR:4#...
  • Page 147 DGS-3212SR Switch CLI Reference show radius Purpose Used to display the current Radius configurations on the switch. Syntax show radius Description The show radius command is used to display the current Radius configurations on the switch. Parameters None. Restrictions None.
  • Page 148: Access Control List (Acl) Commands

    DGS-3212SR Switch CLI Reference (ACL) C CCESS ONTROL The DGS-3212SR implements Access Control Lists that enable the switch to deny network access to specific devices or device groups based on IP settings or MAC address. Command Parameters create ethernet access_profile vlan source_mac <macmask>...
  • Page 149: Command Parameters

    − in this case, when a logical AND operation between an IP address specified in the next step and the ip_source_mask match. The default for an access profile on the switch is to permit traffic flow. If you want to restrict traffic, you must use the deny parameter.
  • Page 150 DGS-3212SR Switch CLI Reference create access_profile Purpose Used to create an access profile on the switch and to define which parts of each incoming frame’s header the switch will examine. Masks can be entered that will be combined with the values the switch finds in the specified frame header fields.
  • Page 151 Restrictions command. Example Usage: To create an access profile that will deny service to the subnet ranging from 10.42.73.0 to 10.42.73.255: DGS-3212SR:4# create access_profile ip source_ip_mask 255.255.255.0 profile_id 1 deny Command: create access_profile ip source_ip_mask 255.255.255.0 profile_id 1 deny Success.
  • Page 152 Restrictions Only administrator-level users can issue this command. Access Control List (ACL) Commands Example Usage: To delete the access profile with a profile ID of 1: DGS-3212SR:4# delete access_profile profile_id 1 Command: delete access_profile profile_id 1 Success. DGS-3212SR:4#...
  • Page 153 DGS-3212SR Switch CLI Reference config access_profile Purpose Used to configure an access profile on the switch and to define specific values that will be used to by the switch to determine if a given packet should be forwarded or filtered. Masks entered using the...
  • Page 154 DGS-3212SR Switch CLI Reference config access_profile ip − Specifies that the switch will look into the IP Parameters fields in each packet. vlan <vlan_name 32> − − Specifies that the access profile will apply to only to this VLAN. source_ip <ipaddr> − Specifies that the access profile will apply to only packets with this source IP address.
  • Page 155 To configure the access profile with the profile ID of 1 to filter frames that have IP addresses in the range between 10.42.73.0 to 10.42.73.255: DGS-3212SR:4# config access_profile profile_id 1 add access_id 1 ip source_ip 10.42.73.1 Command: config access_profile profile_id 1 add access_id 1 ip source_ip 10.42.73.1...
  • Page 156 Restrictions Only administrator-level users can issue this command. Access Control List (ACL) Commands Example Usage: To display all of the currently configured access profiles on the switch: DGS-3212SR:4# Access Profile Table Access Profile ID:1 ==================================================== MASK Option Source IP MASK 255.255.255.0...
  • Page 157: Traffic Segmentation

    DGS-3212SR Switch CLI Reference RAFFIC Traffic segmentation allows you to further sub-divide VLANs into smaller groups of ports that will help to reduce traffic on the VLAN. The VLAN rules take precedence, and then the traffic segmentation rules are applied.
  • Page 158 Only administrator-level users can issue this command. Traffic Segmentation Example Usage: To configure ports 1 through 10 to be able to forward frames to port 11 through 15: DGS-3212SR:4# config traffic_segmentation 1-10 forward_list 11- Command: config traffic_segmentation 1-10 forward_list 11-15 Success. DGS-3212SR:4#...
  • Page 159 DGS-3212SR Switch CLI Reference show traffic_segmentation Purpose Used to display the current traffic segmentation configuration on the switch. Syntax config traffic_segmentation <portlist> forward_list [null|<portlist>] Description The show traffic_segmentation command is used to display the current traffic segmentation configuration on the switch.
  • Page 160: Stacking

    DGS-3212SR Switch CLI Reference The stacking configuration commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config stacking enable|disable mode auto_detect|force_star|force_ring master|auto|slave portlist <portlist> show stacking mode version Each command is listed, in detail, in the following sections.
  • Page 161 The default topology is star for the DGS-3212SR. This is important if for example the preferred setup for a stacked group of DGS-3212SR switches is ring topology. Using auto_detect would not allow the ring topology to function since star topology will be indicated by the other switches.
  • Page 162 DGS-3212SR Switch CLI Reference show stacking Purpose Used to display the current stacking mode. Syntax show stacking {mode|version} Description This command will display the current stacking mode. mode − Displays the current stacking mode. Parameters version − Displays the version number of the stacking firmware.
  • Page 163: Port Mirroring Commands

    DGS-3212SR Switch CLI Reference IRRORING The port mirroring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config mirror port <port> [add|delete] source ports <portlist> [rx|tx|both] enable mirror disable mirror show mirror Each command is listed, in detail, in the following sections.
  • Page 164 Restrictions Only administrator-level users can issue this command. Example Usage: To add the mirroring ports: DGS-3212SR:4#config mirror port 1 add source ports 4 both Command: config mirror port 1 add source ports 4 both Success. DGS-3212SR:4#...
  • Page 165 Restrictions Only administrator-level users can issue this command. Port Mirroring Commands Example Usage: To delete the mirroring ports: DGS-3212SR:4#config mirror port 1 delete source ports 4 both Command: config mirror port 1 delete source ports 4 both Success. DGS-3212SR:4#...
  • Page 166 DGS-3212SR Switch CLI Reference enable mirror Purpose Used to enable a previously entered port mirroring configuration. Syntax enable mirror Description This command, combined with the disable mirror command below, allows you to enter a port mirroring configuration into the switch, and then turn the port mirroring on and off without having to modify the port mirroring configuration.
  • Page 167 DGS-3212SR Switch CLI Reference disable mirror Purpose Used to disable a previously entered port mirroring configuration. Syntax disable mirror Description This command, combined with the enable mirror command above, allows you to enter a port mirroring configuration into the switch, and then turn the port mirroring on and off without having to modify the port mirroring configuration.
  • Page 168 DGS-3212SR Switch CLI Reference show mirror Purpose Used to show the current port mirroring configuration on the switch. Syntax show mirror Description This command displays the current port mirroring configuration on the switch. Parameters None Restrictions None. Port Mirroring Commands...
  • Page 169: Vlan Commands

    DGS-3212SR Switch CLI Reference VLAN C The VLAN commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters create vlan <vlan_name> tag <vlanid> advertisement delete vlan <vlan_name> config vlan <vlan_name>...
  • Page 170 If the VLAN is not given a tag, it will be a port- based VLAN. Only administrator-level users can issue this command. VLAN Commands Example Usage: To create a VLAN v1, tag 2: DGS-3212SR:4#create vlan v1 tag 2 Command: create vlan v1 tag 2 Success. DGS-3212SR:4#...
  • Page 171 DGS-3212SR Switch CLI Reference delete vlan Purpose Used to delete a previously configured VLAN on the switch. Syntax delete vlan <vlan_name> Description This command will delete a previously configured VLAN on the switch. <vlan_name> − The VLAN name of the VLAN Parameters you want to delete.
  • Page 172 Restrictions Only administrator-level users can issue this command. Example Usage: To add 4 through 8 of module 2 as tagged ports to the VLAN v1: DGS-3212SR:4#config vlan v1 add tagged 2:4-2:8 Command: config vlan v1 add tagged 2:4-2:8 Success. DGS-3212SR:4#...
  • Page 173 Only administrator-level users can issue this command. Example Usage: To set the ingress checking status, the sending and receiving GVRP information and Port VLAN ID(PVID): DGS-3212SR:4#config gvrp 1:1-1:5 state enable ingress_checking enable pvid 21 Command: config gvrp 1:1-1:5 state enable ingress_checking enable pvid 21 Success.
  • Page 174 DGS-3212SR Switch CLI Reference enable gvrp Purpose Used to enable GVRP on the switch. Syntax enable gvrp Description This command is used to enable GVRP on the switch − without changing the GVRP configuration on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 175 DGS-3212SR Switch CLI Reference disable gvrp Purpose Used to disable GVRP on the switch. Syntax disable gvrp Description This command used to disable GVRP on the switch − without changing the GVRP configuration on the switch. Parameters None. Restrictions Only administrator-level users can issue this command.
  • Page 176 DGS-3212SR Switch CLI Reference show vlan Purpose Used to display the current VLAN configuration on the switch Syntax show vlan {<vlan_name>} Description This command displays summary information about each VLAN including the VLAN ID, VLAN name, the Tagging|Untagging status, and the Member|Non-member|Forbidden status of each port that is a member of the VLAN.
  • Page 177 DGS-3212SR Switch CLI Reference show gvrp Purpose Used to display the GVRP status for a port list on the switch. Syntax show gvrp {<portlist>} Description This command displays the GVRP status for a port list on the switch <portlist> − Specifies a range of ports for which Parameters the GVRP status is to be displayed.
  • Page 178 DGS-3212SR Switch CLI Reference 1:16 Disabled Disabled 1:17 Disabled Disabled 1:18 Disabled Disabled 1:19 Disabled Disabled 1:20 Disabled Disabled 1:21 Disabled Disabled 1:22 Disabled Disabled 1:23 Disabled Disabled 1:24 Disabled Disabled 1:25 Disabled Disabled 1:26 Enabled Disabled Disabled Disabled Disabled...
  • Page 179: Link Aggregation Commands

    DGS-3212SR Switch CLI Reference GGREGATION The link aggregation commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters create group_id <value> link_aggregation type [lacp|static] delete group_id <value> link_aggregation config group_id <value>...
  • Page 180 DGS-3212SR Switch CLI Reference create link_aggregation group_id Purpose Used to create a link aggregation group on the switch. Syntax create link_aggregation group_id <value> Description This command will create a link aggregation group. <value> − Specifies the group id. The switch...
  • Page 181 DGS-3212SR Switch CLI Reference delete link_aggregation group_id Purpose Used to delete a previously configured link aggregation group. Syntax delete link_aggregation group_id <value> Description This command is used to delete a previously configured link aggregation group. <value> − Specifies the group id. The switch...
  • Page 182 DGS-3212SR Switch CLI Reference config link_aggregation Used to configure a previously created link Purpose aggregation group. config link_aggregation group_id <value> Syntax {master_port <port>|ports <portlist>| {state [enable|disable]} This command allows you to configure a link Description aggregation group that was created with the create link_aggregation command above.
  • Page 183 DGS-3212SR Switch CLI Reference Example Usage: To define a load-sharing group of ports, group-id 1, master port 17 of module 2: DGS-3212SR:4#config link_aggregation group_id 1 master_port 17 ports 5-10 Command: config link_aggregation group_id 1 master_port 17 ports 5-10 Success. DGS-3212SR:4#...
  • Page 184 DGS-3212SR Switch CLI Reference config link_aggregation algorithm Purpose Used to configure the link aggregation algorithm. Syntax config link_aggregation algorithm [mac_source|mac_destination|mac_source_dest| ip_source|ip_destination|ip_source_dest] Description This command configures to part of the packet examined by the switch when selecting the egress port for transmitting load-sharing data. This feature is only available using the address-based load-sharing algorithm.
  • Page 185 DGS-3212SR Switch CLI Reference show link_aggregation Purpose Used to display the current link aggregation configuration on the switch. Syntax show link_aggregation {group_id <value>|algorithm} Description This command will display the current link aggregation configuration of the switch. <value> − Specifies the group id. The switch...
  • Page 186: Ip Interface Commands

    DGS-3212SR Switch CLI Reference IP I NTERFACE The IP interface commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config ipif System ipaddress <network_address> show ipif Each command is listed, in detail, in the following sections.
  • Page 187 IP address to the switch’s System IP interface. Restrictions Only administrator-level users can issue this command. IP Interface Commands Example Usage: To configure the IP interface System: DGS-3212SR:4#config ipif System ipaddress 10.48.74.122|8 Command: config ipif System ipaddress 10.48.74.122|8 Success. DGS-3212SR:4#...
  • Page 188 DGS-3212SR Switch CLI Reference show ipif Purpose Used to display the configuration of an IP interface on the switch. Syntax show ipif Description This command will display the configuration of an IP interface on the switch. Parameters None. Restrictions None.
  • Page 189: Routing Table Commands

    DGS-3212SR Switch CLI Reference OUTING ABLE The routing table commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters create iproute default <ipaddr> <metric> delete iproute default show iproute Each command is listed, in detail, in the following sections.
  • Page 190 DGS-3212SR Switch CLI Reference create iproute Purpose Used to create an IP route entry to the switch’s IP routing table. Syntax create iproute [default] <ipaddr> Description This command is used to create an IP route entry to the switch’s IP routing table.
  • Page 191 DGS-3212SR Switch CLI Reference delete iproute Purpose Used to delete an IP route entry from the switch’s IP routing table. Syntax delete iproute [default] Description This command will delete an existing entry from the switch’s IP routing table. default − deletes a default IP route entry.
  • Page 192 DGS-3212SR Switch CLI Reference show iproute Purpose Used to display the switch’s current IP routing table. Syntax show iproute Description This command will display the switch’s current IP routing table. Parameters None. Restrictions None. Routing Table Commands Example Usage: To display the contents of the IP routing table:...
  • Page 193: Igmp Snooping Commands

    DGS-3212SR Switch CLI Reference IGMP S NOOPING The switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters config igmp_snooping <vlan_name 32> host_timeout <sec 1-16711450> router_timeout < sec 1-16711450>...
  • Page 194 IGMP snooping for the specified VLAN. Restrictions Only administrator-level users can issue this command. IGMP Snooping Commands Example Usage: To configure the igmp snooping: DGS-3212SR:4#config igmp_snooping default host_timeout 250 state enable Command: config igmp_snooping default host_timeout 250 state enable Success. DGS-3212SR:4#...
  • Page 195 DGS-3212SR Switch CLI Reference config igmp_snooping querier Purpose Used to configure the time in seconds between general query transmissions, the maximum time in seconds to wait for reports from members, the permitted packet loss that guarantees IGMP snooping. Syntax config igmp_snooping querier [<vlan_name 32>|all] {query_interval <sec 1-...
  • Page 196 DGS-3212SR Switch CLI Reference Example Usage: To configure the igmp snooping: DGS-3212SR:4#config igmp_snooping querier default query_interval 125 state enable Command: config igmp_snooping querier default query_interval 125 state enable Success. DGS-3212SR:4# IGMP Snooping Commands...
  • Page 197 Restrictions Only administrator-level users can issue this command. IGMP Snooping Commands Example Usage: To set up static router ports: DGS-3212SR:4#config router_ports default add 2:1-2:10 Command: config router_ports default add 2:1-2:10 Success. DGS-3212SR:4#...
  • Page 198 DGS-3212SR Switch CLI Reference enable igmp_snooping Purpose Used to enable IGMP snooping on the switch. Syntax enable igmp_snooping {forward_mcrouter_only} Description This command allows you to enable IGMP snooping on the switch. If forward_mcrouter_only is specified, the switch will forward all multicast traffic to the multicast router, only.
  • Page 199 DGS-3212SR Switch CLI Reference disable igmp_snooping Purpose Used to enable IGMP snooping on the switch. Syntax disable igmp_snooping Description This command disables IGMP snooping on the switch. IGMP snooping can be disabled only if IP multicast routing is not being used. Disabling IGMP snooping allows all IGMP and IP multicast traffic to flood within a given IP interface.
  • Page 200 DGS-3212SR Switch CLI Reference show igmp_snooping Purpose Used to show the current status of IGMP snooping on the switch. Syntax show igmp_snooping {vlan <vlan_name>} Description This command will display the current IGMP snooping configuration on the switch. <vlan_name> − The name of the VLAN for which...
  • Page 201 DGS-3212SR Switch CLI Reference show igmp_snooping group Purpose Used to display the current IGMP snooping group configuration on the switch. Syntax show igmp_snooping group {vlan <vlan_name 32>} Description This command will display the current IGMP snooping group configuration on the switch.
  • Page 202 DGS-3212SR Switch CLI Reference show router_ports Purpose Used to display the currently configured router ports on the switch. Syntax show router_ports {vlan <vlan_name 32>} {static|dynamic} Description This command will display the router ports currently configured on the switch. <vlan_name 32> − The name of the VLAN on Parameters which the router port resides.
  • Page 203: Command History List

    DGS-3212SR Switch CLI Reference OMMAND The switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table. Command Parameters {command} show command_history config <value> command_history Each command is listed, in detail, in the following sections.
  • Page 204 DGS-3212SR Switch CLI Reference Purpose Used to display all commands in the Command Line Interface (CLI). Syntax ? {command} Description This command will display all of the commands available through the Command Line Interface (CLI). Parameters <command> - a specific command or command group about which you are inquiring.
  • Page 205 DGS-3212SR Switch CLI Reference show command_history Purpose Used to display the command history. Syntax show command_history Description This command will display the command history. Parameters None. Restrictions None. Command History List Usage Example: To display the command history: DGS-3212SR:4#show command_history...
  • Page 206 DGS-3212SR Switch CLI Reference Purpose Used to display all commands. Syntax Description This command will display all commands. Parameters None. Restrictions None. Command History List Usage Example: To display all of the commands: DGS-3212SR:4#dir Command: dir clear clear arptable clear counters...
  • Page 207 DGS-3212SR Switch CLI Reference config command_history Purpose Used to configure the command history. Syntax config command_history <value 1-40> Description This command is used to configure the command history. <value 1-40> − the number of commands to Parameters display from the switch’s command history.
  • Page 208: Technical Specifications

    DGS-3212SR Switch CLI Reference ECHNICAL General IEEE 802.3 10BASE-T Ethernet IEEE 802.3u 100BASE-TX Fast Ethernet IEEE 802.3z 1000BASE-SX Gigabit Ethernet Standards: IEEE 802.3ab 1000BASE-T Gigabit Ethernet IEEE 802.1 P|Q VLAN IEEE 802.3x Full-duplex Flow Control ANSI|IEEE 802.3 Nway auto-negotiation Protocols:...
  • Page 209 DGS-3212SR Switch CLI Reference Performance Transmission Method Store-and-forward RAM Buffer 8 MB per device Filtering Address Table: 8K MAC address per device Full-wire speed for all connections. 148,800 pps per port (for 100Mbps) Packet Filtering| Forwarding Rate: 1,488,000 pps per port (for...

Table of Contents