ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2008年10月22日 星期三

Practice : Linux as Domain Controller - 準備

練習一下,用 Linux 管理 windows 網路。

目前看到最完整的應該是 samba + openldap,大約可以做到 AD 的 程度。
但是很難,所以先作 small business 的部份就好了..

Samba:整合 Windows Network (http://tech.seety.org/debian/SambaConf.html)
使用 virtualbox 來作,一個 vm : debian 4.0 as server,2 個 xp as client。

使用 NAT ?

VirtualBox 中,兩個使用 NAT 的 VM 的 ip address 竟然是相同的 ,而且(所以)不 互通。

使用 Internal Network ?

這樣 兩個 VM 是互通的,但是因為 internal network 中沒有 dhcp ,所以 ip 都要是 static。除非其中一個 vm 裝了 dhcp server。

... 但是因為使用了 Internal Network,所以無法連到外界...所以沒辦法經由 aptitude 安裝package..

除非要在 host interface 模式下,把需要的 package 都裝好,再切到 internal network。

dhcp 裝上去有點危險,萬一在使用 bridge mode時,dhcp server 是打開的,那麼所有網路上的 pc 都會受影響..

所以.. 就用 static ip好了。在 bridge mode 下裝完所有需要的 package...

!!!
有點蠢.. 每個 VM 可以有 3 個網路卡呀。把 debian 那個 VM 設兩個網卡就好了!
Adapter 0 : Host Interface (bridge)
Adapter 1 : Internal Only

啟動後,再手動 configure Adapter 1 (eth1) 就可以了。

沒有留言:

標籤

網誌存檔