Consider the basic commands for working with D-Link switches, commands for configuring vlan, user accounts, viewing configurations, interfaces and ports.
View the main characteristics of D-Link switches
show switch
This command allows you to view the model name, mac-address, vlan management, ip-address, subnet mask, default gateway, firmware version, hardware version, serial number, system name, system location, system uptime and etc.
View CPU Usage (CPU).
show utilization cpu
Work with the configuration on the switches D-Link
View current configuration
show config current_config
View configuration in nvram.
show config config_in_nvram
Saving the current configuration.
save
Reset to factory settings
reset system
Configure ip, mask and gateway on D-Link switches
Setting the IP address and network mask.
config ipif [name_interface] ipaddress [ip-address/mask]
Example:
config ipif SYS ipaddress 192.168.5.10/24
Viewing Management Interfaces.
show ipif
Setting the default gateway.
create iproute default [ip-adress_gateway]
Example:
create iproute default 192.168.5.1
View route by default.
show iproute
Delete the default route.
delete iproute default
VLAN configuration on dlink switches
View all created vlan.
show vlan
Create vlan.
create vlan [name_vlan] tag [number_vlan]
Example:
create vlan USER tag 813
Adding vlan to ports.
config vlan [name_vlan] add [untagged | untagged| forbidden] [ports]
Example:
config vlan USERTAG add untagged 1-3,5 config vlan USERUNTAG add tagged 8,10 config vlan USER add forbidden 9
In the first case, untagged (untagged) vlan is added to ports 1,2,3,5.
In the second case, tagged vlan is added to ports 8.10.
Configure switch management vlan.
config ipif [name_interface] vlan [name_vlan] ipaddress [ip-address/mask] state enable
Example:
config ipif SYS vlan management ipaddress 192.168.2.40/24 state enable
Remove default vlan from all ports.
config vlan default delete 1-26
Configure Users on dlink Switches
Setting username and password.
create account [access_level] [username]
Example:
create account admin admin Enter a case-sensitive new password:******** Enter the new password again for confirmation:********
View user account.
show account
Change password to existing user.
config account [username]
Example:
config account admin Enter a old password:******** Enter a case-sensitive new password:******** Enter the new password again for confirmation:********
View mac and arp tables on dlink switches
View the table of mac-addresses.
show fdb
View the mac-address table for a specific port.
show fdb port [numper_port]
Example:
show fdb port 5
View arp table.
show arpentry
View dlink switch port information
View port modes (Speed, Duplex, FlowCtrl).
show ports
View errors on the port.
show error ports [number_port]
Example:
show error ports 3
View statistics for all ports.
show utilization ports
Setting a comment on the switch port
config ports [number_port] description [comment]
Example:
config ports 10 description my-server
comment size can be up to 32 characters and should not contain spaces..
Switch reboot.
reboot
It's all. Comment, subscribe. Bye everyone.

Comments powered by CComment