LoginSignup
2
2

More than 5 years have passed since last update.

LVSの設定方法4(補足説明)

Last updated at Posted at 2016-03-05

ロードバランサーの方法にはNat方式とDSR方式がある

Nat方式

セグメントが違う場合はうまくいく
web1のdefault gwをLBのIPに設定する必要がある

スクリーンショット 2016-03-05 23.37.16.png

Nat方式

セグメントが同じ場合はうまくいかない
Hostから見た場合に、sourceとdestinationがrequestした時と、responseの時とで値が違う
request時のresponse時に、sourceとdestinationを入れ替えたら、同じ値にならないと
通信は成り立たない。

request

source destination
192.168.43.60 192.168.43.200

response

source destination
192.168.43.63 192.168.43.60

スクリーンショット 2016-03-05 23.39.46.png

DSR方式

今回、設定した方式
webのループバックアドレスにLBのIPを設定する必要がある
request

source destination
192.168.43.60 192.168.43.200

response

source destination
192.168.43.200 192.168.43.60

スクリーンショット 2016-03-05 23.42.31.png

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2