isc dhcp fixed-address

| | Comments (0)

ISC DHCPD 的 IP pool (range) 並不會自動排除已 fixed-address 的 IP
舉個例子:
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.200;
option routers 192.168.0.1;
option domain-name-servers 168.95.1.1,168.95.192.1;
}
host test { hardware ethernet 00:90:dc:02:45:88; fixed-address 192.168.0.10; }
這就是有問題的設定, 有可能有其他電腦會佔了 192.168.0.10 這個 IP,
而 00:90:dc:02:45:88 這台電腦就無法取得 IP.

正確的做法應該要把固定 IP 區段畫開,
如:
192.168.0.10 ~ 192.168.0.20 為固定分配 IP
192.168.0.21 ~ 192.168.0.200 為動態分配 IP
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.21 192.168.0.200;
option routers 192.168.0.1;
option domain-name-servers 168.95.1.1,168.95.192.1;
}
host test { hardware ethernet 00:90:dc:02:45:88; fixed-address 192.168.0.10; }

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on November 8, 2004 3:03 PM.

bash substitution was the previous entry in this blog.

Skype 費率表 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.