Software projects/OS/Slackware/Advanced usage/DHCP server

From Pandora Wiki
Revision as of 09:32, 15 April 2012 by Linux-SWAT (talk | contribs) (Created page with "= Dnsmask and dhcpcd = * I never used Dnsmask. Seems it's great. * dhcpcd is the most common dhcp server. = dhcpd = * Check google for "dhcpcd.conf examples". * Edit /etc/dhcpcd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Dnsmask and dhcpcd

  • I never used Dnsmask. Seems it's great.
  • dhcpcd is the most common dhcp server.

dhcpd

  • Check google for "dhcpcd.conf examples".
  • Edit /etc/dhcpcd.conf as you need.
  • Note that the network interface has to be configured before running dhcpd on it. So you'll have to comment or remove
/etc/rc.d/rc.networkmanager start

from /etc/rc.d/rc.local , and put something like

ifconfig eth0 11.22.33.44/24

instead, depending on which network address you plan to use.

  • Run dhcpd eth0, dhcpd usb0 or dhcpd usb1 depending which interface you intend to use to deliver dhcp service.
  • Once you got a satisfying configuration, put the command in /etc/rc.d/rc.local , after the fixed adress.