DHCP client get a correct router address from dnsmasq.
Issue
- A DHCP client can't get a correct router address from dnsmasq.
- Here is dnsmasq.conf.
log-dhcp
dhcp-range=192.168.201.50,192.168.201.100,12h
dhcp-option=tag:eth0,option:router,192.168.201.254
- Here is an excerpt from /var/log/messages when client's NIC is started.
Nov 30 12:32:00 rhel-server dnsmasq-dhcp[1957]: 3713354755 sent size: 4 option: 3:router 192.168.201.101
- "192.168.201.101" which is provided as router address is not a correct router address, but dnsmasq server address. "192.168.201.254" should be provided to the client as router address.
Environment
- Red Hat Enterprise Linux 6.2
- dnsmasq-2.48-5.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.