Koozali.org: home of the SME Server

dhcp screwup

Offline ElFroggio

  • *
  • 262
  • +0/-0
dhcp screwup
« on: April 29, 2014, 06:34:03 AM »
Hi,

I screwup my dhcp server on sme, configured at a standalone server. I disable DHCP by mistake. I thought that another server was providing the dhcp services.

Disabled with

Code: [Select]
config setprop dhcpd status disabled
service dhcpd stop

then when I realized my error, I tried:

Code: [Select]
config setprop dhcpd status enabled
service dhcpd start

Now I get the IP address with correct subnet mask but not the gateway nor the default route.

I also tried as 'admin' and the admin interface to enable the dhcp service, same.

Code: [Select]
show dhcpd status
dhcpd=service
  Bootp=deny
  end=192.168.1.192
  start=192.168.1.121
  status=enabled
Any suggestion on how to fix it.

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: dhcp screwup
« Reply #1 on: April 29, 2014, 07:14:20 AM »
Go to the console, and reconfigure
--
qui scribit bis legit

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: dhcp screwup
« Reply #2 on: April 29, 2014, 08:32:08 AM »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: dhcp screwup
« Reply #3 on: April 29, 2014, 12:02:26 PM »
Here is my output:
Code: [Select]
root@leopardo ~]# config show dhcpd
dhcpd=service
    Bootp=allow
    end=192.168.13.99
    start=192.168.13.10
    status=enabled
[root@leopardo ~]#
I have a TFTP server running so I have Bootp.
Have you tried restart it:
Code: [Select]
root@leopardo ~]# /etc/init.d/dhcpd restart
Shutting down dhcpd:                                       [  OK  ]
Starting dhcpd:                                            [  OK  ]

And verify the logs using:
Code: [Select]
[root@leopardo ~]# cat /var/log/dhcpd/current |tai64nlocal
I'm not sure why you got a problem, but you should open a bug on bugzilla.
...