12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network Services—Local Network ServicesDynamic Host Configuration Protocol(DHCP)In the simplest form, DHCP (as per RFC2131) introduces a method for networkdevices to obtain network configuration parameters from a centralized server. Theobtained information can be the IP address, subnet mask, default router, DNS, oreven information required for remote booting.dhclientFreeBSD comes with built-in DHCP client called dhclient(8). Once it is executed,it attaches to the specified network interface and goes to daemon mode (runs as abackground process). Dhclient then takes care of discovering DHCP server on thespecified interface, and receives network configuration information, and appliesthat to the interface. You can run dhclient manually, and bind it to a specificnetwork interface:# dhclient fxp0You can also enable dhclient(8) on any interface to run on system start up, byadding a the following line to /etc/rc.conf:ifconfig_fxp0="DHCP"ISC DHCPDFreeBSD does not come with a built-in DHCP server. However, the widely used ISCDHCP server (as well as client and relay) is available from the ports tree, under/usr/ports/net/isc-dhcp3-server.ISC DHCPD (currently at version 3), is the de facto open source DHCP serversolution that is available on many platforms, including FreeBSD.Installing isc-dhcp3-server from port installs requires binaries, manual pages, andsample configuration file. A sample configuration file can be found at /usr/local/etc/dhcpd.conf.sample. The dhcpd daemon looks for its configurationfile at /usr/local/etc/dhcpd.conf. So, you can simply copy the sample fileas the configuration file. Then make your own modifications, before starting thedhcpd daemon.Enabling isc-dhcpd is possible by adding the following line to your/etc/rc.conf file:dhcpd_enable="YES"[ 236 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!