在ACFS10.04安裝DHCP server

1.用apt-get安裝DHCP server套件。
sudo apt-get install dhcp3-server
第一次安裝完套件後,設定檔也設完後,一直無法啟用,出現錯誤。
drop_privileges: could not set group id: Operation not permitted

2.用apt-get移除DHCP server套件。

sudo apt-get remove dhcp3-server

3.用apt-get再安裝DHCP server套件。

sudo apt-get install dhcp3-server

4.設定"/etc/dhcp3/dhcpd.conf"這個檔案(DHCP server要發派的IP範圍和基本網路設定)
sudo vi /etc/dhcp3/dhcpd.conf
ddns-update-style none;
option domain-name "CC";
option domain-name-servers 168.95.192.1, 168.95.1.1;
default-lease-time 3600;
max-lease-time 72000;
log-facility local7;

subnet 172.16.2.0 netmask 255.255.255.0 {
range dynamic-bootp 172.16.2.1 172.16.2.90;
option broadcast-address 172.16.2.255;
option routers 172.16.2.253;
}

5.更改"/etc/default/dhcp3-server"這個檔案(設定要監聽的網卡)
sudo vi /etc/default/dhcp3-server
INTERFACES="eth0"

6. 所有的基本設定完成後,重新啟動DHCP server。
sudo /etc/init.d/dhcp3-server start

參考資料:
http://fayesnote.blogspot.com/2011/03/blog-post.html
http://wiki.ubuntu-tw.org/index.php?title=UbuntuTW_Guide_ch15

留言

這個網誌中的熱門文章

自製簡易結構耐震震動台

HC-05藍芽模組設定