PDA

View Full Version : [ubuntu] Network Manager and DHCP!!



BugBuster
February 4th, 2010, 04:55 PM
Is it possible to have Network manager and DHCP server running simultaneously with only one ethernet interface available on the computer?
If yes...how?

mk1w86
February 4th, 2010, 06:16 PM
It should be, as far as I know the dhcp3 client is still used to get an IP address even if you are using Network Manager. :-k

If you install the dhcp daemon and configure it correctly you should have no problem serving IP addresses from your machine. :D

There is a guide on setting up dhcp3 server here:

https://help.ubuntu.com/community/dhcp3-server

Iowan
February 5th, 2010, 01:18 AM
Depending on your needs, dnsmasq is another DHCP/DNS server (also in repos).

BugBuster
February 5th, 2010, 07:04 AM
It should be, as far as I know the dhcp3 client is still used to get an IP address even if you are using Network Manager. :-k

If you install the dhcp daemon and configure it correctly you should have no problem serving IP addresses from your machine. :D

There is a guide on setting up dhcp3 server here:

https://help.ubuntu.com/community/dhcp3-server

Thanks for replying...but I have tried doing this in the past however never really suceeded. What happens is when I enable Network Manger, DHCP server daemon does not start automatically. So I have to define static address to eth0 in /etc/network/interfaces file. Once I do that NM is disabled!

So what I want is to use nm-applet and be able to serve ip addresses to my local subnet as well at startup.

So please suggest how this can be done.

Iowan
February 5th, 2010, 10:41 PM
If Network Manager is controlling the interface(s), it(they) won't activate until login - but DHCP server (probably) needs interface active when it boots - so sounds like running both may not be possible.

But I've been wrong before...

Have you tried manually restarting the DHCP server after you log in?