[討論]加入dhcp主機功能

0 views
Skip to first unread message

村仔

unread,
Oct 23, 2009, 2:02:12 AM10/23/09
to Advance CHCG Free software
在電腦教室無法對外連線時
教師仍可啟動DHCP伺服器

以配給學生電腦IP

免得無法上網或對外不通時
上課教師就無法收取學生作業

村仔

unread,
Oct 29, 2009, 11:20:11 AM10/29/09
to Advance CHCG Free software
計畫的相關檔案(己測試並完成)
--------------------------------------------------------------

1.設定機器為192.168.1.254的網路設定檔
/opt/chc/dhcp/interfaces.254

2.設定機器為自動取得IP的網路設定檔
/opt/chc/dhcp/interfaces.dhcp

3.啟動DHCP功能的指令稿
/opt/chc/bin/dhcp_start.sh

4.關閉DHCP功能的指令稿
/opt/chc/bin/dhcp_stop.sh

5.程式啟動捷徑(拷貝至/usr/share/applications/內 )
/opt/chc/sys_menu/chc_edu_start_dhcp.desktop

6.程式關閉捷徑(拷貝至/usr/share/applications/內 )
/opt/chc/sys_menu/chc_edu_stop_dhcp.desktop

7.兩個圖示
/opt/chc/icons/dhcp0.png (關閉)
/opt/chc/icons/dhcp1.png (啟動)


計畫的作法說明
--------------------------------------------------------------

兩個設定檔
interfaces.254 設定網路為192.168.1.254的設定檔
interfaces.dhcp 設定網路為dhcp客戶端的設定檔

啟動時
1.將本機網路停止
2.先將interfaces.254 覆蓋至 /etc/network/interfaces
3.啟動本機網路
4.啟動dhcp3-server

關閉時
1.將本機網路停止
2.停上dhcp3-server
3.先將interfaces.dhcp 覆蓋至 /etc/network/interfaces
4.啟動本機網路

-------------------------------------------------------------


上述部分均以完成

Reply all
Reply to author
Forward
0 new messages