Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: smnirosh on August 04, 2015, 12:16:11 PM

Title: DHCP linux
Post by: smnirosh on August 04, 2015, 12:16:11 PM
How to edit, save dhcpd.conf file to modify the dhcp range given by dhcp server. I attempted but when dhcpd service starts, the dhcpd.conf file back to previous status. the main problem is i cannot restart my sme server this time.
Title: Re: DHCP linux
Post by: Stefano on August 04, 2015, 12:29:18 PM
Hi, welcome here


SME server (as Nethserver, that you already know) relies on db/templates/fragments/event paradigm, so editing conf file is the wrong approach to the problem (and you've been already told so elsewhere)

if you need to change your dhcp range,


Code: [Select]
config setprop dhcpd start your_first_ip end your_last_ip
expand-template /etc/dhcpd.conf
service dhcpd restart


moreover, please take some time to read the documentation, thank you

Title: Re: DHCP linux
Post by: stephdl on August 04, 2015, 12:53:46 PM
You have also a contrib smeserver-dhcpmanager http://wiki.contribs.org/Dhcpmanager
Title: Re: DHCP linux
Post by: DanB35 on August 04, 2015, 01:10:13 PM
...or, if you just want to modify the DHCP range, you can do that through the "configure this server" option at the console (log in as admin at the console to access it).
Title: Re: DHCP linux
Post by: Stefano on August 04, 2015, 01:14:37 PM
...or, if you just want to modify the DHCP range, you can do that through the "configure this server" option at the console (log in as admin at the console to access it).

unfortunately, if you do so you have to reboot your server.. and that's not an option sometimes.. and, sincerely, reboot a server to change dhcp range is quite (let me say) stupid :-)
Title: Re: DHCP linux
Post by: smnirosh on August 04, 2015, 01:55:47 PM
 :lol: :lol: :lol: hi stefano, you are the hero. that works very well for me as i planned. thank you very very much. As you said, I am very sad about my linux knowledge. But i have to improve it so that i can work any further.
Title: Re: DHCP linux
Post by: Stefano on August 04, 2015, 02:08:16 PM
you are welcome

the manual link is just above.. please read it, twice ;-)
Title: Re: DHCP linux
Post by: smnirosh on August 04, 2015, 03:18:48 PM
Stefano, I feel that you have replied me other way around. Is that you there?
Title: Re: DHCP linux
Post by: Stefano on August 04, 2015, 03:39:17 PM
yes, it was me :-)
Title: Re: DHCP linux
Post by: smnirosh on August 04, 2015, 05:04:25 PM
KK. thanks  very much. Now I feel cool because of every day someone says at early morning, I cannot access network drive bla bla bla bla. now they are working shut them mouths up.
Title: Re: DHCP linux
Post by: mike_mattos on August 10, 2015, 04:59:11 PM
rebooting the server is normal for updates so is it reasonable to do all the updates in a singe reboot? 
Title: Re: DHCP linux
Post by: smnirosh on August 11, 2015, 10:54:18 AM
Dear friends, can I ask any kind of issues about windows, ios, mac, android, linux and as well as nethservice from this comunity? Because this is the first time I joined to a comunity ever. 👍
Title: Re: DHCP linux
Post by: stephdl on August 11, 2015, 11:35:28 AM
You are welcome, no problem for that but here it is the sme server community....not the nethserver community.
Title: Re: DHCP linux
Post by: smnirosh on August 11, 2015, 12:14:23 PM
Ok. Thanks for the info. Can i have a little comparission between redhat linux and sme server.
Title: Re: DHCP linux
Post by: stephdl on August 11, 2015, 01:10:17 PM
Sme server is a centos based linux distro (sme9 is centos6 based) with a web server-manager and a system of templates and databases.

Nethserver is a fork of smeserver with another team.
Title: Re: DHCP linux
Post by: smnirosh on August 14, 2015, 08:38:41 PM
How to create a new post in contribs . Org
Title: Re: DHCP linux
Post by: guest22 on August 14, 2015, 10:27:48 PM
You just did :-)
Title: OpenVPN
Post by: smnirosh on August 14, 2015, 10:32:30 PM
How to install openvpn server on Sme server. This server has Windows 7 clients. And I want to configure a windows 7 client pc to remotely connect to this server and access its network resources over the internet. thanks very much
Title: Re: DHCP linux
Post by: guest22 on August 14, 2015, 10:36:12 PM
Our wiki will help you most of the times. http://wiki.contribs.org/OpenVPN_Bridge
Title: Re: DHCP linux
Post by: DanB35 on August 15, 2015, 01:13:50 PM
...and if you have questions after reading the relevant wiki pages, you'd be better off posting a new thread, rather than replying to one that's completely unrelated to your question.