dd-wrt mac to Hostnames

DD-WRT Match MAC Addresses and then display custom Hostnames

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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.