openwrt DHCP 指定不同的网关

参考 dnsmasq 配置文件 文件的格式。

以下是给指定 mac 的设备分配 192.168.1.2 作为网关。

# config mac 'opn'
#        option mac  '00:FF:*:*:*:*'
#        option tag  'need_outernet'

config host
        option ip       '192.168.1.3'
        option mac      '11:22:33:44:55:66 aa:bb:cc:dd:ee:ff'
        option tag      'need_outernet'

config tag 'need_outernet'
        list dhcp_option '3, 192.168.1.2'
        option force '1'

转载于:https://my.oschina.net/kblack/blog/3019722

你可能感兴趣的:(openwrt DHCP 指定不同的网关)