그냥 개인 용도로 정리 차원에서 글 올려둡니다.
Loopback 아답터에 L4 VIP를 추가한 다음
Weak Host Model 설정을 위해 명령어를 날려줍니다.
참조할만한 글
http://technet.microsoft.com/en-us/magazine/2007.09.cableguy.aspx
http://technet.microsoft.com/ko-kr/library/bb878108(en-us).aspx
서버의 기존 Real IP 아답터 이름을 service라 가정하고, Loopback 아답터 이름을 loopback이라 가정하면
netsh interface ipv4 set interface "service" weakhostreceive=enabled
netsh interface ipv4 set interface "loopback" weakhostreceive=enabled
netsh interface ipv4 set interface "loopback" weakhostsend=enabled
또한 아래 명령어로 loopback의 메트릭을 254로 지정해 ARP에 응답하지 않도록 설정합니다.
netsh interface ipv4 set interface "loopback" metric=254
이상입니다.
※ 리눅스 설정법
2012/09/25 - [리눅스] - 리눅스 L4 DSR 모드에서 loopback 아답터 설정하기
----------------------------------------------------------------------------------------------
loopback 하드웨어 추가
cmd -> hdwwiz.exe
teaming
netsh interface ipv4 set interface "로컬 영역 연결 7" weakhostreceive=enabled
loopback
netsh interface ipv4 set interface "로컬 영역 연결 9" weakhostreceive=enabled
netsh interface ipv4 set interface "로컬 영역 연결 9" weakhostsend=enabled
----------------------------------------------------------------------------------------------
http://hjtytb.tistory.com/entry/MS-Loopback-Adapter-Windows-Server-200
1. MS loopback adapter 설치
Start → Computer → Right-click, Properties → Device Manager →
Computer Name, Right-click, Add Legacy Hardware → Next →
Install the hardware I manually select from a list → Next ->
Network Adapters → Next
Microsoft on the right, Loopback adapter on the left → Next
2. DSR (Direct Server Return) 구성시 하기 명령어로 설정을 추가 한다.
netsh interface ipv4 set interface "global" weakhostreceive=enabled
netsh interface ipv4 set interface "loopback" weakhostreceive=enabled
netsh interface ipv4 set interface "loopback" weakhostsend=enabled
" " 인터페이스명은 각 서버에 맞게 변경 ㅎ
----------------------------------------------------------------------------------------------
http://www.networkpark.com/170
L4 를 DSR 구성으로 운영시 각 서버에서 Loopback 어댑터를 추가를 해주어 합니다.
Loopback 어댑터 추가 방법
제어판 -> 새하드웨어 추가 -> 네트워크 어댑터 -> Microsoft 에서 선택 가능합니다.
Windows 2008 에서는 아래와 같이 Loopback 어댑터를 추가해도 L4 에서 연결이 되지 않는 경우가 있습니다.
이런 경우 아래와 같이 설정을 추가로 해주어야만 연결이 됩니다. 이부부은 Windows 2008 버전부터 바뀐 사항입니다.
새로운 서버 운영체제에서의 Strong Host Model에 대한 설명은 아래의 링크를 통해 조금 더 자세한 설명을 볼 수 있으니 참조하시기 바랍니다.
http://technet.microsoft.com/en-us/magazine/cc137807.aspx
아래의 " " 안의 Public 과 LoopBack 의 각 서버의 연결정보 이름으로 변경을 해야만 합니다.
netsh interface ipv4 set interface "Public" weakhostreceive=enabled
netsh interface ipv4 set interface "LoopBack" weakhostreceive=enabled
netsh interface ipv4 set interface "LoopBack" weakhostsend=enabled
참고 URL :
http://blog.loadbalancer.org/direct-server-return-on-windows-2008-using-loopback-adpter/
http://forums.kemptechnologies.com/viewtopic.php?f=5&t=8
'네트워크 > 네트워크 공통' 카테고리의 다른 글
TCP_WAIT 에 대한 오해 (0) | 2017.09.18 |
---|---|
[스크랩] L4 SLB + DSR 이론 설명 (Alteon) (0) | 2014.12.08 |
[스크랩] TCP 세션 연결 및 종결 단계 (0) | 2014.07.02 |
[스크랩] L4 DSR 간략이론 및 서버 설정 (리눅스) (0) | 2014.05.22 |
L4 로드밸런싱 알고리즘 (SLB) (0) | 2014.04.21 |