EdgeSwitch16 是否支持DHCP MAC绑定

网页上没有看到有绑定mac的选项

下图是命令行的

:sweat_smile:

service dhcp
ip dhcp excluded-address 192.168.2.1 192.168.2.10
ip dhcp excluded-address 192.168.2.11 192.168.2.15
ip dhcp pool "Home1"
dns-server 208.67.222.222 208.67.220.220
default-router 192.168.2.1
network 192.168.2.0 255.255.255.0
exit


ip dhcp pool "AP-Upstairs"
dns-server 208.67.222.222 208.67.220.220
default-router 192.168.2.1
client-name "AP-Upstairs"
client-identifier 01:bc:ae:c5:25:5f:80
hardware-address bc:ae:c5:25:5f:80
host 192.168.2.241 255.255.255.0
exit           

检验:

UBNT EdgeSwitch) #show ip dhcp binding 

IP address         Hardware Address     Lease Expiration     Type
---------------    -----------------    -----------------    ---------
192.168.2.241      bc:ae:c5:25:5f:80    00:23:55             Manual

是的,和思科命令基差不多
很久没有搞网络了,都忘记了。
还是DHCP服务器方便 ,省一个服务器钱,贼特么不方便。

可以了,重点在于 client-identifier 01:b0:60:88:a1:42:e9 要加01

手册和界面里的帮助都有提示了的: :sweat_smile:

Client ID
(Manual pools only) The value some DHCP clients send in the Client Identifier field of DHCP messages. This value is typically identical to the Hardware Address value. In some systems, such as Microsoft DHCP clients, the client identifier is required instead of the hardware address. If the client’s DHCP request includes the client identifier, the Client ID field on the DHCP server must contain the same value, and the Hardware Address Type field must be set to the appropriate value. Otherwise, the DHCP server will not respond to the client’s request.

这个是有IEEE标准的,Windows体系才是01,macOS你试试看? :stuck_out_tongue:

另:实际UI界面里也可以直接添加的: :point_down: