|
最近主路由从OPENWRT换成PADAVAN,原来OPENWRT实现方式为:
主路由:192.168.100.1(开启DHCP) 旁路由:192.168.100.254(关闭DHCP)
修改vim /etc/dnsmasq.conf文件,添加以下代码:(tag:gf,3为新增分组GF 3为网关地址)(tag:gf,6为新增分组GF 6为DNS地址)
dhcp-option=tag:GF,3,192.168.100.254
dhcp-option=tag:GF,6,192.168.100.1
dhcp-host=fc:d9:08:89:f3:09,set:GF
dhcp-host=68:14:01:A3:0F:B1,set:GF
dhcp-host=b0:6e:bf:2c:ee:78,set:GF
dhcp-host=F4:B3:01:5F:40:47,set:GF
mac地址匹配则分配GF分组的网关和DNS
请问大佬们,PADAVAN的DHCP是否是DNSMASQ管理?怎么编写
下面为PADAVAN的DNSMASQ文件
user=nobody
resolv-file=/etc/resolv.conf
no-poll
bogus-priv
no-negcache
clear-on-reload
bind-dynamic
interface=br0
listen-address=192.168.100.1
min-port=4096
cache-size=1536
dns-forward-max=512
addn-hosts=/etc/storage/dnsmasq/hosts
servers-file=/tmp/dnsmasq.servers
dhcp-hostsfile=/etc/storage/dnsmasq/dhcp.conf
domain=lan
expand-hosts
dhcp-range=set:lan,192.168.100.2,192.168.100.244,255.255.255.0,86400
dhcp-option=tag:lan,3,192.168.100.1
dhcp-option=tag:lan,6,192.168.100.1
dhcp-option=tag:lan,15,lan
quiet-dhcp
enable-ra
quiet-ra
ra-param=br0,30,1800
dhcp-range=set:lan,::,constructor:br0,ra-stateless,ra-names,64,600
dhcp-option=tag:lan,option6:23,[::]
dhcp-option=tag:lan,option6:24,lan
dhcp-option=tag:lan,option6:32,600
quiet-dhcp6
dhcp-hostsfile=/etc/dnsmasq/dhcp
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-authoritative
conf-file=/etc/storage/dnsmasq/dnsmasq.conf
请问标红dhcp-option=tag:lan,15,lan 中的15是什么意思
按MAC在地址分配怎样编写
|
|