iT邦幫忙

0

LINUX DHCP 設定

各位IT前輩
目前本公司是在DHCP裡設定USER MAC 來指派固定IP 給予使用
但發現MAC沒在清單裡的電腦也能自己自動取得,會造成與他人IP衝突
我想要...只要沒在我DHCP清單裡的MAC就無法取得IP
請問各位老前輩..這要在哪做設定呢??

2 個回答

2
cmwang
iT邦大師 1 級 ‧ 2012-07-30 15:16:41
最佳解答

The unknown-clients flag is used to tell dhcpd whether or not to dynamically assign addresses to unknown clients. Dynamic address assignment to unknown clients is allowed by default. An unknown client is simply a client that has no host declaration.

The use of this option is now deprecated. If you are trying to restrict access on your network to known clients, you should use deny unknown-clients; inside of your address pool, as described under the heading ALLOW AND DENY WITHIN POOL DECLARATIONS.

4
ycl8000
iT邦高手 1 級 ‧ 2012-07-30 11:26:25

若配發的IP範圍是100~110,只有5台PC都有設定MAC,
那其他的也取得到IP.

所以要調整DHCP的IP範圍, 讓數量所設的MAC數量一樣,
這樣沒設定MAC的就取得不到IP.

不過既然已設定某個MAC固定配發IP, 這個IP應該會保留,不會發給其他USER才對.

我要發表回答

立即登入回答