Opened 9 years ago

Last modified 8 years ago

#516 investigate enhancement

Allow enabling DHCP server in bridge mode

Reported by: Barbon Owned by: john.crispin@…
Priority: normal Milestone: Firmware 2.3
Component: fon-network Version: N/A
Severity: normal
Cc: Hardware: 2.0n (FON2300)


Hi, i really like the bridge mode, but i have noticed that when you enable it fonera lose the posibility to assign ip based on mac andress... i really like this feature and i wanna ask if is possible to keep it on (with option to disable) when you use bridge mode (this feature can be usefull who have a sucking router like mine that have less options)

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by matthijs

  • Milestone Requests deleted

Milestone Requests deleted

comment:2 Changed 9 years ago by matthijs

  • Hardware set to 2.0n (FON2300)
  • Priority changed from low to normal
  • Severity set to normal
  • Status changed from new to investigate
  • Summary changed from Request feature: DHCP assignement + bridge to Allow enabling DHCP server in bridge mode
  • Type changed from request to enhancement
  • Version set to N/A

It seems the RestartDnsmasq script takes care of starting dnsmasq and disables the DHCP server for the lan. This is done in the "dhcp_add" function. The option "ignore" under "lan" (or "wan"?) in "/etc/config/dhcp" is should trigger the disabling of the dhcp server for a network (though it is not always set to 1 when in bridge mode, it seems. /lib/fon/ should set the ignore value on boot).

Just enabling the DHCP server is not enough, care must be taken to make the DHCP server offer the right gateway (e.g., the upstream gateway of the Fonera, not the Fonera itself).

Initial experimentation showed that above changes made things work, but static mac assignments might need some extra work.

comment:3 Changed 8 years ago by matthijs

  • Milestone set to Firmware 2.3

We can probably add this after

Add Comment

Modify Ticket

as investigate The owner will remain john.crispin@….

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

Note: See TracTickets for help on using tickets.