Á¦ ¸ñ : 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 Á¢¼Ó Å×½ºÆ®