dd-wrt mac to Hostnames

DD-WRT Match MAC Addresses and then display custom Hostnames

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
rickzabel
今日安裝
0
安裝總數
16
評價
0 0 0
版本
0.1
建立日期
2022-05-01
更新日期
2022-05-01
尺寸
4.8 KB
授權條款
GNU GPLv3
腳本執行於

This is meant to work with the DD-WRT router firmware’s setup pages to match MAC Addresses and then show custom Hostnames.

I wrote this script since I could not figure out how to get DD-WRT to show hostnames for connected devices when DHCP is disabled.

If your router is not at 192.168.1.1 or 10.0.0.1 you will need to edit both the namespace and match variables to match your router address.
Afterwards replace the sample MAC address and Hostnames with your own.

Then set the following two variables how you would like

AddToMACAddressOrReplaceRadioname = 1; //If AddToMACAddressOrReplaceRadioname is set to 0 the specified Hostname will be added to the mac field. If it is set to 1 the RadioName will be filled in with the specified Hostname.

ReplacePartialMACAddress = 1; //Both the top level and the /Info.htm pages mask part of the MAC address if this is set to 1, we will search for partial matches and replace the mac or radio name according to the setting ReplaceMACAddressOrRadioname.