°Ô½Ã¹° 260°Ç
   
[Redhat6.6] DSR lookbakp ¼³Á¤ lo lo:0
±Û¾´ÀÌ : theko ³¯Â¥ : 2015-01-27 (È­) 17:19 Á¶È¸ : 17366
Á¦ ¸ñ : DSR±¸¼ºÀ» À§ÇÑ loopback ¼³Á¤ 

DSR(Direct Server Return)±¸¼ºÀº

1) ÆÐŶÀÌ µé¾î¿Ã ¶§´Â L4½ºÀ§Ä¡³ª ·Îµå ¹ë·±¼­(Load Balancer)¸¦ ÅëÇؼ­ µé¾î¿ÀÁö¸¸, 

2) ÆÐŶÀÌ ³ª°¥ ¶§´Â L4½ºÀ§Ä¡³ª ·Îµå ¹ë·±¼­(Load Balancer)¸¦ °ÅÄ¡Áö ¾Ê°í ¹Ù·Î ³ª°¡´Â ±¸¼ºÀÌ´Ù.
















  




loopback¿ë IP(L4ÀÇ DSR±¸¼º½Ã¿¡ VIP¿¡ ÇØ´ç)°¡ 192.168.123.20À̶ó°í ÇÒ ¶§ ¼³Á¤ ¿¹ÀÌ´Ù.


1. Red Hat Enterprise Linux

1) /etc/sysconfig/network-scripts/ifcfg-lo:0 ¸¦ ¼³Á¤ÇÑ´Ù. 
ifcfg-lo ÆÄÀÏÀ» º¹»çÇؼ­ ¼³Á¤ÇÏ¸é ½±°Ô ÇÒ ¼ö ÀÖ´Ù.

[ Çü½Ä ]

DEVICE=lo:0 IPADDR=< VIP > 
NETMASK=255.255.255.255 
NETWORK=< ³×Æ®¿÷´ë¿ª > 
BROADCAST=< Broadcast IP > onBOOT=yes


[ ¼³Á¤ ¿¹ ]
DEVICE=lo:0 
IPADDR=192.168.123.20 
NETMASK=255.255.255.255  
NETWORK=192.168.123.0 
BROADCAST=192.168.123.255 
onBOOT=yes

À̶§ ÁÖÀÇÇÒ°ÍÀÎ ¼­ºê³Ý¸¶½ºÅ©°¡ 255.255.255.255¿©¾ß ÇѴٴ°̴ϴÙ. ÀÌ·¸°Ô ÇÔÀ¸·Î½á À߸øµÈ LoopbackÁÖ¼Ò¸¦ ºê·Îµåij½ºÆà Çϴ°ÍÀ» ¸·À» ¼öÀÖ½À´Ï´Ù.


2) /etc/sysctl.conf ¿¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù. (ARP¹®Á¦·Î ÀÎÇØ ÇÊ¿ä½Ã. Ä¿³Î 2.6)
net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2 
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2


3) À§¿Í °°ÀÌ ¼³Á¤ ÈÄ Àû¿ëÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.

# ifup lo:0

# sysctl –p


Âü°í : ssh ·Î ´Ù¸¥ ¼­¹ö¿¡ Á¢¼Ó¿Ï·áÈÄ ÀÚ±âÀڽŠHostname ÀÌ º¸ÀÌ¸é ½ÇÆÐÇÑ°ÍÀÓ
       ¼³Á¤ ÈÄ ´Ù¸¥ ¼­¹ö¿¡¼­ ¼³Á¤µÈ ¼­¹ö·Î Ping ¹× ssh Á¢¼Ó Å×½ºÆ®

theko 2015-01-27 (È­) 17:20
http://blog.daum.net/_blog/BlogTypeView.do?blogid=05q6N&articleno=12760768&categoryId=159208&regdt=20100909172114
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com