- 论坛徽章:
- 0
|
我用 red hat 9 做了一个dhcp 服务器,并用这个机器做为网关,通过这个机器让内网机器上网.
dhcpd.conf 文件如下:
default-lease-time 1200;
max-lease-time 87600;
ddns-update-style none;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.3;
option domain-name-servers 61.134.1.4,218.30.19.40;
subnet 192.168.0.0 netmask 255.255.255.0{
range 192.168.0.21 192.168.0.220;
host B01 {
hardware ethernet 00:0C:76:4C:7E:37 ;
fixed-address 192.168.0.21 ;
}
host B02 {
hardware ethernet 00:0C:76:4C:7B:80 ;
fixed-address 192.168.0.22 ;
}
host B03 {
hardware ethernet 00:0C:76:4C:73:07 ;
fixed-address 192.168.0.23 ;
}
host B04 {
hardware ethernet 00:0C:76:4C:1E:BE ;
fixed-address 192.168.0.24 ;
}
}
全网内大约200台机器.
dhcp 服务正常.我希望通过mac 地址来指定ip地址,但是在实际使用中.偶尔有获取地址和指定不相符的情况,不知道其他朋友有没有遇到这种情况.请熟悉的朋友协助分析一下原因何在.
另外,我希望实现 ip地址和 mac 地址绑定.我不知道如何着手.请熟悉的朋友给予指点. |
|