Graham,
DHCPRANGE in /mnt/kd/rc.conf.d/user.conf only effects auto-generated DHCP
entries.
Any values in /mnt/kd/dnsmasq.static and manual entries (essentially appended
to the auto-generated DHCP (dnsmasq) config file).
There is no variable to change the DHCP lease lifetime, that feature could be
added in the future if there is a compelling reason.
While it is also possible to manually configure ALL dnsmasq settings by
defining a /mnt/kd/dnsmasq.conf file, this practice is highly discouraged and
difficult to perform without experience creating a dnsmasq.conf. Also, if the
/mnt/kd/dnsmasq.conf file is defined, any DHCP reference in the web interface
will be ignored, creating confusion.
Lonnie
On Nov 9, 2010, at 4:13 PM, Graham S. Jarvis wrote:
> Hello Lonnie,
>
> I'm sorry this is getting more detailed/confused.
> Let me explain.
>
> I have two LANS on a Net4801 and I want to control the dhcp server for each
> interface independently so that I can set things like the range of IP's; the
> router to use; the DNS server to use; etc.
>
> Why?
> I want to control how clients (mainly WiFi) using dhcp are managed.
> One network (eth1) is mainly VoIP and uses the Net4801 as the gateway.
> The other (eth2) has PC's connected and they should _not_ use this gateway but
> rather use another router/gateway and at the same time this network's DNS is
> managed by a server on that network.
>
> I also have to explain that I have made the move from Astlinux 0.4.4 to 0.7.3
> without any intermediary. So, I'm still trying to get my mind around the
> relationship between :
> /mnt/kd/rc.conf (which doesn't seem to be used any more on my system)
> /mnt/kd/rc.conf.d/user.conf (which overrides variables - but I don't know
> where
> these variables are stored)
> and "AstLinux GUI" variables in
> /mnt/kd/rc.conf.d/gui.firewall.conf
> /mnt/kd/rc.conf.d/gui.network.conf
> and what should be done by hand and what via the GUI.
>
> When I get this sorted I'll write it up for doc.astlinux.org so that others
> can
> set up a 0.7.3 machine more easily.
>
> So, (PS the range 125:130 is just for testing at the moment)
> It looks like I need to change things in several places:
> DHCPRANGE in /mnt/kd/rc.conf.d/user.conf
> and the various dchp-options in the dnsmasq.static include file
> Because if I use a dchp-range in the dnsmasq.static include file then I get
> this
> range in addition to the one set by DHCPRANGE.
> On the other hand I didn't yet try setting DHCPRANGE="" and a dhcp-range with
> a
> reload time to see if only the one from dnsmasq.static is used.
> I would like to have control over the dhcp retry period as well.
>
>
> Again sorry that this is getting so detailed.
>
> -Graham-
>
>
> Lonnie Abelbeck wrote on 08/11/2010 22:58:
>> Graham,
>>
>> I'm not sure what your question is... do you want the auto-generated DHCP
>> dynamic pool range to be changed? if so...
>>
>> In the { Edit User variables } of the Network tab you can add:
>>
>> DHCPRANGE="125:130"
>>
>> if you want the same range (too small a range IMHO), Restart DNS & DHCP.
>>
>> Lonnie
>>
>>
>> On Nov 8, 2010, at 2:22 PM, Graham S. Jarvis wrote:
>>
>>> Hello Darrick
>>> Hello Lonnie,
>>>
>>>
>>> My main aim is to define the IP range; the router and the dns server for
>>> DHCP on each network separately.
>>>
>>> My problem to some extent is getting my head around what can be done in the
>>> GUI and what has to be done by hand.
>>> And then making sure I know where everything is because when I get it
>>> working I want to transfer all the config files to another AstLinux machine.
>>> i.e. new install - standard config, overwritten with these config files,
>>> re-boot hope the two machines are exactly the same.
>>>
>>> Here's what I've found:
>>>
>>> Firstly re "On 10/22/2010 06:06 PM, Lonnie Abelbeck wrote:" (see below).
>>>
>>> I have the following interfaces:
>>>
>>> Internal Interfaces:
>>> 1st LAN Interface: – – IP: NetMask:
>>> 2nd LAN Interface: – – IP: NetMask:
>>> 3rd LAN Interface: – – IP: NetMask:
>>> If I edit the "/mnt/kd/dnsmasq.static" file using the GUI and insert the
>>> dhcp-options that Lonnie includes in her mail.
>>> Then when I do a Restart DNS & DHCP
>>> I get "Action Failed."
>>>
>>> If I comment out Lonnies dhcp-options again and Restart DNS & DHCP then it
>>> restarts.
>>>
>>> Now,
>>> If I have DNS & DHCP running on eth2 i.e. I change the settings on the
>>> Network screen, save the changes and Restart DNS & DHCP and _then_ make the
>>> changes that Lonnie suggested the DHCP restarts OK.
>>> HOWEVER - I now have two dhcp ranges.
>>> i.e. from the syslog on the status screen:
>>>
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: started, version 2.55
>>> cachesize 2048
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: compile time options: IPv6
>>> GNU-getopt no-DBus no-I18N DHCP TFTP
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq-dhcp[26240]: DHCP, IP range
>>> 192.168.207.125 -- 192.168.207.130, lease time 1h
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq-dhcp[26240]: DHCP, IP range
>>> 192.168.207.100 -- 192.168.207.252, lease time 1d
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq-tftp[26240]: TFTP root is /tftpboot
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: using local addresses only
>>> for domain infoservers.net
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: reading
>>> /etc/resolv-extern.conf
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: using nameserver
>>> 192.168.1.1#53
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: using local addresses only
>>> for domain infoservers.net
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq[26240]: read /etc/hosts - 3
>>> addresses
>>> Nov 8 21:13:59 iPBX daemon.info dnsmasq-dhcp[26240]: read /etc/ethers - 0
>>> addresses
>>>
>>> (I set the lease time to '1h' and the range to 125-130 - not like in
>>> Lonnie's example)
>>>
>>> This is not what I want.
>>>
>>> The question is how to I get it working?
>>>
>>> All the Best,
>>>
>>> -Graham-
>>>
>>>
>>>
>>>
>>>
>>> Darrick Hartman wrote on 24/10/2010 08:08:
>>>> Graham,
>>>>
>>>> Each network interface does have separate options. You can currently
>>>> enable dhcp or disable dhcp on a specific network interface (from the
>>>> web interface) and only offer dns on that network. You're then able to
>>>> enable dhcp on whatever device you want on that network.
>>>>
>>>> You can over-ride non-standard settings by creating a
>>>> /mnt/kd/dnsmasq.conf file. I don't see extensive ability to add every
>>>> option under the sun to the web interface as the current feature set
>>>> meets the needs for a vast majority of users.
>>>>
>>>> I guess I'm a little confused about what does not work with the current
>>>> options. Perhaps you could explain it a bit more so we understand
>>>> exactly what you need.
>>>>
>>>> Darrick
>>>>
>>>> On 10/23/2010 04:08 PM, Graham S. Jarvis wrote:
>>>>
>>>>> Thank you Lonnie, Darrick,
>>>>>
>>>>> After burning a bit of midnight oil I went back to running the dhcp
>>>>> server on
>>>>> the other router. This is what the router was doing before I put the
>>>>> 4801 in to
>>>>> bridge the networks. Manually modifying config files makes me unsure if
>>>>> the
>>>>> changes will be backed-up and I didn't want to spend more time trying to
>>>>> restore
>>>>> a backup onto another 4801 to see if they were.
>>>>>
>>>>> Perhaps this would be a useful enhancement in a future Astlinux release -
>>>>> separate dhcp servers on each network interface and a better GUI for
>>>>> selecting
>>>>> the various dhcp-options for each interface.
>>>>>
>>>>> However, many thanks for your help!
>>>>>
>>>>> -Graham-
>>>>>
>>>>>
>>>>>
>>>>> Darrick Hartman wrote on 23/10/2010 01:19:
>>>>>
>>>>>> Graham,
>>>>>>
>>>>>> If you have another router on a network that's providing dhcp, just
>>>>>> disable dhcp on the specific ethernet adapter in AstLinux and allow the
>>>>>> other device to handle dhcp. Nothing else should be required.
>>>>>>
>>>>>> I do this all the time with installations that have Windows Small
>>>>>> Business server. The SBS must be dhcp for the subnet that it's on.
>>>>>>
>>>>>> Darrick
>>>>>>
>>>>>> On 10/22/2010 06:06 PM, Lonnie Abelbeck wrote:
>>>>>>
>>>>>>> Graham,
>>>>>>>
>>>>>>> It is possible, but not easy. My instinct is to disable DHCP on eth2
>>>>>>> and use the DHCP server on the gateway, but I'm sure you already
>>>>>>> thought of that.
>>>>>>>
>>>>>>> 1) Using the web interface, Network tab, disable DHCP on the Internal
>>>>>>> Interface using eth2 in question.
>>>>>>>
>>>>>>> 2) Again in the Network tab, (at the very bottom) click { Edit DNSMasq
>>>>>>> Static }, then add the following lines:
>>>>>>>
>>>>>>> dhcp-range=lan2,192.168.222.100,192.168.222.252,24h
>>>>>>> dhcp-option=lan2,option:router,192.168.222.1
>>>>>>> dhcp-option=lan2,option:dns-server,192.168.222.1
>>>>>>> dhcp-option=lan2,option:tftp-server,"192.168.222.1"
>>>>>>> dhcp-option=lan2,150,192.168.222.1
>>>>>>> dhcp-option=lan2,option:ntp-server,192.168.222.1
>>>>>>>
>>>>>>> replacing 192.168.222.1 with your gateway and use the proper dhcp-range.
>>>>>>>
>>>>>>> 3) Again in the Network tab, (top of page) select [ Restart DNS& DHCP
>>>>>>> ] _x_ Confirm and click { Reboot/Restart }
>>>>>>>
>>>>>>> You should be in business, but remember that if you every change the
>>>>>>> eth2 Interface settings in the Network tab you must also change the
>>>>>>> manual DHCP settings.
>>>>>>>
>>>>>>> Lonnie
>>>>>>>
>>>>>>>
>>>>>>> On Oct 22, 2010, at 4:51 PM, Graham S. Jarvis wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Hello all,
>>>>>>>>
>>>>>>>> I'm running 0.7.3 as a test installation on a Net4801 (ie three
>>>>>>>> Ethernet ports).
>>>>>>>> The 4801 is a gateway (using a DSL modem on eth0) for one network
>>>>>>>> (eth1) but not
>>>>>>>> for the other (eth2). All hosts on the network connected to eth2 use a
>>>>>>>> different router on that network as the gateway.
>>>>>>>>
>>>>>>>> Is is possible to configure dhcp on eth2 so that it doesn't use itself
>>>>>>>> as the
>>>>>>>> gateway but uses a gateway somewhere else on that network?
>>>>>>>> I don't find anything in the GUI and I didn't find my way around the
>>>>>>>> various
>>>>>>>> config files yet. There should be place where I can set (amongst
>>>>>>>> other things)
>>>>>>>> "dhcp-option=eth2,3,192.168.x.x" to point to the router/gateway.
>>>>>>>>
>>>>>>>> I don't (yet?) want dhcp on eth1 but if I did it should use itself as
>>>>>>>> the gateway.
>>>>>>>>
>>>>>>>> Thanks in advance!
>>>>>>>>
>>>>>>>> -Graham-
>>>>>>>>
>>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>>>>>>> contest
>>>>>>> Create new apps& games for the Nokia N8 for consumers in U.S. and
>>>>>>> Canada
>>>>>>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>>>>>>> marketing
>>>>>>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>>>>>>>
>>>>>>> http://p.sf.net/sfu/nokia-dev2dev
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Astlinux-users mailing list
>>>>>>>
>>>>>>> [email protected]
>>>>>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>>>>>>
>>>>>>>
>>>>>>> Donations to support AstLinux are graciously accepted via PayPal to
>>>>>>> [email protected]
>>>>>>> .
>>>>>>>
>>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>>>>> contest
>>>>> Create new apps& games for the Nokia N8 for consumers in U.S. and Canada
>>>>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>>>>> marketing
>>>>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>>>>>
>>>>> http://p.sf.net/sfu/nokia-dev2dev
>>>>>
>>>>> _______________________________________________
>>>>> Astlinux-users mailing list
>>>>>
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>>>>
>>>>>
>>>>> Donations to support AstLinux are graciously accepted via PayPal to
>>>>> [email protected]
>>>>> .
>>>>>
>>>> ------------------------------------------------------------------------------
>>>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>>>> contest
>>>> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
>>>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>>>> marketing
>>>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>>>>
>>>> http://p.sf.net/sfu/nokia-dev2dev
>>>>
>>>> _______________________________________________
>>>> Astlinux-users mailing list
>>>>
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>>>
>>>>
>>>> Donations to support AstLinux are graciously accepted via PayPal to
>>>> [email protected]
>>>> .
>>>>
>>>>
>>> ------------------------------------------------------------------------------
>>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>>> David G. Thomson, author of the best-selling book "Blueprint to a
>>> Billion" shares his insights and actions to help propel your
>>> business during the next growth cycle. Listen Now!
>>> http://p.sf.net/sfu/SAP-dev2dev_______________________________________________
>>> Astlinux-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>>
>>> Donations to support AstLinux are graciously accepted via PayPal to
>>> [email protected].
>>
>>
>> ------------------------------------------------------------------------------
>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> David G. Thomson, author of the best-selling book "Blueprint to a
>> Billion" shares his insights and actions to help propel your
>> business during the next growth cycle. Listen Now!
>> http://p.sf.net/sfu/SAP-dev2dev
>> _______________________________________________
>> Astlinux-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>
>> Donations to support AstLinux are graciously accepted via PayPal to
>> [email protected].
>>
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].