[教學][研究] Windows 2008 NLB 網路負載平衡
環境
MS Windows XP (Host OS) + VMware Workstation 7.01
Cluster IP : 192.168.128.40/24
Windows 2008 x86 Standard (VM1)
192.168.128.81/24 Gateway : 192.168.128.2
10.0.0.81/8 Gateway : 不設
Windows 2008 x86 Enterprise (VM2)
192.168.128.91/24 Gateway : 192.168.128.2
10.0.0.91/8 Gateway : 不設
Gateway : 192.168.128.2
兩台都安裝 IIS,各自建立 Default.htm
第一台網頁內容寫 "Server 1"
第二台網頁內容寫 "Server 2"
PS: Windows 2008 至少要 Standard 才開始支援 Network Load Balancing (NLB)
本測試用 Standard 和 Enterprise,看看不同等級是否可以用
--------------------------------------------------
安裝




















--------------------------------------------------
實際測試
在 MS Windows XP (Host OS) 上瀏覽器
http://192.168.128.81/ 可以看到 "Server 1"
http://192.168.128.91/ 可以看到 "Server 2"
http://192.168.128.80/ 只能看到 "Server 1",按 F5 或新開瀏覽器都一樣
就算在 [命令列提示模式] 下,用 arp d 指令清除 arp cache 也是一樣
(但是不會輪流顯示 "Server 1" 和 "Server 2",原因小弟不明)把 VM1 暫停,http://192.168.128.80/ 更新後可以看到 "Server 2"
把 VM1 回復運作,把 VM2 暫停,http://192.168.128.80/,按下 F5 更新能看到 "Server 1"
也就是只要有一台活著,服務就活著。
(完)
_________________
天道循環,生死不昧,真空妙有,還於本然
諦聽我們的靈魂之聲,所有飄零的靈魂,此世虛幻,此生一夢,生者必死
勢不可去盡,話不可說盡,福不可享盡,規矩不可行盡,凡事太盡,緣分勢必早盡
貼圖空間
viewtopic.php?t=8816