Steve Tinsley
asked on
Webmin wont stop DHCP
I have recently set up a Ubuntu 11.10 server as a DHCP server.
For ease I installed webmin to control the server.
I seem to have the webmin DHCP Server module working but cannot seem to Stop the DHCP.
When the server boots it automatically starts the DHCP
In webmin it shows a button of the screen saying Start Server (even though the server is working).
I would expect it to show STOP Server if it was running at the time.
If I click it, it doesnt make any difference.
Any someone shed some light..
Many Thanks
Steve
For ease I installed webmin to control the server.
I seem to have the webmin DHCP Server module working but cannot seem to Stop the DHCP.
When the server boots it automatically starts the DHCP
In webmin it shows a button of the screen saying Start Server (even though the server is working).
I would expect it to show STOP Server if it was running at the time.
If I click it, it doesnt make any difference.
Any someone shed some light..
Many Thanks
Steve
ASKER
The IP address of the server is already STATIC.
Its the DHCP Server i want to be able to START and STOP via webmin.
Its the DHCP Server i want to be able to START and STOP via webmin.
How,
Didint got it really. Ok. There is a command to stop DHCP Server:
/etc/init.d/isc-dhcp-serve r stop
To start again:
/etc/init.d/isc-dhcp-serve r start
Does this work?
Rgds,
GFilipe
Didint got it really. Ok. There is a command to stop DHCP Server:
/etc/init.d/isc-dhcp-serve
To start again:
/etc/init.d/isc-dhcp-serve
Does this work?
Rgds,
GFilipe
ASKER
Yep...
Ok. That is a good turnarround. Nevertheless I'm wondering what could be doing that.
How was the installation performed with repository or manually?
You could start by checking the DHCP configuration:
In the Webmin go to unused modules, select DHCP Server. Make the following changes if you didint already:
DHCP Server Config File = /etc/dhcp/dhcpd.conf
DHCP Server Executable = /usr/sbin/dhcpd
Command to start DHCP server = /etc/init.d/isc-dhcp-serve r start
Command to apply configuration = /etc/init.d/isc-dhcp-serve r restart
Command to stop DHCP server = /etc/init.d/isc-dhcp-serve r stop
Path to DHCP server PID file = /var/run/dhcp-server/dhcpd .pid
In the end click save.
Reboot the system and check if button already works.
How was the installation performed with repository or manually?
You could start by checking the DHCP configuration:
In the Webmin go to unused modules, select DHCP Server. Make the following changes if you didint already:
DHCP Server Config File = /etc/dhcp/dhcpd.conf
DHCP Server Executable = /usr/sbin/dhcpd
Command to start DHCP server = /etc/init.d/isc-dhcp-serve
Command to apply configuration = /etc/init.d/isc-dhcp-serve
Command to stop DHCP server = /etc/init.d/isc-dhcp-serve
Path to DHCP server PID file = /var/run/dhcp-server/dhcpd
In the end click save.
Reboot the system and check if button already works.
ASKER
Checked that and I have that correct..
I am beginning to wonder if webmin doesn't have a STOP button.
- In the terminal when I STOP the DHCP server then check the DHCP server status is says stop.
- I then go to webmin and START the DHCP server via the START BUTTON.
- Back in the terminal i check the DHCP server status and it says RUNNING.
- I look in webmin and the button still says START... I would expect it to say STOP when its running.
Any thoughts?
I am beginning to wonder if webmin doesn't have a STOP button.
- In the terminal when I STOP the DHCP server then check the DHCP server status is says stop.
- I then go to webmin and START the DHCP server via the START BUTTON.
- Back in the terminal i check the DHCP server status and it says RUNNING.
- I look in webmin and the button still says START... I would expect it to say STOP when its running.
Any thoughts?
Hi,
Ok. So we have the issue with DHCP solved. Still you would like to be able to Stop/start webmin.
The fact is webmin is the web interface, if it is stopped you wont be able to access it again via the web interface. The button that shows start (this will depend on the version, was revised and in some versions will say restart webmin). So this button is used usually for example to process an update with pearl.
Nevertheless you may stop and start webmin the following way:
To stop webmin manually you should use the following command:
sudo /etc/webmin stop;
to start:
sudo /etc/webmin start;
Hope this helps,
Regards,
GFilipe
Ok. So we have the issue with DHCP solved. Still you would like to be able to Stop/start webmin.
The fact is webmin is the web interface, if it is stopped you wont be able to access it again via the web interface. The button that shows start (this will depend on the version, was revised and in some versions will say restart webmin). So this button is used usually for example to process an update with pearl.
Nevertheless you may stop and start webmin the following way:
To stop webmin manually you should use the following command:
sudo /etc/webmin stop;
to start:
sudo /etc/webmin start;
Hope this helps,
Regards,
GFilipe
ASKER
I wanted to be able to stop the DHCP server via webmin... Not Stop webmin!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By default the Ubuntu is probably set to dhcp To change the network settings, please check if that is the case:
SUDO vim /etc/network/interfaces
(this will probaly ask for your password)
You Can change this to a static IP Address for example:
(to edit press i, to finish press esc and to save type :wq)
#Primary Network Interface
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.254
broadcast 192.168.0.255
gateway 192.168.0.254
To restart your network type:
Sudo /etc/init.d/networking restart
Note that this should be added according to your network settings and the eth in use usually its eth0 or eth1.
Once you have the correct config DHCP is off.
Hope this answers your question,
Regards,
GFilipe