Transcript of "Dhcp & dhcp relay agent in cent os 5.3"
Mr. NHEAN Sophan email@example.com Page 2 DHCP Server and DHCP Relay Agent Network Infrastructure DHCP Server: Computer or computers which function as server(s) provide networkconfigurations automatically to clients such as IP Address, subnet mask, defaultgateway, domain name, DNS server, etc. DHCP Relay Agent: The DHCP Relay Agent (dhcrelay) allows for the relay of DHCPand BOOTP request from a subnet with no DHCP Server on it to one or more DHCPservers on other subnets. When a DHCP client requests information, the DHCP RelayAgent forwards the request to the list of DHCP servers specified when the DHCPRelay Agent is started. When a DHCP server returns a reply, the reply is broadcastor unicast on the network that sent the original request.
Mr. NHEAN Sophan firstname.lastname@example.org Page 3 I. Configuring DHCP Server1. Install DHCP Server by using dhcp-3.0.5-18.el5.i386.rpm2. Copy the sample of DHCP Configuration file from /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample3. Go to edit the configuration file by vim /etc/dhcpd.conf4. DHCP Server provides a scope of IP Address in Subnet 192.168.2.0, Net mask255.255.255.0 (Range: 192.168.2.10 – 192.168.2.254) and provides the fixed addressfor Manager.
Mr. NHEAN Sophan email@example.com Page 4 5. Go to /etc/sysconfig/dhcpd6. Configure interface for DHCP Server to listen the request from clients.7. Start or Restart the service DHCP Service.8. Configure DHCP Service to start automatically9. Stop the firewall service
Mr. NHEAN Sophan firstname.lastname@example.org Page 5 II. Configuring DHCP Relay Agent1. Install DHCP Server by using dhcp-3.0.5-18.el5.i386.rpm2. Go to DHCP Relay Agent configuration file by vim /etc/sysconfig/dhcrelay3. Configure interfaces relay from client LAN and DHCP Server (eth0 and eth1) andDHCP Server’s IP Address (192.168.1.2)4. Start or Restart DHCP Relay Agent service (dhcrelay)5. Configure DHCP Relay Agent (dhcrelay) service to start automatically.6. Set the configuration from 0 to 1 to enable the router, forwarder option.
Mr. NHEAN Sophan email@example.com Page 6 III. Testing DHCP Server1. Client Manager, he got the reservation IP address2. And other clients got other IP Addresses, and so on.The End!