Mandriva Enterprise Server 5.2 搭建 DHCP服务器

安装相关软件,terminal中输入:urpmi -a dhcp-server

主配置文件为:/etc/dhcpd.conf,

log文件位于:/var/log/message

我的修改如下

ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
    # default gateway
    option routers 192.168.0.1;   ----我就写的本机的IP
    option subnet-mask 255.255.255.0;

    option domain-name "domain.org";

    # Seting up an ip address is better here
    option domain-name-servers 192.168.0.1;
    option domain-name    "example.com";
    option nis-domain "domain.org";

    range dynamic-bootp 192.168.0.128 192.168.0.254;
    default-lease-time 21600;
    max-lease-time 43200;

    # we want the nameserver to appear at a fixed address
    host ns {
        next-server fixed.mandrakesoft.com;
        hardware ethernet 12:34:56:78:AB:CD;
        fixed-address 192.168.0.10;
    }
}
 

你可能感兴趣的:(linux,DHCP,mandriva)