D-Link DGS-1250 Series Reference Manual

D-Link DGS-1250 Series Reference Manual

Cli gigabit ethernet smart managed switch
Hide thumbs Also See for DGS-1250 Series:

Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for D-Link DGS-1250 Series

  • Page 2: Table Of Contents

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Table of Contents Introduction ................................1 Audience ..................................1 Other Documentation ..............................1 Conventions .................................. 1 Notes, Notices, and Cautions ............................1 Command Descriptions ..............................2 Command Modes ................................2 Creating a User Account ...............................
  • Page 3 DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide 2-24 show boot ............................... 24 2-25 show ip interface ............................. 25 2-26 show ip route ..............................26 2-27 show ipv6 dhcp ............................... 27 2-28 show ipv6 interface ............................28 2-29 show ipv6 route ..............................
  • Page 4: Introduction

    Command Line Interface (CLI). The CLI is one of the management interfaces to the DGS-1250 Series switch, which will be generally be referred to simply as the “Switch” within this manual. This manual is written in a way that assumes that you already have experience with and knowledge of Ethernet and modern networking principles for Local Area Networks.
  • Page 5: Command Descriptions

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide NOTICE: A notice indicates either potential damage to hardware or loss of data and tells you how to avoid the problem. CAUTION: A caution indicates a potential for property damage, personal injury, or death.
  • Page 6: Creating A User Account

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Switch#configure terminal Switch(config)# The exit command is used to exit the global configuration mode and return to the EXEC mode. Switch(config)#exit Switch# The procedures to enter the different sub-configuration modes can be found in the related chapters in this Configuration Guide.
  • Page 7: Error Messages

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide DGS-1250-28XMP Gigabit Ethernet Smart Managed Switch Command Line Interface Firmware: Build 1.00.038 Copyright(C) 2019 D-Link Corporation. All rights reserved. User Access Verification Username:admin Password:***** Error Messages When users issue a command that the Switch does not recognize, error messages will be generated to assist users with basic information about the mistake that was made.
  • Page 8: Display Result Output Modifiers

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Left Arrow Moves the cursor to the left. Right Arrow Moves the cursor to the right. CTRL+R Toggles the insert text function on and off. When on, text can be inserted in the line and the remainder of the text will be shifted to the right.
  • Page 9: Cli Commands

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide CLI Commands copy This command is used to copy a file to another file. copy SOURCE-URL DESTINATION-URL copy SOURCE-URL tftp: [//LOCATION/DESTINATION-URL] copy tftp: [//LOCATION/SOURCE-URL] DESTINATION-URL Parameters SOURCE-URL Specifies the source URL for the source file to be copied. One special form of the URL is represented by the following keywords.
  • Page 10 DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide As the specified source is the system log and the specified destination is a URL, the current system log will be copied to the specified URL. To represent a file in the remote TFTP server, the URL must be prefixed with “tftp: //”.
  • Page 11: Boot Config

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide This example shows how to execute the “Config2” file in the NVRAM immediately by using the increment method. Switch#copy flash: Config2 running-config Source filename [Config2]? Destination filename running-config? [y/n]: Executing script file Config2 ..
  • Page 12: Boot Image

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to configure the file “Config2” as the startup configuration file. Switch#configure terminal Switch(config)#boot config Config2 Switch(config)# boot image This command is used to specify the file that will be used as the image file for the next boot.
  • Page 13: Configure Terminal

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide This example shows how to check Image1. The checksum of the image file has been verified is okay and the information of the image file is displayed. Switch#configure terminal Switch(config)#boot image check Image1...
  • Page 14: Logout

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Command Mode EXEC Mode. Usage Guideline Use this command to change the login account. Three attempts are allowed to log into the Switch’s interface. When using Telnet, if all attempts fail, access will return to the command prompt. If no information is entered within 60 seconds, the session will return to the state when logged out.
  • Page 15: Exit

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Parameters None. Default None. Command Mode EXEC Mode. Any Configuration Mode. Usage Guideline Executing this command will return access to the highest mode in the CLI hierarchy. Example This example shows how to end the Interface Configuration Mode and go back to the EXEC Mode.
  • Page 16: Delete

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to exit from the Interface Configuration Mode and return to the Global Configuration Mode. Switch#configure terminal Switch(config)#interface vlan1 Switch(config-if)#exit Switch(config)# delete This command is used to delete a file.
  • Page 17: Ip Address

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Command Mode EXEC Mode. Usage Guideline If URL is not specified, the current directory is used. By default, the current directory is located at the root of the file system located at local flash. The storage media is mounted in the file system and appears to the user as a sub- directory under the root directory.
  • Page 18: Ping

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to configure 10.108.1.27 as the IP address for VLAN 1. Switch#configure terminal Switch(config)#interface vlan1 Switch(config-if)#ip address 10.108.1.27 255.0.0.0 Switch(config-if)# 2-12 ping This command is used to diagnose basic network connectivity.
  • Page 19: Reboot

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to ping the host with IP address 172.50.71.123. Switch#ping 172.50.71.123 count 5 Reply from 172.50.71.123, time<10ms Reply from 172.50.71.123, time<10ms Reply from 172.50.71.123, time<10ms Reply from 172.50.71.123, time<10ms Reply from 172.50.71.123, time<10ms...
  • Page 20: Reset System

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to reboot the Switch. Switch#reboot force_agree Please wait, the switch is rebooting... 2-14 reset system This command is used to reset the system, clear the system’s configuration, and then save and reboot the Switch.
  • Page 21: Interface

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Parameters NETWORK-PREFIX Specifies the network address. NETWORK-MASK Specifies the network mask. IP-ADDRESS Specifies the IP address of the next hop that can be used to reach destination network. primary (Optional) Specifies the route as the primary route to the destination.
  • Page 22: Ipv6 Address

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Usage Guideline This command is used to enter the interface configuration mode for a specific interface. Example This example shows how to enter the interface configuration mode on VLAN 1.
  • Page 23: Ipv6 Address Dhcp

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide This example shows how to remove an IPv6 address. Switch#configure terminal Switch(config)#interface vlan1 Switch(config-if)#no ipv6 address 3ffe:22:3:44::55/64 2-18 ipv6 address dhcp This command is used to configure an interface using DHCPv6 to get an IPv6 address. Use the no form of this command to disable the using of DHCPv6 to get an IPv6 address.
  • Page 24: Ipv6 Enable

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide ipv6 address autoconfig [default] no ipv6 address autoconfig Parameters default (Optional) Specifies that if the default router is selected on this interface, the default keyword causes a default route to be installed using that default router. The default keyword can be specified only on one interface.
  • Page 25: Username

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Command Mode Interface Configuration Mode. Usage Guideline When the IPv6 address is explicitly configured on the interface, the IPv6 link-local address is automatically generated and the IPv6 processing is started. When the interface has no IPv6 address explicitly configured, the IPv6 link-local address is not generated and the IPv6 processing is not started.
  • Page 26: Show Unit

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide This example shows how to remove the user account with the username admin. Switch#configure terminal Switch(config)#no username admin Switch(config)# 2-22 show unit This command is used to display information about system units.
  • Page 27: Show Boot

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide show version Parameters None. Default None. Command Mode EXEC Mode. Any Configuration Mode. Usage Guideline Use this command to display the version information of the Switch. Example This example shows how to display the version information of the Switch.
  • Page 28: Show Ip Interface

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to display system boot information. Switch#show boot Unit 1 Boot image: /c:/Image1 Boot config: /c:/Config1 Switch# 2-25 show ip interface This command is used to display the IP interface information.
  • Page 29: Show Ip Route

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide This example shows how to display the IP interface information for VLAN 1. Switch#show ip interface vlan 1 Interface vlan1 is enabled, Link status is up IP address is 10.90.90.90/8 (Manual) ARP timeout is 240 minutes.
  • Page 30: Show Ipv6 Dhcp

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to display the routing table. Switch#show ip route Code: C - connected, S - static * - candidate default Gateway of last resort is not set 10.0.0.0/8 is directly connected, vlan1...
  • Page 31: Show Ipv6 Interface

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide This example shows how to display the DHCPv6 setting for interface VLAN 1, when VLAN 1 is DHCPv6 disabled. Switch#show ipv6 dhcp interface vlan1 vlan1 is not in DHCPv6 mode.
  • Page 32: Show Ipv6 Route

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Example This example shows how to display IPv6 interface information. Switch#show ipv6 interface vlan 1 vlan1 is up, Link status is up IPv6 is enabled, link-local address: FE80::F27D:68FF:FE12:5001 Global unicast address:...
  • Page 33: Debug Show Tech-Support

    DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Command Mode EXEC Mode. Any Configuration Mode. Usage Guideline Use this command to display the best routes that are currently at work. Example This example shows how to display the IPv6 routing table.
  • Page 34 DGS-1250 Series Gigabit Ethernet Smart Managed Switch CLI Reference Guide Usage Guideline Use this command to display technical support information. The technical support information is used to collect the Switch’s information needed by the engineers to troubleshoot or analyze a problem.

Table of Contents