Neutron dhcp-agent 之 dnsmasq

来源:互联网 发布:打击网络谣言法律依据 编辑:程序博客网 时间:2024/05/22 03:33

Copyright (2013) 郭龙仓. All Rights Reserved.


dnsmasq --no-hosts --no-resolv --strict-order--bind-interfaces --interface=tap746570b9-2b --except-interface=lo--pid-file=/var/lib/quantum/dhcp/3e16cd2f-c693-49b4-91a7-2a65912ec152/pid--dhcp-hostsfile=/var/lib/quantum/dhcp/3e16cd2f-c693-49b4-91a7-2a65912ec152/host--dhcp-optsfile=/var/lib/quantum/dhcp/3e16cd2f-c693-49b4-91a7-2a65912ec152/opts--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update --leasefile-ro--dhcp-range=set:tag0,12.0.0.192,static,120s--conf-file= --domain=openstacklocal

重要参数作用简介:


--bind-interfaces --interface=tap746570b9-2b --except-interface=lo
作用:使多个dnsmasq实例可以同时运行在同一台主机上并监听不同的interface

--dhcp-hostsfile=/var/lib/quantum/dhcp/3e16cd2f-c693-49b4-91a7-2a65912ec152/host
作用:读取IP与虚拟机的静态映射关系,该文件改变后dnsmasq会自动重新加载,不需要重启

--dhcp-optsfile=/var/lib/quantum/dhcp/3e16cd2f-c693-49b4-91a7-2a65912ec152/opts
作用:指定DNS服务器地址等选项

--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update --leasefile-ro作用:lease信息更新与通知--dhcp-range=set:tag0,12.0.0.192,static,120s作用:重点在于static参数,该参数限制dnsmasq只能为dhcp-hostsfile包含的主机提供DHCP服务

相关链接:

dnsmasq manpagednsmasq FAQ

0 0
原创粉丝点击