標籤:interface windows linux 本地串連 網路
linux中在lo上綁定vip比較簡單,windows也不難。
首先開啟運行——>輸入hdwwiz會彈出添加裝置:
650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/96/BF/wKioL1klGQ_DCxf3AAG-pL5PO6w145.jpg" style="float:none;" title="搜狗17年05月24日1321_6.jpg" alt="wKioL1klGQ_DCxf3AAG-pL5PO6w145.jpg" />
650) this.width=650;" src="https://s2.51cto.com/wyfs02/M01/96/BE/wKiom1klGRHCHCFKAAEOLL6GbtU622.jpg" style="float:none;" title="搜狗17年05月24日1321_7.jpg" alt="wKiom1klGRHCHCFKAAEOLL6GbtU622.jpg" />
650) this.width=650;" src="https://s4.51cto.com/wyfs02/M01/96/BE/wKiom1klGRTAI32DAAFAF7hTdUI836.jpg" style="float:none;" title="搜狗17年05月24日1321_8.jpg" alt="wKiom1klGRTAI32DAAFAF7hTdUI836.jpg" />
650) this.width=650;" src="https://s4.51cto.com/wyfs02/M01/96/BF/wKioL1klGRrS9I5RAAHjTy818yE044.jpg" style="float:none;" title="搜狗17年05月24日1322_9.jpg" alt="wKioL1klGRrS9I5RAAHjTy818yE044.jpg" />
650) this.width=650;" src="https://s1.51cto.com/wyfs02/M01/96/BF/wKioL1klGSGwCOinAAIoCDrd2r0021.jpg" style="float:none;" title="搜狗17年05月24日1323_10.jpg" alt="wKioL1klGSGwCOinAAIoCDrd2r0021.jpg" />
650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/96/BF/wKioL1klGQrhG6OwAAGBlEtR1iI765.jpg" title="搜狗17年05月24日1323_11.jpg" style="float:none;" alt="wKioL1klGQrhG6OwAAGBlEtR1iI765.jpg" />
在lo中綁定好vip地址以後,還需要做一項工作,至關重要!!!
編寫指令碼:test.bat
@echo offnetsh interface ipv4 set interface "realserver" weakhostreceive=enablednetsh interface ipv4 set interface "realserver" weakhostsend=enablednetsh interface ipv4 set interface "本地串連 2" weakhostreceive=enablednetsh interface ipv4 set interface "本地串連 2" weakhostsend=enabledpause
註:realserver為本機建立lo網路的名稱,本地串連2位網路自動的網路名稱,這兩個名字自行修改即可。
本文出自 “王家東哥” 部落格,謝絕轉載!
lvs負載平衡realserver windows配置