首页 > 其他分享 >openwrt,给不同的设备使用不同的网关

openwrt,给不同的设备使用不同的网关

时间:2023-03-04 15:24:03浏览次数:37  
标签:网关 altdnsgw option 不同 192.168 2.9 dhcp openwrt

编辑配置文件:/etc/dnsmasq.conf

添加以下内容

dhcp-host=F0:57:A6:53:1E:66,set:altdnsgw,192.168.2.20,jack-rog,12h
dhcp-option=tag:altdnsgw,option:dns-server,192.168.2.9
dhcp-option=tag:altdnsgw,option:router,192.168.2.9

 

第一行,根据mac地址,设置使用规则 altdnsgw 设置ip地址,计算机名,dhcp时间

第二行,规则altdnsgw,使用dns地址:192.168.2.9

第三行,规则altdnsgw,使用网关:192.168.2.9

标签:网关,altdnsgw,option,不同,192.168,2.9,dhcp,openwrt
From: https://www.cnblogs.com/jackadam/p/17178349.html

相关文章