Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Bill Talcott on April 11, 2002, 08:14:16 PM
-
http://forums.contribs.org/index.php?topic=13306.msg50385#msg50385
We're using the NT4 PDC for DHCP on the LAN to give PCs 10.0.100.x addresses. VPN with the SME (at 10.0.0.1) works great, but it gives out 10.0.0.x addresses. Is there any way to change what range of IPs the SME gives out for VPN connections? It would be nice if I could have them all follow the same format.
-
The actual conf. file is
/etc/dhcpd.conf
The e-smith template can be found at
/etc/e-smtih/templates/etc/dhcpd.conf/25Range
To edit the e-smith template I believe you need to
copy it to
/etc/e-smith/templates-custom/etc/dhcp.conf/25Range
I'm unsure about the following, but I believe the
file should contain something similar to below:
range 10.0.0.65 10.0.0.250;
(Obviously changing the range to fit your need)
-
Sort of... Here is what 25Range looks like...
{
local %conf;
$conf{'dhcpd'} = $dhcpd;
local $dhcpStart = db_get_prop(\%conf, 'dhcpd', 'start');
local $dhcpEnd = db_get_prop(\%conf, 'dhcpd', 'end');
$OUT .= " range $dhcpStart $dhcpEnd;";
}
Also, 70PPTPDEntries contains this note:
# We steal the PPTP range from the top of the DHCP range
# Allocate them as static DHCP entries
I'm still pretty new to Linux, so I'm not sure exactly what those mean... I assume I could probably just enter the start and end IPs in place of the db_get_prop stuff, but it seems like that could cause problems down the road. Is there some way to change the entire range? Will it work if I use the Admin config to pick a range, then run it again and disable DHCP?
-
Bill Talcott wrote:
> Is there some
> way to change the entire range? Will it work if I use the
> Admin config to pick a range, then run it again and disable
> DHCP?
Yes, it will. =) Thanks for the help anyway.