dhcp服务器和中继

[root@localhost ~]# cat /etc/dhcpd.conf 
ddns-update-style interim;
ignore client-updates;
        default-lease-time 21600;
        max-lease-time 43200;
        option time-offset      -18000;
subnet 172.17.17.0 netmask 255.255.255.0 {
# --- default gateway
        option routers                  172.17.17.1;
        option subnet-mask              255.255.255.0;
#       option nis-domain               "domain.org";
#       option domain-name              "domain.org";
#       option domain-name-servers      192.168.1.1;
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;
        range dynamic-bootp 172.17.17.10 172.17.17.100;
# we want the nameserver to appear at a fixed address
#       host ns {
#               next-server marvin.redhat.com;
#               hardware ethernet 12:34:56:78:AB:CD;
#               fixed-address 207.175.42.254;
#       }
}
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;
 
       host ns {
               next-server marvin.redhat.com;
               hardware ethernet 00:0C:29:BB:81:CA;
               fixed-address 192.168.2.50;
       }
}
中继
 
 

你可能感兴趣的:(DHCP)