Re: How to setup dhcp server under Fedora 19 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2013-07-18 at 10:34 +0800, Ed Greshko wrote:
> On 07/18/13 09:31, Gregory Hosler wrote:
> > Hi all,
> >
> > It seems that dnsmasq is running under Fedora 19, and it manages the dns/dhcp
> > for the virtual environment.
> >
> > So, how does one get either dhcpd or another copy of dnsmasq, or,
> > /etc/dnsmasq.d/*conf to either play or integrate with the running dnsmasq.
> >
> > That is to say that I have a working dhcpd conf file, but dhcpd can't bind to
> > the dhcp ports.
> >
> > I have also configured a dnsmasq conf file, and put it in /etc/dnsmasq.d, but
> > that isn't included because the config file for the dnsmasq used for libvirt
> >
> >     /var/lib/libvirt/dnsmasq/default.conf
> >
> > doesn't contain:
> >
> >     conf-dir=/etc/dnsmasq.d
> >
> > So, I am curious. Has anyone setup a dhcp server on Fedora 19, and if yes, did
> > you use dhcpd or dnsmasq ?
> >
> > If you used dhcpd, how did you get around the fact that dnsmasq is using the
> > dhcp ports ? If you are using dnsmasq, how did you integrate with libvirt ?
> >
> 
> The config file for dnsmasq is at /etc/dnsmasq.conf
> 
> In the config file you'll find.....
> 
> # If you want dnsmasq to provide only DNS service on an interface,
> # configure it as shown above, and then use the following line to
> # disable DHCP and TFTP on it.
> #no-dhcp-interface=
> 
> I don't see in the documentation if uncommenting and leaving blank indicates all interfaces.  Something to play with.....  I don't use dnsmasq.
> 
> 
To serve only the interface with 172.16... I use dhcpd with the simple
config.:

[root@s194 ~]# cat /etc/dhcpd/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#

#
# Custom configuration file for ISC dhcpd - 02-Jul-2013
#

# option definitions common to all supported networks...
option domain-name "xx.yy.ro";
option domain-name-servers name_server.xx.yy.ro;

default-lease-time 1200;
max-lease-time 15000;

# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility local7;

# A slightly different configuration for an internal subnet.
subnet 172.16.0.0 netmask 255.255.0.0 {
  range 172.16.170.0 172.16.172.0;
  option domain-name-servers name_server.xx.yy.ro;
  option domain-name "xx.yy.ro";
  option routers 172.16.0.1;
  option broadcast-address 172.16.255.255;
  default-lease-time 1200;
  max-lease-time 15000;
}

C.Sava


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux