D-Link Dsh8 Manual
Have a look at the manual D-Link Dsh8 Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 48 D-Link manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.
GE-DSH-73/DSH-82 and DSH-82-PoE User Manual 137 Chapter 6 Command Sets System Commands Set Commands Level Description Example show config E Show switch configuration switch>show config show terminal P Show console information switch#show terminal write memory P Save user configuration into permanent memory (flash rom) switch#write memory system name [System Name] G Configure system name switch(config)#system name xxx system location [System Location] G Set switch system location string switch(config)#system location xxx system description [System Description] G Set switch system description string switch(config)#system description xxx system contact [System Contact] G Set switch system contact window string switch(config)#system contact xxx show system-info E Show system information switch>show system-info ip address [Ip-address] [Subnet-mask] [Gateway] G Configure the IP address of switch switch(config)#ip address 192.168.1.1 255.255.255.0 192.168.1.254 ip dhcp G Enable DHCP client function of switch switch(config)#ip dhcp show ip P Show IP information of switch switch#show ip no ip dhcp G Disable DHCP client function of switch switch(config)#no ip dhcp
Chapter 6: Command Sets 138 GE-DSH-73/DSH-82 and DSH-82-PoE User Manual Commands Level Description Example reload G Halt and perform a cold restart switch(config)#reload default G Restore to default switch(config)#default admin username [Username] G Changes a login username. (maximum 10 words) switch(config)#admin username xxxxxx admin password [Password] G Specifies a password (maximum 10 words) switch(config)#admin password xxxxxx show admin P Show administrator information switch#show admin dhcpserver enable G Enable DHCP Server switch(config)#dhcpserver enable Dhcpserver disable G Disable DHCP Server switch(config)#no dhcpserver dhcpserver lowip [Low IP] G Configure low IP address for IP pool switch(config)#dhcpserver lowip 192.168.1.100 dhcpserver highip [High IP] G Configure high IP address for IP pool switch(config)#dhcpserver highip 192.168.1.200 dhcpserver subnetmask [Subnet mask] G Configure subnet mask for DHCP clients switch(config)#dhcpserver subnetmask 255.255.255.0 dhcpserver gateway [Gateway] G Configure gateway for DHCP clients switch(config)#dhcpserver gateway 192.168.1.254 dhcpserver dnsip [DNS IP] G Configure DNS IP for DHCP clients switch(config)#dhcpserver dnsip 192.168.1.1 dhcpserver leasetime [Hours] G Configure lease time (in hour) switch(config)#dhcpserver leasetime 1 dhcpserver ipbinding [IP address] I Set static IP for DHCP clients by port switch(config)#interface fastEthernet 2 switch(config)#dhcpserver ipbinding 192.168.1.1 show dhcpserver configuration P Show configuration of DHCP server switch#show dhcpserver configuration show dhcpserver clients P Show client entries of DHCP server switch#show dhcpserver clients show dhcpserver ip- binding P Show IP-Binding information of DHCP server switch#show dhcpserver ip-binding no dhcpserver G Disable DHCP server function switch(config)#no dhcpserver security enable G Enable IP security function switch(config)#security enable security http G Enable IP security of HTTP server switch(config)#security http security telnet G Enable IP security of telnet switch(config)#security telnet
Chapter 6: Command Sets GE-DSH-73/DSH-82 and DSH-82-PoE User Manual 139 Commands Level Description Example server security ip [Index(1..10)] [IP Address] G Set the IP security list switch(config)#security ip 1 192.168.1.55 show security P Show the information of IP security switch#show security no security G Disable IP security function switch(config)#no security no security http G Disable IP security of HTTP server switch(config)#no security http no security telnet G Disable IP security of telnet server switch(config)#no security telnet
Chapter 6: Command Sets 140 GE-DSH-73/DSH-82 and DSH-82-PoE User Manual Port Commands Set Commands Level Description Example interface fastEthernet [Portid] G Choose the port for modification. switch(config)#interface fastEthernet 2 duplex [full | half] I Use the duplex configuration command to specify the duplex mode of operation for Fast Ethernet. switch(config)#interface fastEthernet 2 switch(config-if)#duplex full speed [10|100|1000|auto] I Use the speed configuration command to specify the speed mode of operation for Fast Ethernet., the speed can’t be set to 1000 if the port isn’t a giga port.. switch(config)#interface fastEthernet 2 switch(config-if)#speed 100 no flowcontrol I Disable flow control of interface switch(config-if)#no flowcontrol security enable I Enable security of interface switch(config)#interface fastEthernet 2 switch(config-if)#security enable no security I Disable security of interface switch(config)#interface fastEthernet 2 switch(config-if)#no security bandwidth type all I Set interface ingress limit frame type to “accept all frame” switch(config)#interface fastEthernet 2 switch(config-if)#bandwidth type all bandwidth type broadcast-multicast- flooded-unicast I Set interface ingress limit frame type to “accept broadcast, multicast, and flooded unicast frame” switch(config)#interface fastEthernet 2 switch(config-if)#bandwidth type broadcast-multicast-flooded-unicast bandwidth type broadcast-multicast I Set interface ingress limit frame type to “accept broadcast and multicast frame” switch(config)#interface fastEthernet 2 switch(config-if)#bandwidth type broadcast-multicast bandwidth type broadcast-only I Set interface ingress limit frame type to “only accept broadcast frame” switch(config)#interface fastEthernet 2 switch(config-if)#bandwidth type broadcast-only bandwidth in [Value] I Set interface input bandwidth. Rate Range is from 100 kbps to 102400 kbps or to 256000 kbps for switch(config)#interface fastEthernet 2 switch(config-if)#bandwidth in 100
Chapter 6: Command Sets GE-DSH-73/DSH-82 and DSH-82-PoE User Manual 141 Commands Level Description Example giga ports, and zero means no limit. bandwidth out [Value] Set interface output bandwidth. Rate Range is from 100 kbps to 102400 kbps or to 256000 kbps for giga ports, and zero means no limit. switch(config)#interface fastEthernet 2 switch(config-if)#bandwidth out 100 Show bandwidth I Show interfaces bandwidth control switch(config)#interface fastEthernet 2 switch(config-if)#show bandwidth State [Enable | Disable] I Use the state interface configuration command to specify the state mode of operation for Ethernet ports. Use the disable form of this command to disable the port. switch(config)#interface fastEthernet 2 switch(config-if)#state Disable show interface configuration I show interface configuration status switch(config)#interface fastEthernet 2 switch(config-if)# show interface configuration show interface status I show interface actual status switch(config)#interface fastEthernet 2 switch(config-if)#show interface status show interface accounting I show interface statistic counter switch(config)#interface fastEthernet 2 switch(config-if)# show interface accounting no accounting I Clear interface accounting information switch(config)#interface fastEthernet 2 switch(config-if)#no accounting
Chapter 6: Command Sets 142 GE-DSH-73/DSH-82 and DSH-82-PoE User Manual Trunk Commands Set Commands Level Description Example aggregator priority [1~65535] G Set port group system priority switch(config)#aggregator priority 22 aggregator activityport [Group ID] [Port Numbers] G Set activity port switch(config)#aggregator activityport 2 aggregator group [GroupID] [Port-list] lacp workp [Workport] G Assign a trunk group with LACP active. [GroupID] :1~3 [Port-list]:Member port list, This parameter could be a port range(ex.1-4) or a port list separate by a comma(ex.2, 3, 6) [Workport]: The amount of work ports, this value could not be less than zero or be large than the amount of member ports. switch(config)#aggregator group 1 1-4 lacp workp 2 or switch(config)#aggregator group 2 1,4,3 lacp workp 3 aggregator group [GroupID] [Port-list] nolacp G Assign a static trunk group. [GroupID] :1~3 [Port-list]:Member port list, This parameter could be a port range(ex.1-4) or a port list separate by a comma(ex.2, 3, 6) switch(config)#aggregator group 1 2-4 nolacp or switch(config)#aggregator group 1 3,1,2 nolacp show aggregator P Show the information of trunk group switch#show aggregator 1 or switch#show aggregator 2 or switch#show aggregator 3 no aggregator lacp [GroupID] G Disable the LACP function of trunk group switch(config)#no aggreator lacp 1 no aggregator group [GroupID] G Remove a trunk group switch(config)#no aggreator group 2
Chapter 6: Command Sets GE-DSH-73/DSH-82 and DSH-82-PoE User Manual 143 VLAN Commands Set Commands Level Description Example vlan database P Enter VLAN configure mode switch#vlan database Vlanmode [portbase| 802.1q | gvrp] V To set switch VLAN mode. switch(vlan)#vlanmode portbase or switch(vlan)#vlanmode 802.1q or switch(vlan)#vlanmode gvrp no vlan V No VLAN Switch(vlan)#no vlan Ported based VLAN configuration vlan port-based grpname [Group Name] grpid [GroupID] port [PortNumbers] V Add new port based VALN switch(vlan)#vlan port-based grpname test grpid 2 port 2-4 or switch(vlan)#vlan port-based grpname test grpid 2 port 2,3,4 show vlan [GroupID] or show vlan V Show VLAN information switch(vlan)#show vlan 23 no vlan group [GroupID] V Delete port base group ID switch(vlan)#no vlan group 2 IEEE 802.1Q VLAN vlan 8021q name [GroupName] vid [VID] V Change the name of VLAN group, if the group didn’t exist, this command can’t be applied. switch(vlan)#vlan 8021q name test vid 22 vlan 8021q port [PortNumber] access-link untag [UntaggedVID] V Assign a access link for VLAN by port, if the port belong to a trunk group, this command can’t be applied. switch(vlan)#vlan 8021q port 3 access-link untag 33
Chapter 6: Command Sets 144 GE-DSH-73/DSH-82 and DSH-82-PoE User Manual Commands Level Description Example vlan 8021q port [PortNumber] trunk-link tag [TaggedVID List] V Assign a trunk link for VLAN by port, if the port belong to a trunk group, this command can’t be applied. switch(vlan)#vlan 8021q port 3 trunk-link tag 2,3,6,99 or switch(vlan)#vlan 8021q port 3 trunk-link tag 3-20 vlan 8021q port [PortNumber] hybrid-link untag [UntaggedVID] tag [TaggedVID List] V Assign a hybrid link for VLAN by port, if the port belong to a trunk group, this command can’t be applied. switch(vlan)#vlan 8021q port 3 hybrid-link untag 4 tag 3,6,8 or switch(vlan)#vlan 8021q port 3 hybrid-link untag 5 tag 6-8 vlan 8021q trunk [PortNumber] access-link untag [UntaggedVID] V Assign a access link for VLAN by trunk group switch(vlan)#vlan 8021q trunk 3 access-link untag 33 vlan 8021q trunk [PortNumber] trunk-link tag [TaggedVID List] V Assign a trunk link for VLAN by trunk group switch(vlan)#vlan 8021q trunk 3 trunk-link tag 2,3,6,99 or switch(vlan)#vlan 8021q trunk 3 trunk-link tag 3-20 vlan 8021q trunk [PortNumber] hybrid-link untag [UntaggedVID] tag [TaggedVID List] V Assign a hybrid link for VLAN by trunk group switch(vlan)#vlan 8021q trunk 3 hybrid-link untag 4 tag 3,6,8 or switch(vlan)#vlan 8021q trunk 3 hybrid-link untag 5 tag 6-8 show vlan [GroupID] or show vlan V Show VLAN information switch(vlan)#show vlan 23 no vlan group [GroupID] V Delete port base group ID switch(vlan)#no vlan group 2
Chapter 6: Command Sets GE-DSH-73/DSH-82 and DSH-82-PoE User Manual 145 Spanning Tree Commands Set Commands Level Description Example spanning-tree enable G Enable spanning tree switch(config)#spanning-tree enable spanning-tree priority [0~61440] G Configure spanning tree priority parameter switch(config)#spanning-tree priority 32768 spanning-tree max-age [seconds] G Use the spanning-tree max- age global configuration command to change the interval between messages the spanning tree receives from the root switch. If a switch does not receive a bridge protocol data unit (BPDU) message from the root switch within this interval, it recomputed the Spanning Tree Protocol (STP) topology. switch(config)#spanning-tree max- age 15 spanning-tree hello- time [seconds] G Use the spanning-tree hello- time global configuration command to specify the interval between hello bridge protocol data units (BPDUs). switch(config)#spanning-tree hello- time 3 spanning-tree forward- time [seconds] G Use the spanning-tree forward-time global configuration command to set the forwarding-time for the specified spanning-tree instances. The forwarding time determines how long each of the listening and learning states last before the port begins forwarding. switch(config)#spanning-tree forward-time 20
Chapter 6: Command Sets 146 GE-DSH-73/DSH-82 and DSH-82-PoE User Manual Commands Level Description Example stp-path-cost [1~200000000] I Use the spanning-tree cost interface configuration command to set the path cost for Spanning Tree Protocol (STP) calculations. In the event of a loop, spanning tree considers the path cost when selecting an interface to place into the forwarding state. switch(config)#interface fastEthernet 2 switch(config-if)#stp-path-cost 20 stp-path-priority [Port Priority] I Use the spanning-tree port- priority interface configuration command to configure a port priority that is used when two switches tie for position as the root switch. switch(config)#interface fastEthernet 2 switch(config-if)#stp-path-priority 128 stp-admin-p2p [Auto|True|False] I Admin P2P of STP priority on this interface. switch(config)#interface fastEthernet 2 switch(config-if)#stp-admin-p2p Auto stp-admin-edge [True|False] I Admin Edge of STP priority on this interface. switch(config)#interface fastEthernet 2 switch(config-if)#stp-admin-edge True stp-admin-non-stp [True|False] I Admin NonSTP of STP priority on this interface. switch(config)#interface fastEthernet 2 switch(config-if)#stp-admin-non-stp False show spanning-tree E Displays a summary of the spanning-tree states. switch>show spanning-tree no spanning-tree G Disable spanning-tree. switch(config)#no spanning-tree