Koozali.org: home of the SME Server

DHCP linux

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
DHCP linux
« 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: DHCP linux
« Reply #1 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


Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: DHCP linux
« Reply #2 on: August 04, 2015, 12:53:46 PM »
You have also a contrib smeserver-dhcpmanager http://wiki.contribs.org/Dhcpmanager
« Last Edit: August 04, 2015, 12:55:17 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: DHCP linux
« Reply #3 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).
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: DHCP linux
« Reply #4 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 :-)

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: DHCP linux
« Reply #5 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: DHCP linux
« Reply #6 on: August 04, 2015, 02:08:16 PM »
you are welcome

the manual link is just above.. please read it, twice ;-)

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: DHCP linux
« Reply #7 on: August 04, 2015, 03:18:48 PM »
Stefano, I feel that you have replied me other way around. Is that you there?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: DHCP linux
« Reply #8 on: August 04, 2015, 03:39:17 PM »
yes, it was me :-)

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: DHCP linux
« Reply #9 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.

Offline mike_mattos

  • *
  • 313
  • +0/-0
Re: DHCP linux
« Reply #10 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? 
...

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: DHCP linux
« Reply #11 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. 👍

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: DHCP linux
« Reply #12 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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline smnirosh

  • *****
  • 329
  • +0/-0
  • Learning never ends
Re: DHCP linux
« Reply #13 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.

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: DHCP linux
« Reply #14 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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!