DHCP relay configuration

  
        

DHCP Relay Configuration 1: Use the above experimental environment of DHCP server configuration to continue to build DHCP relay 2: Open another Linux machine to do dhcp relay agent 3: Install dhcp-3.0 for this new Linux machine. 5-18.el5 package 4: After installation, then through rpm -qc dhcp view his configurable document 5: find /etc/sysconfig/dhcrelay, and vim /etc/sysconfig/dhcrelayINTERFACES="eth0 eth1 eth2" (three The name of the network card) DHCPSERVERS="192.168.10.60" (address of dhcp server) 6: need to configure 3 network cards for liuux machine 7: configure IP addresses on 3 network cards respectively, one of which is connected to dhcp server ip address 192.168.10.254, one connection 192.168.60.0 network segment ip address is 192.168.60.254, the last block connection 192.168.70.0 network segment ip address is 192.168.70.254, pay attention to configure ip address when using setup configuration to cancel each network card automatically obtained The function of the ip address, after the configuration ends, save and exit, restart the service network restart of the network card. 8: Enable the function of automatically forwarding datagrams by the network card vim /etc/sysctl.conf Change the net.ipv4.ip_forward = 0 on line 7 to net.ipv4.ip_forward = 1; 9: Try to enable the dhcrelay service service dhcrelay Start10: Check if the dhcrelay port is enabled with chkconfig --list

Copyright © Windows knowledge All Rights Reserved