Команды D-Link Шпаргалка
- Информация о свиче - show switch
- Установка часового пояса - config time_zone
- Установка времени - config time
- Показать время - show time
- Показать состояние портов - show ports
- Показать логи свича - show log
- Включение/Отключение порта - config ports state
- Показать кэш ARP - show arpentry
- Показать информацию из ARP-таблицы по IP-адресу - show arpentry ipaddress
- Показать мак-адреса на портах - show fdb
- Показать загрузку портов - show utilization ports
- Показать информацию по интерфейсам свича - show ipif
- Задаем IP адрес/шлюз и VLAN коммутатору
- Показать таблиуц маршрутизации - show iproute
- Показать загрузку ЦПУ - show utilization cpu
- Отображение настроек протокола STP - show stp
- Диагностика кабеля - cable_diag ports
- Создать/Удалить VLAN - create vlan
- Добавить/удалить порты в VLAN - config vlan tag add
- Показать настройки VLAN - show vlan
- Сохранить настройки в ПЗУ - save
DES-3200-26:5#show switch
Command: show switch
Device Type : DES-3200-26 Fast Ethernet Switch
MAC Address : 34-08-04-41-C0-00
IP Address : 10.90.90.90 (Manual)
VLAN Name : default
Subnet Mask : 255.0.0.0
Default Gateway : 0.0.0.0
Boot PROM Version : Build 1.00.B004
Firmware Version : Build 1.88.B001
Hardware Version : A1
Serial Number : PVHQ1B20000000
System Name :
System Location :
System Uptime : 0 days, 0 hours, 25 minutes, 25 seconds
System Contact :
Spanning Tree : Disabled
GVRP : Disabled
IGMP Snooping : Disabled
VLAN Trunk : Disabled
802.1X : Disabled
Telnet : Enabled (TCP 23)
Web : Enabled (TCP 80)
RMON : Disabled
SSH : Disabled
SSL : Disabled
CLI Paging : Enabled
Syslog Global State: Disabled
Dual Image : Supported
Password Encryption Status : Disabled
Установка времени и часового пояса (!!!):
Установка часового пояса (например GMT+3):
DES-3200-26:5#config time_zone operator + hour 3 min 0
Command: config time_zone operator + hour 3 min 0
Success.
Установка времени. Формат: ddmmYYYY hh:mm:ss
DES-3200-26:5#config time 29012017 12:29:00
Command: config time 29012017 12:29:0
Success.
DES-3200-26:5#show time
Command: show time
Current Time Source : System Clock
Current Time : 29 Jan 2017 12:37:55
Time Zone : GMT +03:00
Daylight Saving Time : Disabled
Offset in minutes : 60
Repeating From : Apr 1st Sun 00:00
To : Oct last Sun 00:00
Annual From : 29 Apr 00:00
To : 12 Oct 00:00
DES-3200-26:5#show ports
Command: show ports
Port State/ Settings Connection Address
MDI Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
----- -------- --------------------- --------------------- --------
1 Enabled Auto/Disabled 100M/Full/None Enabled
Auto
2 Enabled Auto/Disabled LinkDown Enabled
Auto
3 Enabled Auto/Disabled 100M/Full/None Enabled
Auto
4 Enabled Auto/Disabled LinkDown Enabled
Auto
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3200-26:5#show log
Command: show log
Index Date Time Log Text
----- ---------- -------- ------------------------------------------------------
12 2017-01-29 12:57:41 Port 1 link up, 100Mbps FULL duplex
11 2017-01-29 12:57:36 Port 1 link down
10 0000-00-00 00:09:55 Successful login through Telnet (Username: admin, IP: 10.90.90.2)
9 0000-00-00 00:04:21 Port 3 link up, 100Mbps FULL duplex
8 0000-00-00 00:04:19 Port 2 link down
7 0000-00-00 00:04:16 Port 2 link up, 100Mbps FULL duplex
6 0000-00-00 00:04:10 Port 3 link down
5 0000-00-00 00:04:00 Port 1 link up, 100Mbps FULL duplex
4 0000-00-00 00:03:57 Port 1 link down
3 0000-00-00 00:03:55 Port 1 link up, 100Mbps FULL duplex
2 0000-00-00 00:03:44 Port 3 link up, 100Mbps FULL duplex
1 0000-00-00 00:00:48 System cold start
DES-3200-26:5#config ports 2 state disable
Command: config ports 2 state disable
Success.
Показать кэш ARP:
DES-3200-26:5#show arpentry
Command: show arpentry
ARP Aging Time : 20
Interface IP Address MAC Address Type
------------- --------------- ----------------- ---------------
System 10.0.0.0 FF-FF-FF-FF-FF-FF Local/Broadcast
System 10.90.90.2 50-E5-49-5B-F0-00 Dynamic
System 10.90.90.90 34-08-04-41-C0-00 Local
System 10.255.255.255 FF-FF-FF-FF-FF-FF Local/Broadcast
Total Entries : 4
Показать информацию из ARP-таблицы по IP-адресу:
DES-3200-26:5#show arpentry ipaddress 10.90.90.2
Command: show arpentry ipaddress 10.90.90.2
ARP Aging Time : 20
Interface IP Address MAC Address Type
------------- --------------- ----------------- ---------------
System 10.90.90.2 50-E5-49-5B-F0-00 Dynamic
Total Entries : 1
Показать мак-адреса на портах:
DES-3200-26:5#show fdb
Показать MAC-адреса на конкретном порту:
DES-3200-26:5#show fdb port 1
Показать иформацию по конкретному MAC'у:
DES-3200-26:5#show fdb mac_address 34-08-04-41-C0-00
Command: show fdb
Unicast MAC Address Aging Time = 300
VID VLAN Name MAC Address Port Type
---- -------------------------------- ----------------- ---- ---------------
1 default 00-1A-79-2C-76-00 1 Dynamic
1 default 04-8D-38-B8-BA-00 3 Dynamic
1 default 06-7D-3F-4B-F6-00 3 Dynamic
1 default 30-10-B3-B3-11-00 3 Dynamic
1 default 34-08-04-41-C0-00 CPU Self
1 default 3A-00-D4-1A-97-00 3 Dynamic
1 default 50-E5-49-5B-F1-00 3 Dynamic
1 default 64-CC-2E-D1-5A-00 3 Dynamic
1 default 6A-30-76-7A-43-00 3 Dynamic
1 default B0-E2-35-99-56-00 3 Dynamic
1 default BE-1B-92-8A-B8-00 3 Dynamic
1 default E6-96-F1-1B-61-00 3 Dynamic
Total Entries : 12
Показать загрузку портов(пакетов в секунду):
DES-3200-26:5#show utilization ports
Command: show utilization ports
Port TX/sec RX/sec Util Port TX/sec RX/sec Util
---- ---------- ---------- ---- ---- ---------- ---------- ----
1 210 0 3 22 0 0 0
2 0 0 0 23 0 0 0
3 180 40 2 24 0 0 0
4 0 0 0 25 0 0 0
5 0 0 0 26 0 0 0
6 0 0 0
7 0 0 0
8 0 0 0
9 0 0 0
10 0 0 0
11 0 0 0
12 0 0 0
13 0 0 0
14 0 0 0
15 0 0 0
16 0 0 0
17 0 0 0
18 0 0 0
19 0 0 0
20 0 0 0
21 0 0 0
Показать информацию по интерфейсам свича:
DES-3200-26:5#show ipif
Задаем IP адрес/шлюз и VLAN коммутатору:
DES-3200-26:5# config ipif System vlan vlan136-manage ipaddress 10.90.90.90/24 state enable
Задаём шлюз(default gateway):
create iproute default 10.90.90.1
Показать таблиуц маршрутизации:
DES-3200-26:5#show iproute
Command: show iproute
Routing Table
IP Address/Netmask Gateway Interface Hops Protocol
------------------ --------------- ----------- ------- --------
10.0.0.0/8 0.0.0.0 System 1 Local
Total Entries : 1
DES-3200-26:5#show utilization cpu
Command: show utilization cpu
CPU Utilization :
-------------------------------------------------------------------------------
Five Seconds - 2 % One Minute - 5 % Five Minutes - 4 %
Отображение настроек протокола STP:
DES-3200-26:5#show stp
Command: show stp
STP Bridge Global Settings
---------------------------
STP Status : Disabled
STP Version : RSTP
Max Age : 20
Hello Time : 2
Forward Delay : 15
Max Hops : 20
TX Hold Count : 6
Forwarding BPDU : Enabled
NNI BPDU Address : dot1d
DES-3200-26:5#cable_diag ports 1-10
Command: cable_diag ports 1-10
Perform Cable Diagnostics ...
Port Type Link Status Test Result Cable Length (M)
---- ------- -------------- ------------------------- -----------------
1 FE Link Up OK 16
2 FE Link Down No Cable -
3 FE Link Up OK 11
4 FE Link Down No Cable -
5 FE Link Down No Cable -
6 FE Link Down No Cable -
7 FE Link Down No Cable -
8 FE Link Down No Cable -
9 FE Link Down No Cable -
10 FE Link Down No Cable -
Работа с VLAN
DES-3200-26:5#create vlan test-vlan tag 100
DES-3200-26:5#delete vlan test-vlan
Command: create vlan test-vlan tag 100
Success.
Добавить/удалить порты в VLAN:
DES-3200-26:5#config vlan test-vlan add tagged 10-15
DES-3200-26:5#config vlan test-vlan delete 10-15
Command: config vlan test-vlan add tagged 10-15
Success.
DES-3200-26:5#show vlan
Command: show vlan
VLAN Trunk State : Disabled
VLAN Trunk Member Ports :
VID : 1 VLAN Name : default
VLAN Type : Static Advertisement : Enabled
Member Ports : 1-26
Static Ports : 1-26
Current Tagged Ports :
Current Untagged Ports : 1-26
Static Tagged Ports :
Static Untagged Ports : 1-26
Forbidden Ports :
VID : 100 VLAN Name : test-vlan
VLAN Type : Static Advertisement : Disabled
Member Ports : 10-15
Static Ports : 10-15
Current Tagged Ports :
Current Untagged Ports : 10-15
Static Tagged Ports :
Static Untagged Ports : 10-15
Forbidden Ports :
VID : 101 VLAN Name : new-vlan
VLAN Type : Static Advertisement : Disabled
Member Ports : 10-15
Static Ports : 10-15
Current Tagged Ports :
Current Untagged Ports : 10-15
Static Tagged Ports :
Static Untagged Ports : 10-15
Forbidden Ports :
Total Entries : 3
Включить шифрование и добавить пользователя:
DES-3200-26:5# enable password encryption
DES-3200-26:5# create account admin admin
Изменить пароль пользователя:
DES-3200-26:5# config account admin
DES-3200-26:5#save
Command: save
Saving all configurations to NV-RAM...... Done.
Success.
Комментарии (0)