100 likes | 266 Views
Chapter 2. DHCP Server. Contents. DHCP Server Allowing Connections for DHCP Configuring the Server. DHCP Server. DHCP, ( Dynamic Host Configuration Protocol) allows an administrator to configure network settings for all clients on a central server. Feature of DHCP
E N D
Chapter 2 DHCP Server
Contents • DHCP Server • Allowing Connections for DHCP • Configuring the Server
DHCP Server • DHCP, (Dynamic Host Configuration Protocol) allows an administrator to configure network settings for all clients on a central server. • Feature of DHCP • The DHCP clients request an IP address and other network settings from the DHCP server on the network. • The DHCP server in turn leases the client an IP address within a given range or leases the client an IP address based on the MAC address of the client’s network interface card (NIC). • If an IP address is assigned according to the MAC address of the client’s NIC, the same IP address can be leased to the client every time the client requests one. • DHCP makes network administration easier and less prone to error
Allowing Connections for DHCP • By default, the DHCP server listens for requests on UDP port 67.
Step to configuring basic DHCP server • Step 1: Enable firewall on UDP port 67 • Step 2: copy file /usr/share/dhcp-<version number>/dhcpd.conf.sample to /etc/dhcpd.conf • Step 3: edit file /etc/dhcpd.confby input parameter with its correct value • Step 4: save /etc/dhcpd.conffile • Step 5: create lease Database by using command touch /var/lib/dhcp/dhcpd.leases • Step 6: restart dhcpd service servicedhcpd restart • Step 7: Enable DHCP Client • Step 8: verifying dhcp client IP address
Example • System menu Administration Security Level and Firewall • In the Other ports area, click Add to specify the DHCP port
Edit /etc/dhcpd.conf file ddns-update-style interim; authoritative; subnet 192.168.10.0 netmask 255.255.255.0 { #global parameters for the subnet option routers 192.168.10.1; option subnet-mask 255.255.255.0; range 192.168.10.20 192.168.10.200; default-lease-time 21600; max-lease-time 43200; }
Enable DHCP Client on RedHat Linux • Click on SystemAdministrationNetwork • Select on Eth0 from Device Edit Automatically obtain IP address setting with dhcp • In Terminal typesifconfig eth0 command