Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8664 closed defect (worksforme)

Only last dhcp_option is passed to dnsmasq

Reported by: michiel Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze 8.09
Keywords: Cc:

Description

Only the last option supplied in /etc/config/dhcp is passed to dnsmasq

e.g.

        option 'dhcp_option' '6,192.168.0.1,192.168.0.2'
        option 'dhcp_option' '3,192.168.0.1'   

gives me the correct gateway but not the nameservers (option 6)

        option 'dhcp_option' '3,192.168.0.1'   
        option 'dhcp_option' '6,192.168.0.1,192.168.0.2'
}}]

gives me the correct nameservers, but not the right gateway.

Giving multiple options in 1 comma separated string does nothing at all.

Multiple dhcp_option fields should be possible. I apologize if i missed any documentation on how to do this properly, if I'm just at fault. 

Cheers,

Michiel

Attachments (0)

Change History (4)

comment:2 Changed 7 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

Correct syntax would be:

list 'dhcp_option' '6,192.168.0.1,192.168.0.2'
list 'dhcp_option' '3,192.168.0.1'   

comment:3 Changed 7 years ago by Michiel

Ah, thanks and apologies.

Maybe log a warning if a option has been defined twice might be a nice feature request to stop n00bs like me? ;)

(Re: the wiki-syntax, it was a typo but I couldn't edit the report after submission. Sorry about that too :) )

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.