zuoyw

 

8_韩方州
`设置 dhcp服务器IP地址为172.17.17.5并主配置文件
Cp dhcp配置文件模版到etc下并改名为 dhcpd.conf
Cp /usr/share/doc/dhcp-3*/dhcpd.conf.sample /etc/dhcpd.conf
并修改主配置文件
ddns-update-style none;
  ignore client-updates;
   subnet 172.17.17.0 netmask 255.255.255.0 {
           option routers                  172.17.17.1;
           option subnet-mask              255.255.255.0;
           range dynamic-bootp 172.17.17.11 172.17.17.254;
           host ns {
                   hardware ethernet 00:0c:29:fc:57:9a;
                   fixed-address 172.17.17.12;
          }      
 }       
 subnet 192.168.1.0 netmask 255.255.255.0 {
           option routers        192.168.1.1;
           option subnet-mask    255.255.255.0;
          range dynamic-bootp 192.168.1.10 192.168.1.100;
 }
 subnet 192.168.2.0 netmask 255.255.255.0 {
           option routers        192.168.2.1;
           option subnet-mask    255.255.255.0;
           range dynamic-bootp  192.168.2.10 192.168.2.100;
 }        
 保存退出
设置dhcp中继服务器3个端口IP地址为eth0(vmnet2) 172.17.17.2 eth1(vmnet3) 192.168.1.2 eth2(vmnet5) 192.168.2.2并配置文件
Vi /etc/sysconfig/dhcrelay
 
INTERFACES="eth0 eth1 eth2"
DHCPSERVERS="172.17.17.5"
 

你可能感兴趣的:(wahaha)