System1: setup install DHCP Rely Server
Step 1:install dhcp package
#yum install dhcp
Step 2:copy sample configuration file to /etc/dhcpd.conf
#cp /usr/share/doc/dhcp3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Step 3:edit dhcp configuration file
#vim /etc/dhcpd.conf
ddnsupdatestyle none;
sharednetwork sample {
option routers 192.168.0.10;
option subnetmask 255.255.255.0;
option domainname "rhel5.com";
option domainnameservers 192.168.0.10;
defaultleasetime 21600;
maxleasetime 43200;
subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.1
192.168.0.20; }
subnet 10.0.0.0 netmask 255.0.0.0 { range 10.0.0.1 10.0.0.20; }
}
Step 4:
Create alias Ethernet device and assign ip 10.0.0.10
#yum install netconfig
#netconfig –d eth0:1
#service network restart
Step 5:
start dhcp service
#chkconfig dhcpd on
#service dhcpd start
Client Side: DHCP server enable
Step 6:
enable dhcp in client side
#neattui
#service network restart
Step 7:
check the ip address of machine
DHCP rely server configure successfully in rehl5
Step 1:install dhcp package
#yum install dhcp
Step 2:copy sample configuration file to /etc/dhcpd.conf
#cp /usr/share/doc/dhcp3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Step 3:edit dhcp configuration file
#vim /etc/dhcpd.conf
ddnsupdatestyle none;
sharednetwork sample {
option routers 192.168.0.10;
option subnetmask 255.255.255.0;
option domainname "rhel5.com";
option domainnameservers 192.168.0.10;
defaultleasetime 21600;
maxleasetime 43200;
subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.1
192.168.0.20; }
subnet 10.0.0.0 netmask 255.0.0.0 { range 10.0.0.1 10.0.0.20; }
}
Step 4:
Create alias Ethernet device and assign ip 10.0.0.10
#yum install netconfig
#netconfig –d eth0:1
#service network restart
Step 5:
start dhcp service
#chkconfig dhcpd on
#service dhcpd start
Client Side: DHCP server enable
Step 6:
enable dhcp in client side
#neattui
#service network restart
Step 7:
check the ip address of machine
DHCP rely server configure successfully in rehl5
0 Comments