︿
Top

前言

想要在 D-Link DES 3528 Switch 當中,針對連接其上主機的 MAC Address 進行「流量限制」的動作。

實作環境

  • DES-3528
  • Firmware Version : 2.60.017
  • Hardware Version : A3



安裝及設定

下列指令為 Client 端的 MAC Address 為 00:50:56:9B:00:1C ,希望達成限制其上傳流量 (upload) 為 1 Mbps,而下載流量 (download) 則為 2 Mbps,該 Client 端是從交換器的 Port 1 ~ 2 上來之後從 Port 24 出去 (如果要多 Port 且不連續的話,中間只要加上逗號即可例如 1-3,9-11),後續若殺掉 access_profile 規則時,便會自動刪除 flow_meter 的對應規則,但建立時則不會跟著自動建立,是必須要注意的地方。

Server 上傳 / Client 下載 (2 Mbps)

鍵入如下指令設定下載流量為 2 Mbps (2048),其中 128 rate_exceed 的設定可能要測試看看,此數值關系到下載時的流量順暢度。
create access_profile profile_id 1 profile_name weithenn.org ethernet source_mac 00-50-56-9B-00-1C
config access_profile profile_id 1 add access_id 1 ethernet source_mac 00-50-56-9B-00-1C port 1-2 permit
config flow_meter profile_id 1 access_id 1 rate 2048 burst_size 128 rate_exceed drop_packet




Server 下載 / Client 上傳 (1 Mbps)

鍵入如下指令設定上傳流量為 1 Mbps (1024),其中 128 rate_exceed 的設定可能要測試看看,此數值關系到下載時的流量順暢度。
create access_profile profile_id 2 profile_name weithenn.org ethernet destination_mac 00-50-56-9B-00-1C
config access_profile profile_id 2 add access_id 2 ethernet destination_mac 00-50-56-9B-00-1C port 24 permit
config flow_meter profile_id 2 access_id 2 rate 1024 burst_size 128 rate_exceed drop_packet
文章標籤: