· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Linux MobileIPv6

¿øÀúÀÚ : Lars Strand (lars (at) unik.no)

¹ø¿ªÀÚ : ±è¿µ¹Î (blhole (at) venus.uos.ac.kr)

ÀÌ ¹®¼­´Â [http]Linux Mobile IPv6 HOWTO 2004-04-20ÀÇ ¹ø¿ªÀÔ´Ï´Ù.

1. ¼Ò°³

ÀÌ ¹®¼­´Â ¸®´ª½º¿¡¼­ ¸ð¹ÙÀÏ IPv6¸¦ ¼³Ä¡ÇÏ°í »ç¿ëÇϱâ À§ÇØ ¼ÒÇÁÆ®¿þ¾îµéÀ» ¾î¶»°Ô ±¸¼ºÇÏ´ÂÁö ¼³¸íÇÑ´Ù. [http]Mobility Support in IPv6 draft¿¡ ¸ð¹ÙÀÏ IP°¡ ¹«¾ùÀÌ¸ç ¿Ö ÇÊ¿äÇÑÁö ±â¼úµÇ¾î ÀÖ´Ù.

1.1. ¸ð¹ÙÀÏ IP´Â ¹«¾ùÀΰ¡?

°¢°¢ÀÇ ¸ð¹ÙÀÏ ³ëµå´Â ÀÎÅͳݻóÀÇ ÇöÀç Á¢¼ÓÇØ ÀÖ´Â À§Ä¡¿¡ °ü·Ã¾øÀÌ Ç×»ó home address¸¦ ÀÌ¿ëÇØ Åë½ÅÇÑ´Ù. ¸ð¹ÙÀÏ ³ëµå°¡ Ȩ¿¡¼­ ¹þ¾î³ª ´Ù¸¥ °÷¿¡¼­ ÀÎÅͳÝÀ» »ç¿ëÇÒ ¶§´Â ºÎ°¡ÀûÀ¸·Î ¸ð¹ÙÀÏ ³ëµåÀÇ ÇöÀç À§Ä¡¸¦ ³ªÅ¸³»´Â care-of address¸¦ ºÎ¿© ¹Þ´Â´Ù. ¸ð¹ÙÀÏ ³ëµåÀÇ home address¸¦ ¸ñÀûÁö ÁÖ¼Ò·Î ÇÏ´Â IPv6 ÆÐŶµéÀº ¸ð¹ÙÀÏ ³ëµåÀÇ home agent (HA)¿¡ ÀÇÇØ care-of address·Î º¸³»Áø´Ù. ¸ð¹ÙÀÏ ³ëµå´Â ¸ð¹ÙÀÏ IP ÇÁ·ÎÅäÄÝÀÇ Áö¿øÀ¸·Î ÀÚ½ÅÀÇ home address¿Í care-of addressÀÇ ¸ÊÇÎÁ¤º¸¸¦ À¯ÁöÇÒ ¼ö ÀÖ°í, ÀÌ Á¤º¸¸¦ ÀÌ¿ëÇؼ­ HA¸¦ °ÅÄ¡Áö ¾Ê°í Á÷Á¢ care-of address·Î ÆÐŶÀ» Àü¼ÛÇÒ ¼ö ÀÖ´Ù.

1.2. ¿Ö ¸ð¹ÙÀÏ IP¸¦ »ç¿ëÇØ¾ß Çϴ°¡?

¸ð¹ßÀÏ IP ±â´ÉÀÌ ¾ø¾î IPv6¿¡¼­ ³ëµåÀÇ À̵¿¼ºÀ» Áö¿øÇÏÁö ¸øÇÑ´Ù¸é, ±âº»ÀûÀÎ ¶ó¿ìÆÃÀº ÆÐŶÀÇ ¸ñÀûÁö ÁÖ¼Ò¸¦ Æ÷ÇÔÇÏ´Â ¼­ºê³ÝÀ¸·Î º¸³»Áö¹Ç·Î, ¸ð¹ÙÀÏ ³ëµå(È£½ºÆ® ¶Ç´Â ¶ó¿ìÅÍ)°¡ home link¿¡ ÀÖÁö ¾ÊÀ» °æ¿ì ¸ð¹ÙÀÏ ³ëµå·Î º¸³»Áö´Â ÆÐŶÀ» ¼ö½ÅÇÒ ¼ö ¾ø´Ù. ¸ð¹ÙÀÏ ³ëµå°¡ ´Ù¸¥ link·Î À̵¿ÇÏ´õ¶óµµ °è¼Ó Åë½ÅÀ» À¯ÁöÇϱâ À§Çؼ­ »õ·Î¿î link·Î À̵¿ÇÒ ¶§¸¶´Ù ÇØ´ç ¼­ºê³ÝÁÖ¼Ò¸¦ °¡Áö°í IP ÁÖ¼Ò¸¦ º¯°æÇØ¾ß ÇÑ´Ù. ±×·¯³ª, Àü¼Û °èÃþÀ̳ª »óÀ§ °èÃþÀÇ Åë½ÅÀ» ±×´ë·Î À¯ÁöÇÒ ¼ö´Â ¾øÀ» °ÍÀÌ´Ù. IPv6ÀÇ º¸±ÞÀ¸·Î À̵¿ ÄÄÇ»Å͵éÀ» ´Ã¾î³¯ °ÍÀ̹ǷΠIPv6¿¡¼­ÀÇ À̵¿¼º Áö¿øÀº ¸Å¿ì Áß¿äÇÏ´Ù.

1.3. ¸ð¹ÙÀÏ IPÀÇ µ¿ÀÛ¹æ½Ä


Mobile IP

  • ¸ð¹ÙÀÏ ³ëµå(MN)°¡ ´Ù¸¥(foreign) ³×Æ®¿öÅ©·Î À̵¿ÇÏ°í
»õ·Î¿î care-of-address¸¦ ºÎ¿© ¹Þ´Â´Ù.
  • MNÀÌ ÀÚ½ÅÀÇ HA (home agent) ¿Í binding update¸¦ ¼öÇàÇÑ´Ù
(»õ·Î¿î care-of-address°¡ HA¿¡ µî·ÏµÈ´Ù). HA´Â MN¿¡°Ô bining acknowledgement ¸¦ º¸³½´Ù.
  • CN (Correspondent Node)ÀÌ MN°ú Åë½ÅÇÏ±æ ¿øÇÏ´Â °æ¿ì,
HA°¡ CNÀÌ MN¿¡°Ô º¸³»´Â ÆÐŶÀ» °¡·Îæ´Ù.
  • ÆÐŶÀ» °¡·Îæ ÈÄ HA´Â CN¿¡¼­ MNÀ¸·Î °¡´Â ¸ðµç
ÆÐŶµéÀ» MNÀÇ care-of-address·Î ÅͳθµÇÑ´Ù.
  • MNÀÌ CN¿¡°Ô ÀÀ´äÇÒ °æ¿ì, MNÀº ÇöÀç »ç¿ëÁßÀÎ care-of-address
¸¦ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù. (±×¸®°í CNÀ¸·ÎÀÇ ¹ÙÀεùÀ» ¼öÇàÇÑ´Ù) MNÀº CN°ú Á÷Á¢ Åë½Å(ÃÖÀûÈ­µÈ ¶ó¿ìÆÃ)Çϰųª HA¸¦ ÅëÇØ Åͳθµ ÇÒ ¼öµµ ÀÖ´Ù.

À§ÀÇ ±×¸²°ú ¼³¸íÀ» ÇÔ²² º¸¶ó.

2. IPv6

IP ¹öÀü 6 (IPv6)´Â IP ¹öÀü 4[http]RFC-791ÀÇ Â÷±â ¹öÀüÀ¸·Î ¼³°èµÈ ÀÎÅÍ³Ý ÇÁ·ÎÅäÄÝ(IP)ÀÇ »õ·Î¿î ¹öÀüÀÌ´Ù.

¸ð¹ÙÀÏ IPv6 (MIPv6)°¡ ¾î¶»°Ô µ¿ÀÛÇÏ´ÂÁö¸¦ ¿Ïº®ÇÏ°Ô ÀÌÇØÇϱâ À§Çؼ­´Â IPv6ÀÇ ¹«»óÅ ÀÚµ¿ ÁÖ¼Ò ¼³Á¤¿¡ ´ëÇÑ ±âº»ÀûÀÎ Áö½ÄÀ» °¡Á®¾ß¸¸ ÇÑ´Ù. [http]RFC2462¿¡¼­ IPv6ÀÇ ¹«»óÅ ÀÚµ¿ ÁÖ¼Ò ¼³Á¤ ¿¡ ´ëÇØ Àд °ÍÀ» ±ÇÀåÇÑ´Ù.

ÀϹÝÀûÀÎ IPv6 Á¤º¸¸¦ ¾ò±â À§Çؼ­ [http]IETFÀÇ IPv6 ¿öÅ· ±×·ìÀ» ¹æ¹®Ç϶ó.

3. ¸®´ª½º¸¦ À§ÇÑ ¸ð¹ÙÀÏ IPv6

ÇöÀç ÀÌ¿ë°¡´ÉÇÑ ¸ð¹ÙÀÏ IPv6 ±¸Çö¹°Àº µÎ °¡Áö°¡ Á¸ÀçÇÑ´Ù. ¿µ±¹ÀÇ Lancaster ´ëÇÐ Àº [http]°¡Àå ¿À·¡µÈ(?) MIPv6 ±¸ÇöÀ» º¸À¯ÇÏ°í ÀÖ´Ù. Áö¿øÇÏ´Â °¡Àå ÃÖ±Ù Ä¿³Î ¹öÀüÀº 2.1.90À̸ç, IETF ¸ð¹ÙÀÏ IPv6 draft-v5(ÇöÀç´Â v24)À» ±âÃÊ·Î ±¸ÇöÇÑ ¹öÀüÀÌ´Ù. ÀÌ ±¸ÇöÀº 1998³â ÀÌÈÄ·Î °»½ÅµÈ °ÍÀÌ ÀüÇô ¾øÀ¸¹Ç·Î º» ¹®¼­¿¡¼­´Â °í·ÁÇÏÁö ¾Ê´Â´Ù.

´Ù¸¥ ÃֽŠ±¸ÇöÀº Çï½ÌÅ° ´ëÇÐ (Helsinki University of Technology)ÀÇ MIPL ÇÁ·ÎÁ§Æ®ÀÌ´Ù. Áö¿øÇÏ´Â °¡Àå ÃÖ±ÙÀÇ Ä¿³Î ¹öÀüÀº 2.4.22ÀÌ°í Á¶¸¸°£ Á¤½Ä ¹èÆ÷ÇÒ 2.6Ä¿³ÎÀÇ ÆÐÄ¡µµ °³¹ßÇÏ¿´´Ù(ÀÚÁÖ ÇÏ´Â Áú¹®À» º¸¶ó). °ü·Ã¹®¼­¿Í ¼ÒÇÁÆ®¿þ¾î, °³¹ß °úÁ¤µîÀ» º¼·Á¸é [http]http://www.mobile-ipv6.org¸¦ ¹æ¹®Ç϶ó.

3.1. Ä¿³Î ÆÐÄ¡

MIPL MIPv6 ±¸ÇöÀº Ä¿³Î ÆÐÄ¡¸¦ ¿ä±¸ÇϹǷΠIPv6 Ä¿³ÎÀ» ¼öÁ¤ÇÏ°í Àç ÄÄÆÄÀÏ ÇØ¾ß ÇÑ´Ù. ¼³Ä¡°úÁ¤À» Á¤¸®ÇÑ ¹®¼­´Â Àß µÇ¾î ÀÖÁö¸¸, ¿©±â¼­´Â °£·«ÇÑ ´Ü°èº° ¼³Ä¡¹æ¹ýÀ» Á¦½ÃÇÑ´Ù.

ÁÖ¸ñ! MNÀ» À§ÇÑ Ä¿³Î°ú HA¸¦ À§ÇÑ Ä¿³Î, ÀÌ·¸°Ô µÎ °³ÀÇ Ä¿³ÎÀ» »ç¿ëÇÏ´Â ¹æ½ÄÀº ¿¹Àü ¹æ½ÄÀÌ´Ù. ÇöÀç´Â ÇϳªÀÇ Ä¿³Î¿¡ MN°ú HAÀ» ¸ðµÎ Áö¿øÇÒ ¼ö ÀÖµµ·Ï ÄÄÆÄÀÏ ÇÑ´Ù. ±×·¯³ª, µ¿½Ã¿¡ MN°ú HAÀÇ ¿ªÇÒÀ» ¼öÇàÇÒ ¼ö´Â ¾øÀ¸¸ç, ¾î¶°ÇÑ ¸ðµâÀÌ ¿Ã·ÁÁö´À³Ä¿¡ µû¶ó MNÀ̳ª HAÀÇ ¿ªÇÒÀ» ¼öÇàÇÑ´Ù.

ÇöÀçÀÇ °¡Àå ÃֽŠ¹öÀüÀº mipv6-1.0-v2.4.22ÀÌ´Ù. vÀÌÈÄÀÇ ¸¶Áö¸· ¼ýÀÚ ³× °³´Â Ä¿³ÎÀ» ÆÐÄ¡ÇÒ ¶§ »ç¿ëÇØ¾ß ÇÏ´Â Ä¿³ÎÀÇ ¹öÀüÀÌ´Ù.

  # cd /usr/local/src
  # wget http://www.mobile-ipv6.org/download/mipv6-1.0-v2.4.22.tar.gz
  # tar zxfv mipv6-1.0-v2.4.22.tar.gz
  


  • [http]http://ftp.kernel.org¿¡¼­ ÇØ´çÇÏ´Â Ä¿³Î ¹öÀüÀ» ³»·Á ¹Þ°í È­ÀϵéÀ» Ǭ´Ù.

  # cd /usr/src
  # wget ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.bz2
  # tar jxvf linux-2.4.22.tar.bz2
  # ln -s linux-2.4.22 linux
  # cd linux
  


  • MIPv6 ÆÐÄ¡¸¦ Àû¿ëÇÑ´Ù.

  # patch -p1 --dry-run < /usr/local/src/mipv6-1.0-v2.4.22/mipv6-1.0-v2.4.22.patch
  


--dry-run ¿É¼ÇÀº ÆÐÄ¡ ¸í·ÉÀÌ ¿Ã¹Ù¸£°Ô ¼öÇàµÉ ¼ö ÀÖ´ÂÁö¸¦ °Ë»çÇϱ⸸ ÇÏ´Â ¿É¼ÇÀÌ´Ù. ¿¡·¯ ¸Þ½ÃÁö°¡ Ãâ·ÂµÇ¸é ´ÙÀ½À» ÁøÇàÇÏÁö ¸»°í ¹®Á¦¸¦ ÇØ°áÇ϶ó.

  # patch -p1 < /usr/local/src/mipv6-1.0-v2.4.22/mipv6-1.0-v2.4.22.patch 
  


  • ÇöÀç ¼³Á¤À» À§ÇÑ Ä¿³ÎÆ®¸®°¡ ±¸¼º µÇ¾îÁ³´Ù. ¼±È£ÇÏ´Â make *config ¸í·ÉÀ» ¼öÇàÇ϶ó.
MIPv6 °ü·Ã ¿É¼ÇÀº "Networking Options" ¾Æ·¡¿¡ ÀÖ´Ù. ´ÙÀ½ ¿É¼ÇµéÀÌ ".config" È­ÀÏ¿¡ Á¸ÀçÇØ¾ß ÇÑ´Ù.

  CONFIG_EXPERIMENTAL=y 
  CONFIG_SYSCTL=y 
  CONFIG_PROC_FS=y 
  CONFIG_MODULES=y 
  CONFIG_NET=y 
  CONFIG_NETFILTER=y 
  CONFIG_UNIX=y 
  CONFIG_INET=y 
  CONFIG_IPV6=m
  CONFIG_IPV6_SUBTREES=y
  CONFIG_IPV6_IPV6_TUNNEL=m
  CONFIG_IPV6_MOBILITY=m
  CONFIG_IPV6_MOBILITY_MN=m
  CONFIG_IPV6_MOBILITY_HA=m
  


MIPLÀº ¾ÆÁ÷ ÁøÇàÁßÀÎ ÇÁ·ÎÁ§Æ®À̹ǷΠ´ÙÀ½À» È°¼ºÈ­ÇÏ¿© ¹®Á¦¸¦ ã´Âµ¥ µµ¿òÀ» ¾òÀ» ¼ö ÀÖ´Ù.

  CONFIG_IPV6_MOBILITY_DEBUG=y
  


¹ö±×¸¦ º¸°íÇÒ ¶§ µð¹ö±× ¸Þ½ÃÁö¸¦ ÇÔ²² º¸³»ÁÖ¸é ¸¹Àº µµ¿òÀÌ µÉ °ÍÀÌ´Ù. ¿É¼ÇÀÌ ¿Ã¹Ù¸£°Ô ¼±ÅõǾú´ÂÁö °Ë»çÇϱâ À§Çؼ­ MIPL tarball¿¡ Æ÷ÇÔµÈ ÀÛÀº ½ºÅ©¸³Æ®ÀÎ chkconf_kernel.sh¸¦ ½ÇÇàÇÒ ¼ö ÀÖ´Ù.

  • ´ÙÀ½À¸·Î Ä¿³ÎÀ» ÄÄÆÄÀÏÇÏ°í ¼³Ä¡Ç϶ó.
ÈùÆ®: ±âÁ¸¿¡ »ç¿ëÇÏ´ø Ä¿³ÎÀ» ÆÐÄ¡ÇÑ Ä¿³Î°ú ½±°Ô ±¸º°ÇÒ ¼ö ÀÖµµ·Ï Çϱâ À§ÇØ /usr/src/linux/MakefileÀÇ "EXTRAVERSION"À» ¼öÁ¤ÇÒ ¼ö ÀÖ´Ù. (¿¹: -MIPv6-1)

Ä¿³ÎÀ» ÆÐÄ¡ÇÏ°í ÄÄÆÄÀÏ ÇÏ°í ¼³Ä¡ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¼³¸íÀ» ¾ò°íÀÚ ÇÑ´Ù¸é [http]Linux Kernel HOWTO¸¦ Àоî¶ó.

3.2. »ç¿ëÀÚ Åøµé

¸ðµâÀ» ¿Ã¹Ù¸£°Ô ÀÛµ¿Çϵµ·Ï Çϱâ À§ÇØ »ç¿ëÀÚ ÅøÀÎ mipdiag¿Í config È­Àϵé, init ½ºÅ©¸³Æ®µéÀÌ ¼³Ä¡µÇ¾î¾ß ÇÑ´Ù.

  # cd /usr/local/src/mipv6-1.0-v2.4.22
  # ./configure
  # make && make install
  


3.3. MIPv6 ÀåÄ¡ ³ëµå

MIPv6 ¸ðµâÀº »õ·Î¿î ÀåÄ¡ ³ëµå ¿£Æ®¸®¸¦ ÇÊ¿ä·Î ÇÑ´Ù. ´ÙÀ½ ¸í·ÉÀ» ¼öÇàÇÏ¿© ¹®ÀÚ ÀåÄ¡ (Character Device) ¸¦ Ãß°¡Ç϶ó.

  # mknod /dev/mipv6_dev c 0xf9 0
  


3.4. ÀÚµ¿ ½ÃÀÛ

  • Red Hat:
¸ðµç init ½ºÅ©¸³Æ®´Â ÇØ´çÇÏ´Â /etc/rcX.d/ ¿¡ »ý¼ºµÇ¸ç /etc/init.d ¿¡ ½Éº¼¸¯ ¸µÅ©µéÀ» Ãß°¡·Î »ý¼ºÇÑ´Ù. ½Ã½ºÅÛÀ» ½ÃÀÛÇÒ ¶§ MIPv6¸¦ ÀÛµ¿Çϵµ·Ï Çϱâ À§ÇØ ´ÙÀ½ ¸í·ÉÀ» ÀÌ¿ëÇ϶ó.

  # chkconfig --add mobile-ip6
  


½Ã½ºÅÛÀ» ½ÃÀÛÇÒ ¶§ MIPv6¸¦ ÀÛµ¿ÇÏÁö ¾Êµµ·Ï Çϱâ À§ÇØ ´ÙÀ½ ¸í·ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.

  # chkconfig --del mobile-ip6
  


  • Debian:
DebianÀ» ¼±È£ÇÑ´Ù¸é, ´ÙÀ½ ¸í·ÉÀ» ÀÌ¿ëÇÏ¿© ÇÊ¿äÇÑ ¸ðµç ¸µÅ©µéÀ» »ý¼ºÇÒ ¼ö ÀÖ´Ù.

  # update-rc.d -n mobile-ip6 start 75 3 4 5 . stop 05 1 2 6 .
  


  • Slackware:
Slackware¿¡¼­´Â ¸ðµç startup/runlevel ½ºÅ©¸³Æ®µéÀÌ /etc/rc.d¿¡ µé¾îÀÖ´Ù. 'configure'°¡ "/etc/rc.d"¸¦ °Ë»çÇÏÁö ¾ÊÀ¸¹Ç·Î INIT_SLACK="/etc/rc.d" ¸¦ Ãß°¡ÇÑ ÈÄ 'configure'¾ÈÀÇ INITDIRS¸¦ ã¾Æ¼­ INIT_SLACKÀ» Ãß°¡Ç϶ó. Slackware »ç¿ëÀÚ¶ó¸é ÀÌ¹Ì ÀÌ °úÁ¤ÀÌ ÇÊ¿äÇÑ °ÍÀ» ¾Ë°í ÀÖÀ» °ÍÀÌ´Ù. ´ÙÀ½ ¸í·ÉÀ» ÀÌ¿ëÇØ ÀÚµ¿ ½ÃÀÛÀ» ¼³Á¤ÇÑ´Ù.

  # echo '/etc/rc.d/mobile-ip6 start' >> /etc/rc.d/rc.local
  


MakefileÀ» Á÷Á¢ ¼öÁ¤ÇÏÁö ¾ÊÀ¸¸é '/'¿¡ mobile-ipv6 ½ºÅ©¸³Æ®°¡ ¼³Ä¡µÇ¹Ç·Î "/etc/rc.d/"·Î ¿Å°Ü ³õÀ¸¸é µÈ´Ù.

4. ½ÇÁ¦·Î ¸ð¹ÙÀÏ IPv6 ³×Æ®¿öÅ© ¸¸µé±â

ÀÌÁ¦ Á¤»óÀûÀ¸·Î ¼³Ä¡µÈ MIPL ÆÐÄ¡ Ä¿³Î°ú »ç¿ëÀÚ Åøµé, ºÎÆÃÇÒ ¶§ ÀÚµ¿À¸·Î ¸ð¹ÙÀÏ IPv6¸¦ ½ÃÀÛÇÒ ¼ö ÀÖ´Â ¼³Á¤ÀÌ °®Ãß¾îÁ® ÀÖ´Ù. ¸¸ÀÏ ¾ÆÁ÷µµ ¹®Á¦¸¦ °¡Áö°í ÀÖ´Ù¸é ¾Õ Àý·Î °¡¼­ ¹®Á¦¸¦ ÇØ°áÇ϶ó.

4.1. ³×Æ®¿öÅ© ±¸¼º

º» ½ÇÇè¿¡¼­´Â site-local IPv6 ÁÖ¼Ò¸¦ »ç¿ëÇÑ´Ù. Global ÁÖ¼Òµµ »ç¿ëÇÒ ¼ö ÀÖÁö¸¸ link local ÁÖ¼Ò¸¦ »ç¿ëÇÏ¸é ¸ð¹ÙÀÏ IPv6°¡ µ¿ÀÛÇÏÁö ¾ÊÀ½À» ÁÖÀÇÇ϶ó. ½ÇÇèÀ» À§ÇÑ ³×Æ®¿öÅ©´Â ³× °³ÀÇ ³ëµå·Î ±¸¼ºµÇ¸ç, ±×¸² "Mobile IPv6 testbed"¸¦ º¸¶ó.

  • HA - Home Agent: ÇϳªÀÇ ÀÎÅÍÆäÀ̽º¸¦ °¡Áö¸ç, ÁÖ¼Ò´Â fec0:106:2700::2ÀÌ°í
home network¿¡ À§Ä¡ÇÑ´Ù.

  • MN - Mobile Node: MNÀÇ ÁÖ¼Ò´Â home network¿¡ ÀÖÀ» ¶§ fec0:106:2700::4·Î ÇÏ°í
´Ù¸¥ ³×Æ®¿öÅ©·Î À̵¿ÇÏ¿´À» °æ¿ì¿¡´Â »õ·Î¿î care-of address¸¦ ºÎ¿© ¹Þ´Â´Ù.

  • R-Router: Home networkÀ» ÀÎÅͳÝÀ¸·Î ¿¬°áÇØ ÁÖ´Â ¶ó¿ìÅÍ. ¹«¼± ÀÎÅÍÆäÀ̽ºÀÇ
ÁÖ¼Ò´Â fec0:106:2700::1 ÀÌ°í À¯¼± ÀÎÅÍÆäÀ̽ºÀÇ ÁÖ¼Ò´Â fec0:106:2300::2 ÀÌ´Ù.

  • AR - Access Router: AR°ú R »çÀÌÀÇ ¸µÅ©¸¦ ÀÎÅÍ³Ý ±¸¸§À¸·Î º¼ ¼ö ÀÖÀ¸³ª,
½ÇÇè¿¡¼­´Â Å©·Î½º ÄÉÀ̺í·Î Á÷Á¢ ¿¬°áÇÑ´Ù. R°ú ¿¬°áµÇ´Â ARÀÇ À¯¼± ÀÎÅÍÆäÀ̽º ÁÖ¼Ò´Â fec0:106:2300::1 À̸ç, ¹«¼± ÀÎÅÍÆäÀ̽º ÁÖ¼Ò´Â fec0:106:1100::1 ÀÌ´Ù.


Mobile IPv6 testbed

4.2. ´Ü°èº° ¼³Á¤


4.2.1. ¿Ïº®ÇÑ IPv6 ³×Æ®¿öÅ© ¼³Á¤

¸ð¹ÙÀÏ IP ½ÇÇèÀ» ½ÃÀÛÇϱâ Àü¿¡ ¿Ïº®ÇÑ IPv6 ³×Æ®¿öÅ©¸¦ ¼³Á¤ÇØ¾ß ÇÑ´Ù. °¡´ÉÇÑ ¸ðµç ³ëµåµéÀÇ Á¶ÇÕÀÌ ping6¸¦ ÀÌ¿ëÇØ Åë½Å °¡´ÉÇÑÁö È®ÀÎ ÇØ¾ß ÇÑ´Ù. ÀÌ °úÁ¤Àº ¸Å¿ì Áß¿äÇѵ¥, ¸¸ÀÏ ARÀÌ HA¿¡°Ô ping6¸¦ ÀÌ¿ëÇÑ Åë½Å¿¡ ½ÇÆÐÇÑ´Ù¸é ¸ð¹ÙÀÏ IP ½ÇÇè¿¡¼­ ¾î¶°ÇÑ binding updateµµ ½ÇÇàµÇÁö ¾ÊÀ» °ÍÀÌ´Ù.

º» HOWTO¿¡¼­´Â IPv6 ³×Æ®¿öÅ©¸¦ ±¸¼ºÇÏ°í µ¿ÀÛÇϵµ·Ï ¸¸µé±â À§ÇÑ °£·«ÇÑ ¹æ¹ý¸¸À» Á¦½ÃÇÑ´Ù. IPv6 ³×Æ®¿öÅ©¸¦ ±¸¼ºÇϱâ À§ÇÑ ´õ ÀÚ¼¼ÇÑ ¼³¸íÀº Peter BieringerÀÇ [http]Linux IPv6 HOWTO¸¦ º¸¶ó.

º» HOWTO¿¡¼­´Â ´Ü¼øÇÔÀ» À§ÇØ IPv6ÀÇ º¸¾È±â´É(encryption)Àº °í·ÁÇÏÁö ¾ÊÁö¸¸, ½ÇÁ¦ »óȲ¿¡¼­ ¹«¼± ³×Æ®¿öÅ©¸¦ ÀÌ¿ëÇÒ ¶§´Â ¹Ýµå½Ã º¸¾È±â´ÉÀ» ÀÌ¿ëÇؾ߸¸ ÇÑ´Ù.

¶ÇÇÑ, ³×Æ®¿öÅ©°¡ ´Ù¸£¸é ESSIDµµ ´Ù¸£´Ù´Â »ç½ÇÀ» À¯³äÇ϶ó.

  • MN: MNÀº ¹«¼± ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º Çϳª¸¦ °¡Áö¸ç, Æ÷¿öµù ±â´ÉÀ» ²¨¾ß ÇÏ°í,
ÁÖ¼Ò ÀÚµ¿ ¼³Á¤°ú ¶ó¿ìÅÍ¿¡¼­ ÁÖ±âÀûÀ¸·Î Àü¼ÛÇÏ´Â Á¤º¸ (Router Advertisement) ¸¦ ¹ÞÀ» ¼ö ÀÖ¾î¾ß ÇÑ´Ù(should accept autoconf and ra's):

          # iwconfig eth0 mode ad-hoc essid homenet enc off
          # ifconfig eth0 inet6 add fec0:106:2700::4/64
          # echo "0" > /proc/sys/net/ipv6/conf/eth0/forwarding
          # echo "1" > /proc/sys/net/ipv6/conf/eth0/autoconf
          # echo "1" > /proc/sys/net/ipv6/conf/eth0/accept_ra
          # echo "1" > /proc/sys/net/ipv6/conf/eth0/accept_redirects
          # /etc/init.d/mobile-ip6 start
  


  • HA: HAµµ ¹«¼± ÀÎÅÍÆäÀ̽º Çϳª¸¦ °¡Áö¸ç, ¹«¼± ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ ¼ö½ÅµÈ ÆÐŶÀ»
°¡»óÀÇ ÅͳΠÀÎÅÍÆäÀ̽º·Î Àü´ÞÇÏ´Â °úÁ¤¿¡¼­ Á¤»óÀûÀÎ ¶ó¿ìÆà ±â´ÉÀ» »ç¿ëÇϹǷΠÆ÷¿öµù ±â´ÉÀ» ÄÑ ÁÖ¾î¾ß ÇÑ´Ù. ÁÖ¸ñ: HA°¡ ´Ù¸¥ ³×Æ®¿öÅ©·Î À̵¿ÇÑ MN°ú Åë½ÅÇÒ ¼ö ÀÖÀ¸¹Ç·Î home networkÀÇ default routeÀ¸·Î RÀ» »ç¿ëÇϵµ·Ï Çß´Ù.

          # iwconfig eth0 mode ad-hoc essid homenet enc off
          # ifconfig eth0 inet6 add fec0:106:2700::2/64
          # echo "1" > /proc/sys/net/ipv6/conf/eth0/forwarding
          # echo "0" > /proc/sys/net/ipv6/conf/eth0/autoconf
          # echo "0" > /proc/sys/net/ipv6/conf/eth0/accept_ra
          # echo "0" > /proc/sys/net/ipv6/conf/eth0/accept_redirects
          # ip route add ::/0 via fec0:106:2700::1
          # /etc/init.d/mobile-ip6 start
  


  • R: ¶ó¿ìÅÍ RÀº ¹«¼±°ú À¯¼± °¢ Çϳª¾¿ÀÇ ÀÎÅÍÆäÀ̽º¸¦ °®´Â´Ù. RÀº Æ÷¿öµù ±â´ÉÀ» ÄÑ ÁÖ¾î¾ß
ÇÑ´Ù.

          # ifconfig eth0 inet6 add fec0:106:2300::2/64
          # iwconfig eth1 mode ad-hoc essid homenet enc off
          # ifconfig eth1 inet6 add fec0:106:2700::1/64
          # echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
          # echo "0" > /proc/sys/net/ipv6/conf/all/autoconf
          # echo "0" > /proc/sys/net/ipv6/conf/all/accept_ra
          # echo "0" > /proc/sys/net/ipv6/conf/all/accept_redirects
          # ip route add fec0:106:1100::/64 via fec0:106:2300::1
  


  • AR: AR ¶ÇÇÑ ¹«¼±°ú À¯¼± °¢ Çϳª¾¿ÀÇ ÀÎÅÍÆäÀ̽º¸¦ °¡Áö¸ç, Æ÷¿öµù ±â´ÉÀ» ÄÑ ÁÖ¾î¾ß
ÇÑ´Ù.

          # ifconfig eth0 inet6 add fec0:106:2300::1/64
          # iwconfig eth1 mode ad-hoc essid visitnet enc off
          # ifconfig eth1 inet6 add fec0:106:1100::1/64
          # echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
          # echo "0" > /proc/sys/net/ipv6/conf/all/autoconf
          # echo "0" > /proc/sys/net/ipv6/conf/all/accept_ra
          # echo "0" > /proc/sys/net/ipv6/conf/all/accept_redirects
          # ip route add fec0:106:2700::/64 via fec0:106:2300::2
  


proc º¯¼öµéÀ» º¯°æÇÏ´Â ´ë½Å¿¡ sysctlÀ» »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.

ÁÖ¸ñ: º» ½ÇÇè ȯ°æÀº Á¤ÀûÀÎ °æ·Î ¼³Á¤À» ÀÌ¿ëÇÑ´Ù. À§ÀÇ ¼³Á¤ÀÌ ¸ðµÎ ÀÌ·ç¾îÁö¸é °¡´ÉÇÑ ¸ðµç È£½ºÆ®µéÀÇ Á¶ÇÕ¿¡ ´ëÇØ ping6°¡ °¡´ÉÇÒ °ÍÀÌ´Ù.

4.2.2. ¸ð¹ÙÀÏ IPv6 ¼³Á¤

MIPv6 ¼³Á¤Àº network-mip6.conf¿¡¼­ ÀÌ·ç¾îÁø´Ù. Debian°ú slackware´Â /etc/¿¡ ¼³Á¤È­ÀÏÀÌ ÀÖ°í redhatÀº /etc/sysconfig/ ¾Æ·¡¿¡¼­ ¼³Á¤È­ÀÏÀ» ãÀ» ¼ö ÀÖ´Ù. ¼³Á¤È­ÀÏ¿¡´Â ÁÖ¼®ÀÌ Àß Ã·ºÎµÇ¾î ÀÖ¾î ¼³Á¤Çϱ⠾î·ÆÁö ¾ÊÀ» °ÍÀÌ´Ù.

  • HA: HA¸¦ ¼³Á¤Çϱâ À§ÇÑ È­ÀÏÀº ´ÙÀ½ ³»¿ëÀ» Æ÷ÇÔÇØ¾ß ÇÑ´Ù.

    # cat /etc/network-mip6.conf
    
    # Home Agent configuration file
    FUNCTIONALITY=ha
    DEBUGLEVEL=1
    MIN_TUNNEL_NR=1
    MAX_TUNNEL_NR=5
    TUNNEL_SITELOCAL=yes
  


  • MN: MNÀ» ¼³Á¤Çϱâ À§ÇÑ È­ÀÏÀº ´ÙÀ½°ú °°´Ù.

     # cat /etc/network-mip6.conf

     # Mobile Node configuration file
     FUNCTIONALITY=mn
     DEBUGLEVEL=1
     TUNNEL_SITELOCAL=yes
     MIN_TUNNEL_NR=1
     MAX_TUNNEL_NR=3
     HOMEDEV=mip6mnha1     
     HOMEADDRESS=fec0:106:2700::4/64  # MN's home adress
     HOMEAGENT=fec0:106:2700::2/64    # HA's address
  


  • ´ÙÀ½À¸·Î ¸ð¹ÙÀÏ IP¸¦ ½ÃÀÛÇ϶ó.

    # /etc/init.d/mobile-ip6 start
    Starting Mobile IPv6: OK
  


HA°¡ Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ´ÂÁö ¾Ë¾Æº¸±â À§ÇØ HA¿¡¼­ ifconfig ¸í·ÉÀ» ½ÇÇà½ÃŲ´Ù. ip6tnl1°ú °°Àº ÅͳÎÀÌ Çϳª ÀÌ»ó »ý¼ºµÇ¾ú´Ù¸é mobile-ipv6°¡ ½ÃÀÛµÈ °ÍÀÌ´Ù.

 # ifconfig
 eth1     Link encap:Ethernet  HWaddr 00:02:2D:2D:DE:79  
          inet6 addr: fec0:106:2700::2/64 Scope:Site
          inet6 addr: fe80::202:2dff:fe2d:de79/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:618 errors:6 dropped:6 overruns:0 frame:6
          TX packets:1485 errors:22 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:87914 (85.8 KiB)  TX bytes:252596 (246.6 KiB)
          Interrupt:3 Base address:0x100 

 ip6tnl1  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 (1)
          UP POINTOPOINT RUNNING NOARP  MTU:1460  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:576 (576.0 b)  TX bytes:624 (624.0 b)

 ip6tnl2  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 (2)
          UP RUNNING NOARP  MTU:1460  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

 lo       Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)


(1) ÅͳÎÀÌ È°¼ºÈ­ µÇ¾úÀ¸¸ç ¿¬°áµéÀ» À§ÇÑ Áغñ°¡ °®Ãß¾î Á³À½. (The tunnel is up and ready for connections.)

(2) ¶Ç ´Ù¸¥ ÅͳÎÀÌ Áغñ »óÅÂÀÓ.

MN¿¡¼­´Â mipv6 Ä¿³Î ¸ðµâÀÌ ¿Ã·ÁÁø °ÍÀ» º¼ ¼ö ÀÖ´Ù.

    # lsmod
    Module                  Size  Used by    Not tainted
    mip6_mn                59888   0  (unused)
    ipv6_tunnel            11448   1  [mip6_mn]
    mip6_base              40728   0  [mip6_mn]
    ipv6                  179764  -1  [mip6_mn ipv6_tunnel mip6_base]
    ...


4.2.3. AR¿¡¼­ radvd ¼³Á¤

MNÀÌ »õ·Î¿î ³×Æ®¿öÅ©·Î À̵¿ÇßÀ» ¶§, link-local ÁÖ¼Ò ¼³Á¤À» ½ÃµµÇÏ°í ¼º°øÇÏ¸é ´ÙÀ½ °úÁ¤À» ¼öÇàÇÑ´Ù. ´ÙÀ½ °úÁ¤Àº [http]RFC2462¿¡ ¼³¸íµÇ¾î ÀÖ´Â ³»¿ëÀÌ´Ù(I'll let RFC2462 (IPv6 Stateless Address Autoconfiguration) describe the next phase) :

"ÁÖ¼Ò ÀÚµ¿ ¼³Á¤ÀÇ ´ÙÀ½ °úÁ¤Àº Router Advertisement(RA)¸¦ ¼ö½ÅÇϰųª RA¸¦ °Ç³»ÁÙ ¾î¶°ÇÑ ¶ó¿ìÅ͵µ ¾ø´Â µÎ °¡Áö »óȲ¿¡¼­ ½ÃÀÛÇÑ´Ù. ¶ó¿ìÅÍ°¡ Á¸ÀçÇÑ´Ù¸é, È£½ºÆ®¿¡¼­ ¾î¶°ÇÑ ÁÖ¼Ò ÀÚµ¿ ¼³Á¤À» ¼öÇàÇØ¾ß ÇÏ´ÂÁö¸¦ ¾Ë·ÁÁÖ´Â RA¸¦ º¸³¾ °ÍÀÌ´Ù. ¾î¶°ÇÑ ¶ó¿ìÅ͵µ Á¸ÀçÇÏÁö ¾Ê´Â´Ù¸é, ÀÌ¹Ì Á¤ÇØÁø Á¤º¸¿¡ ÀÇÇÑ ÁÖ¼Ò ¼³Á¤(stateful autoconfiguration)ÀÌ ÀÌ·ç¾î Áú °ÍÀÌ´Ù."

"¶ó¿ìÅ͵éÀº ÁÖ±âÀûÀ¸·Î RAµéÀ» Àü¼ÛÇÑ´Ù. ±×·¯³ª ¿¬¼ÓÇÑ µÎ RA°£ÀÇ Áö¿¬½Ã°£ÀÌ ³ëµå°¡ ÁÖ¼Ò¸¦ ÀÚµ¿ ¼³Á¤Çϱâ À§ÇØ ±â´Ù¸± ¼ö ÀÖ´Â ½Ã°£º¸´Ù ±æ °ÍÀ̹ǷÎ, ºü¸£°Ô RA¸¦ ¾ò±â À§Çؼ­ È£½ºÆ®µéÀº "all-routers multicast group" ÁÖ¼Ò·Î Çϳª ÀÌ»óÀÇ "Router Solicitation" ¸Þ½ÃÁö¸¦ º¸³½´Ù. "

º» ÀýÀº [http]RADVD¸¦ »ç¿ëÇÑ´Ù.

"IPv6 Stateless Address Autoconfiguration"¿¡ °üÇÑ ´õ »ó¼¼ÇÑ Á¤º¸¸¦ ¾ò°íÀÚ ÇÑ´Ù¸é [http]RFC2462¸¦ Àоî¶ó.

ÀÌÁ¦ ARÀÇ ¹«¼± ÀÎÅÍÆäÀ̽º¿¡ RADVD¸¦ ¼³Á¤ÇÒ °ÍÀÌ´Ù. radvd.conf´Â ´ÙÀ½À» Æ÷ÇÔÇؾ߸¸ ÇÑ´Ù.

    # cat /etc/radvd.conf
    interface eth1
    {
          AdvSendAdvert on;
          AdvIntervalOpt on;

          MinRtrAdvInterval 3;
          MaxRtrAdvInterval 10;
          AdvHomeAgentFlag off;

          prefix fec0:106:1100::/64
          {
              AdvOnLink on;
              AdvAutonomous on;
              AdvRouterAddr on;
          };
    };


±×¸®°í ³ª¼­ radvd¸¦ ½ÃÀÛÇÑ´Ù.

    # /etc/init.d/radvd start


radvd ¸Þ½ÃÁöµéÀÌ ÁÖ±âÀûÀ¸·Î º¸³»¾îÁö°í ÀÖ´ÂÁö È®ÀÎÇϱâ À§Çؼ­ radvdump ¸í·ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.

    # radvdump
    Router advertisement from fe80::202:2dff:fe54:d1b2 (hoplimit 255)
    Received by interface eth1
          # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
          AdvCurHopLimit: 64
          AdvManagedFlag: off
          AdvOtherConfigFlag: off
          AdvHomeAgentFlag: off
          AdvReachableTime: 0
          AdvRetransTimer: 0
          Prefix fec0:106:1100::/64
                  AdvValidLifetime: 2592000
                  AdvPreferredLifetime: 604800
                  AdvOnLink: on
                  AdvAutonomous: on
                  AdvRouterAddr: off
          AdvSourceLLAddress: 00 02 2D 54 D1 B2


ÁÖ¸ñ! HA¿¡¼­ radvd¸¦ »ç¿ëÇÏ°í proc¿¡¼­ autoconf¸¦ È°¼ºÈ­ ÇßÀ» ¶§, MN¿¡ Á÷Á¢ ¼³Á¤ÇÑ ÁÖ¼Ò ÀÌ¿Ü¿¡ ÀÚµ¿À¸·Î IPv6 ÁÖ¼Ò°¡ ¼³Á¤µÇÁö¸¸ ¹«½ÃÇصµ µÈ´Ù.(which is superfluous)

4.2.4. HA¿¡¼­ radvd ¼³Á¤

MNÀÌ home network¿¡ ÀÖ´ÂÁö¸¦ ¾Ë ¼ö ÀÖµµ·Ï Çϱâ À§ÇØ, HAµµ RAµéÀ» Àü¼ÛÇؾ߸¸ ÇÑ´Ù. HAÀÇ /etc/radv.conf´Â ´ÙÀ½°ú °°´Ù.

     # cat /etc/radvd.conf
     interface eth0
     {
        AdvSendAdvert on;
        MaxRtrAdvInterval 3;
        MinRtrAdvInterval 1;
        AdvIntervalOpt off;
        AdvHomeAgentFlag on;
        HomeAgentLifetime 10000;
        HomeAgentPreference 20;
        AdvHomeAgentInfo on;
        prefix fec0:106:2700::2/64
        {
          AdvRouterAddr on;
          AdvOnLink on;
          AdvAutonomous on;
          AdvPreferredLifetime 10000;
          AdvValidLifetime 12000;
        };
      };


radvd ¸Þ½ÃÁöµéÀÌ Àü¼ÛµÇ°í ÀÖ´ÂÁö È®ÀÎÇϱâ À§ÇØ radvdump ¸í·ÉÀ» ÀÌ¿ëÇÑ´Ù.

    # radvdump 
    Router advertisement from fe80::202:2dff:fe54:d11e (hoplimit 255)
    Received by interface eth0
        # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
        AdvCurHopLimit: 64
        AdvManagedFlag: off
        AdvOtherConfigFlag: off
        AdvHomeAgentFlag: on
        AdvReachableTime: 0
        AdvRetransTimer: 0
        Prefix fec0:106:2700::2/64
                AdvValidLifetime: 12000
                AdvPreferredLifetime: 10000
                AdvOnLink: on
                AdvAutonomous: on
                AdvRouterAddr: on
        AdvSourceLLAddress: 00 02 2D 54 D1 1E 
        AdvHomeAgentInfo:
                HomeAgentPreference: 20
                HomeAgentLifetime: 1000
    
 
    # ifconfig eth0
    eth0  Link encap:Ethernet  HWaddr 00:90:7D:F3:03:1A  
          inet6 addr: fec0:106:2700:0:290:7dff:fef3:31a/64 Scope:Site (1)
          inet6 addr: fec0:106:2700::4/64 Scope:Site                  (2)
          inet6 addr: fe80::290:7dff:fef3:31a/64 Scope:Link           (3)
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:513 errors:89 dropped:89 overruns:0 frame:85
          TX packets:140 errors:41 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:56084 (54.7 Kb)  TX bytes:19212 (18.7 Kb)
          Interrupt:3 Base address:0x100


(1) »õ·Ó°Ô(superfluous) ÀÚµ¿À¸·Î ¾ò¾îÁø ÁÖ¼Ò. /proc/sys/net/ipv6/conf/eth0/autoconf À» 1·Î ¼³Á¤Çϸé MNÀº HAÀÇ prefix¿Í ÀÚ½ÅÀÇ MAC ÁÖ¼Ò¸¦ ÀÌ¿ëÇؼ­ »õ·Î¿î ÁÖ¼Ò¸¦ »ý¼ºÇÑ´Ù. ÀÌ ÁÖ¼Ò°¡ »ý±âÁö ¾Êµµ·Ï ÇÏ´Â ¹æ¹ýÀº ¾ø´Â °Í °°´Ù.

(2) Á÷Á¢ ¼³Á¤ÇÑ IPv6 ÁÖ¼Ò

(3) ºÎÆÃÇÒ ¶§ »ý¼ºµÈ link-local ÁÖ¼Ò

5. ¸ð¹ÙÀÏ IP ±â´É È®ÀÎ


5.1. Áغñ

ÀÌ Àý ¾ÕÀÇ ¸ðµç ¼³Á¤µéÀÌ ¿Ï·áµÇ¾î¾ß ÇÑ´Ù. ƯÈ÷ home network°ú visited network¿¡¼­ MNÀÌ ´Ù¸¥ ESSID °ªÀ» °®µµ·Ï ÇØ¾ß ÇÑ´Ù´Â »ç½ÇÀÌ Áß¿äÇÏ´Ù.

MN¿¡¼­ mobile-IPv6¸¦ ½ÃÀÛÇϸé "multicasting router solicitation" ¸Þ½ÃÁöµéÀ» º¼ ¼ö ÀÖ´Ù.

      # tcpdump -i eth0 -vv ip6 or proto ipv6

      ...
      13:32:54.681763 fe80::202:a5ff:fe6f:a08a > ff02::2: icmp6: router solicitation \
      (src lladdr: 0:2:a5:6f:a0:8a) (len 16, hlim 255)

      13:32:55.681763 fe80::202:a5ff:fe6f:a08a > ff02::2: icmp6: router solicitation \
      (src lladdr: 0:2:a5:6f:a0:8a) (len 16, hlim 255)

      13:32:57.681765 fe80::202:a5ff:fe6f:a08a > ff02::2: icmp6: router solicitation \
      (src lladdr: 0:2:a5:6f:a0:8a) (len 16, hlim 255)
      ...


5.2. À̵¿ °¨Áö

ÀϹÝÀûÀÎ À̵¿ °¨Áö´Â ´õ ÀÌ»ó ¾ç¹æÇâ Åë½ÅÀÌ °¡´ÉÇÑ default router°¡ ¾ø´Â »óȲÀ» °¨ÁöÇÏ´Â "Neighbor Unreachability Detection"À» ÅëÇØ ÀÌ·ç¾îÁø´Ù. ¾ç¹æÇâ Åë½ÅÀÌ °¡´ÉÇÑ default router°¡ ¾ø¾îÁö¸é, MNÀº »õ·Î¿î default router¸¦ ã¾Æ¾ß¸¸ Çϸç, º¸Åë »õ·Î¿î ³×Æ®¿öÅ©ÀÇ default router¸¦ ¹ß°ßÇÑ´Ù.

³ëµå À̵¿Áß¿¡ ¹«½¼ ÀÏÀÌ ÁøÇàµÇ´ÂÁö¸¦ »ìÆ캸±â À§ÇØ ´ÙÀ½ÀÇ ¸í·É¾îµé °¢°¢¿¡ ´ëÇØ Å͹̳ÎÀ» ¶ç¿ì°í ¸í·ÉÀ» ½ÇÇà½ÃŲ´Ù.

      # watch ifconfig eth0
      # watch route -A inet6
      # tcpdump -i eth0 -vv ip6 or proto ipv6


»õ·Î¿î ³×Æ®¿öÅ©·Î À̵¿ÇÏ´Â È¿°ú¸¦ ÁÖ±â À§Çؼ­ MN¿¡¼­ ´ÙÀ½ ¸í·ÉÀ» ½ÇÇàÇ϶ó.

      # iwconfig eth1 essid visitnet


MNÀÌ »õ·Î¿î ³×Æ®¿öÅ©·Î À̵¿ÇÏ°í ³ª¼­ "router solicitation"¸Þ½ÃÁö¸¦ º¸³»¹Ç·Î, À̸¦ ¼ö½ÅÇÑ ARÀÌ ÀÖÀ¸¸é ÀÚ½ÅÀÇ prefix¸¦ ÀÌ¿ëÇØ ÀÀ´äÇÒ °ÍÀÌ´Ù. AR·ÎºÎÅÍ RA¸¦ ¹ÞÀº MNÀº ¼ö½ÅÇÑ prefix Á¤º¸¿Í ÀÚ½ÅÀÇ MAC ÁÖ¼Ò¸¦ ÀÌ¿ëÇÏ¿© »õ·Î¿î IPv6 ÁÖ¼Ò¸¦ ÇÒ´çÇÑ´Ù. "ifconfig eth0" ¸í·ÉÀ» ¼öÇàÇϸé, »õ·Î¿î IPv6 ÁÖ¼Ò¸¦ º¼ ¼ö ÀÖ´Ù.

    # ifconfig eth0
    eth0  Link encap:Ethernet  HWaddr 00:90:7D:F3:03:1A  
          inet6 addr: fec0:106:1100:0:290:7dff:fef3:31a/64 Scope:Site (1)
          inet6 addr: fec0:106:2700:0:290:7dff:fef3:31a/64 Scope:Site (2)
          inet6 addr: fec0:106:2700::4/64 Scope:Site                  (3)
          inet6 addr: fe80::290:7dff:fef3:31a/64 Scope:Link           (4)
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:854 errors:154 dropped:154 overruns:0 frame:148
          TX packets:293 errors:58 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:96536 (94.2 Kb)  TX bytes:44664 (43.6 Kb)
          Interrupt:3 Base address:0x100


(1) ARÀÇ prefix¿Í ÀÚ½ÅÀÇ MACÁÖ¼Ò¸¦ ÀÌ¿ëÇØ »ý¼ºµÈ »õ·Î¿î "foreign" ÁÖ¼Ò

(2) "Superfluous" home network ÁÖ¼Ò (ÂüÀ¸·Î ¼³Á¤µÈ HA radvd ¸Þ½ÃÁö¿Í MNÀÇ autoconf ±â´É¿¡ ÀÇÇØ »ý¼º)

(3) ¿ø·¡ home address

(4) link-local ÁÖ¼Ò

°ÅÀÇ µ¿½Ã¿¡ MNÀº HA¿ÍÀÇ binding update¸¦ ¼öÇàÇÒ °ÍÀÌ´Ù. tcpdump¸¦ ¼öÇàÇÑ Ã¢¿¡¼­ HA·Î º¸³»Áö´Â ¸î ¸î ÆÐŶµéÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù. HA°¡ Binding update°¡ º¸³»°í MNÀ¸·Î ºÎÅÍ ÀÀ´äÀ» ¹Þ¾Ò´ÂÁö¸¦ È®ÀÎÇϱâ À§ÇØ HA¿¡¼­ ´ÙÀ½ ¸í·ÉÀ» ¼öÇàÇ϶ó.

      # mipdiag -s
      Mobile IPv6 Statistics
      NEncapsulations           : 0
      NDecapsulations           : 0
      NBindUpdatesRcvd          : 0
      NBindAcksRcvd             : 1    (1)
      NBindNAcksRcvd            : 0
      NBindRqsRcvd              : 0
      NBindUpdatesSent          : 1    (2)
      NBindAcksSent             : 0
      NBindNAcksSent            : 0
      NBindRqsSent              : 0
      NBindUpdatesDropAuth      : 0
      NBindUpdatesDropInvalid   : 0
      NBindUpdatesDropMisc      : 0
      NBindAcksDropAuth         : 0
      NBindAcksDropInvalid      : 0
      NBindAcksDropMisc         : 0
      NBindRqsDropAuth          : 0
      NBindRqsDropInvalid       : 0
      NBindRqsDropMisc          : 0


(1) binding ACK Çϳª¸¦ ¼ö½Å

(2) binding UPDATE Çϳª¸¦ Àü¼Û

MN¿¡¼­ bindingÀ» È®ÀÎÇϱâ À§Çؼ­´Â ´ÙÀ½ ¸í·ÉÀ» ÀÌ¿ëÇÑ´Ù.

     # mipdiag -l
     Mobile IPv6 Binding update list
     Recipient CN: fec0:106:2700::2
     BINDING home address: fec0:106:2700::4 care-of address: fec0:106:1100:0:290:7dff:fef3:31a
             expires: 936 sequence: 0 state: 1
             delay: 3 max delay 32 callback time: 736


HA¿¡¼­´Â -c ¿É¼ÇÀ» ÀÌ¿ëÇÏ¿© "bindig cache"¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.

     # mipdiag -c
     Mobile IPv6 Binding cache
     Home Address      Care-of Address                    Lifetime  Type 
     fec0:106:2700::4  fec0:106:1100:0:290:7dff:fef3:31a  971       2  


5.3. ping6

MN¿¡¼­ ARÀÇ eth1(fec0:106:1100::1)·Î ping6¸¦ ½ÃµµÇØ º¸ÀÚ.

     # ping6 fec0:106:1100::1
     PING fec0:106:1100::1(fec0:106:1100::1) from fec0:106:2700::4 : 56 data bytes
     64 bytes from fec0:106:1100::1: icmp_seq=1 ttl=62 time=8.01 ms
     64 bytes from fec0:106:1100::1: icmp_seq=2 ttl=62 time=8.02 ms
     ...


tcpdump¸¦ ÀÌ¿ëÇØ ÆÐŶµéÀÌ ¾î¶»°Ô À̵¿ÇÏ´ÂÁö¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.

     12:13:51.789688 fec0:106:1100:0:202:a5ff:fe6f:a08a > fec0:106:2700::2: \   (1) 
     fec0:106:2700::4 > fec0:106:1100::1: icmp6: echo request \ (2)
     (len 64, hlim 64) (len 104, hlim 255)

     12:13:51.797675 fec0:106:2700::2 > fec0:106:1100:0:202:a5ff:fe6f:a08a: \   (3)
     fec0:106:1100::1 > fec0:106:2700::4: icmp6: echo reply \
     (len 64, hlim 62) (len 104, hlim 253)


(1) MNÀÇ »õ·Î¿î IPv6 ÁÖ¼Ò¸¦ °¡Áö°í MN¿¡¼­ HA·Î À̵¿ÇÏ´Â ÆÐŶ

(2) HA·Î ºÎÅÍ AR·Î À̵¿

(3) ARÀÌ HA¿¡°Ô ÀÀ´äÇÏ°í ÆÐŶÀ» MN¿¡°Ô ÅͳθµÇÑ´Ù.

MN¿¡¼­ ´ÙÀ½°ú °°Àº Åë°è °á°ú¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.

     # mipdiag -s
     Mobile IPv6 Statistics
     NEncapsulations           : 56
     NDecapsulations           : 25
     ...


5.4. Ä¿³Î IP ¶ó¿ìÆà Å×À̺í

MIPv6ÀÇ ¿ªÇÒÁß Àç¹ÌÀÖ´Â(?) ÇÑ°¡Áö´Â default route¸¦ ÅͳηΠº¯°æÇÏ´Â °ÍÀÌ´Ù. »õ·Î¿î default route°¡ ´ÙÀ½°ú °°À» °ÍÀÌ´Ù.

    # route -A inet6
    Kernel IPv6 routing table
    Destination      Next Hop       Flags Metric Ref    Use Iface
    ::/0             ::             UD    64     0        0 ip6tnl1
    ....


¸¸ÀÏ default routeÀÌ º¯°æµÇÁö ¾Ê¾Ò´Ù¸é ¼öµ¿À¸·Î Ãß°¡Ç϶ó.

    # ip route ::/0 via dev ip6tnl


5.5. ¸î¸î ´Ù¸¥ ¼­ºê³ÝÀ¸·Î À̵¿ÇØ º¸±â

¼Â ÀÌ»óÀÇ ³×Æ®¿öÅ©¸¦ À̵¿ÇÏ´Â »óȲµµ µÎ °³ÀÇ ³×Æ®¿öÅ© »çÀÌ¿¡¼­ÀÇ À̵¿°ú ´Ù¸£Áö ¾Ê´Ù. À¯³äÇØ¾ß ÇÒ »çÇ×Àº MNÀÌ ¸ðµç ¹æ¹®ÇÑ ³×Æ®¿öÅ©¸¶´Ù »õ·Î¿î ÁÖ¼Ò¸¦ ÇÒ´çÇÑ´Ù´Â »ç½ÇÀÌ´Ù.


¸î¸î ´Ù¸¥ ³×Æ®¿öÅ© »çÀ̸¦ À̵¿ÇÏ´Â MN

  • ÀÌÀüÀÇ »óȲó·³ home network¿¡¼­ 'visitnet'À» ¹æ¹®ÇÑ´Ù.

  • MNÀÌ 'visitnet'¿¡¼­ 'visitnet2'·Î À̵¿ÇÏ°í ÀÖ´Ù.

  • 'visitnet2'¿¡¼­ MNÀº »õ·Î¿î IPv6 ÁÖ¼Ò¸¦ ÇÒ´çÇÏ°í HA¿¡ »õ·Î¿î 'binding update'¸¦
¼öÇàÇÑ´Ù.

  • MNÀÌ ´Ù½Ã home networkÀ¸·Î µ¹¾Æ¿Â´Ù. (´ÙÀ½ ÀýÀ» º¸¶ó.)

'visitnet2'¿¡¼­ÀÇ ARÀº 'visitnet'¿¡¼­ÀÇ ARÀÇ ±¸¼º°ú °°À¸³ª ÁÖ¼Ò¸¸ ´Ù¸£°Ô ±¸¼ºÇÑ´Ù. (prefix¸¦ fec0:106:1100::/64¿¡¼­ fec0:106:1000::/64·Î º¯°æÇÏ°í ÀÎÅͳÝÀ¸·Î ¿¬°áÇÏ´Â À¯¼± ÀÎÅÍÆäÀ̽ºÀÇ ÁÖ¼Ò¸¦ °ãÄ¡Áö ¾Êµµ·Ï ÇÑ´Ù.)

MNÀÌ 'visitnet'¿¡¼­ 'visitnet2'·Î À̵¿ÇÏ´Â È¿°ú¸¦ ÁÖ±â À§ÇØ MN¿¡¼­ ´ÙÀ½ ¸í·ÉÀ» ¼öÇàÇ϶ó.

     # iwconfig eth0 essid visitnet2


MNÀÌ 'visitnet2'·Î À̵¿ÇÑ ÈÄ ÇÒ´çµÈ ÁÖ¼ÒµéÀ» ´ÙÀ½ ¸í·ÉÀ¸·Î È®ÀÎÇÒ ¼ö ÀÖ´Ù.

    # ifconfig eth0
    eth1  Link encap:Ethernet  HWaddr 00:90:7D:F3:03:1A  
          inet6 addr: fec0:106:1000:0:290:7dff:fef3:31a/64 Scope:Site (1)
          inet6 addr: fec0:106:1100:0:290:7dff:fef3:31a/64 Scope:Site 
          inet6 addr: fec0:106:2700:0:290:7dff:fef3:31a/64 Scope:Site 
          inet6 addr: fec0:106:2700::4/64 Scope:Site                  
          inet6 addr: fe80::290:7dff:fef3:31a/64 Scope:Link           
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1073 errors:212 dropped:212 overruns:0 frame:204
          TX packets:371 errors:72 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:120340 (117.5 Kb)  TX bytes:56912 (55.5 Kb)
          Interrupt:3 Base address:0x100 


(1) 'visitnet2'¿¡¼­ »õ·Î ÇÒ´çµÈ ÁÖ¼Ò

ÁÖ¸ñ! MNÀÌ »õ·Î¿î ³×Æ®¿öÅ©·Î À̵¿ÇßÀ» ¶§, mobile-ipv6¸¦ ´Ù½Ã ½ÃÀÛÇØ¾ß ÇÒÁöµµ ¸ð¸¥´Ù.

    # /etc/init.d/mobile-ip6 restart
    Stopping Mobile IPv6: OK
    Starting Mobile IPv6: OK


MNÀÌ »õ·Î¿î 'binding update'¸¦ ¼öÇàÇÑ ÈÄ, »õ·Î¿î 'care-of address'¸¦ ºÎ¿© ¹Þ´Â´Ù.

    # mipdiag -l
    Mobile IPv6 Binding update list
    Recipient CN: fec0:106:2700::2
    BINDING home address: fec0:106:2700::4 care-of address: fec0:106:1000:0:290:7dff:fef3:31a
        expires: 973 sequence: 14 state: 1
        delay: 3 max delay 32 callback time: 773


HA¿¡¼­ °»½ÅµÈ 'binding cache'¸¦ º¼ ¼ö ÀÖ´Ù.

    # mipdiag -c
    Mobile IPv6 Binding cache
    Home Address      Care-of Address                    Lifetime  Type 
    fec0:106:2700::4  fec0:106:1000:0:290:7dff:fef3:31a  943       2  


5.6. homeÀ¸·Î µ¹¾Æ¿À±â

MNÀ» home network·Î µ¹¾Æ¿À´Â È¿°ú¸¦ ÁÖ±â À§ÇØ ´ÙÀ½ ¸í·ÉÀ» ¼öÇàÇ϶ó.

    # iwconfig eth0 essid homenet


HA¿¡¼­ HA-bit(AdvHomeAgentFlage)À» ¼³Á¤Çؼ­ radvd ¸Þ½ÃÁöµéÀ» º¸³»°í ÀÖÀ¸¹Ç·Î(4.2.4ÀýÀ» º¸¶ó) MNÀº ÀÚ½ÅÀÌ home networkÀ¸·Î µ¹¾Æ¿Â °ÍÀ» ¾Ë ¼ö ÀÖ´Ù.

¶ÇÇÑ, HAÀÇ 'binding cache'¿¡ ¾î¶°ÇÑ Á¤º¸µµ ³²¾Æ ÀÖÁö ¾ÊÀº °ÍÀ» È®ÀÎÇÔÀ¸·Î¼­ MNÀÌ home network¿¡ ¿Â °ÍÀ» ¾Ë ¼ö ÀÖ´Ù.

    Mobile IPv6 Binding cache
    Home Address      Care-of Address                     Lifetime  Type 


5.7. ½Ç½Ã°£ ÀÀ¿ë ½ÇÇè - ºÎµå·¯¿î ÇÚµå¿À¹ö

¸ð¹ÙÀÏ IP°¡ ¾î¶»°Ô ÀÛµ¿ÇÏ´ÂÁö¸¦ »ýµ¿°¨ ÀÖ°Ô ´À³¢±â À§ÇØ 'GnomeMeeting'À» ½ÇÇàÇÏ°í 'netmeeting'À» ½ÃÀÛÇ϶ó. ÁÖ¸ñ! IPv6¸¦ Áö¿øÇϵµ·Ï Çϱâ À§ÇØ °¡Àå ÃÖ½ÅÀÇ GnomeMeetingÀ» »ç¿ëÇؾ߸¸ ÇÑ´Ù! ±×¸®°í ³ª¼­ ³×Æ®¿öÅ©µé »çÀ̸¦ À̵¿Ç϶ó. ¾Æ¸¶µµ ¹ÌÆÃÀÌ ²÷±è¾øÀÌ ÀÚ¿¬½º·´°Ô ÀÌ·ç¾îÁö´Â °ÍÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù.


µÎ ¹«¼± ³×Æ®¿öÅ© »çÀÌÀÇ ·Î¹ÖÀ» ½ÇÇèÇϱâ À§ÇÑ IPv6 Áö¿ø GnomeMeeting

6. ÀÚÁÖ ÇÏ´Â Áú¹®

  • Q: ¿Ö '/dev/mipv6_dev'¸¦ ¸¸µé¾î¾ß Çϳª¿ä?

A: ÀåÄ¡È­ÀÏÀ» ÅëÇÑ ioctl ¸í·ÉÀ» ÀÌ¿ëÇؼ­ mipdiag »ç¿ëÀÚ ÅøÀÌ kernelÀÇ ³»ºÎ º¯¼öµéÀ» º¯°æÇÒ ¼ö ÀÖ´Ù. mknod ¸í·ÉÀ» ÀÌ¿ëÇØ mobile-ipv6 ¸ðµâ¿¡¼­ ÀνÄÇÒ ¼ö ÆĶó¸ÞÅ͵éÀ» Æ÷ÇÔÇÑ Æ¯¼ö ÀåÄ¡ È­ÀÏÀ» »ý¼ºÇÑ´Ù.

  • Q: kernel 2.6.xµµ Áö¿øÇϳª¿ä?

A: MIPL ¸ÞÀϸµ ¸®½ºÆ®¿¡¼­ [[http]http://www.mobile-ipv6.org/pipermail/mipl/2003-December/001871.html Henrik PetanderÀÇ ´äº¯]À» Âü°íÇ϶ó.

"´ÙÀ½¿¡ 2.6 kernelµéÀ» À§ÇÑ MIPL ±¸ÇöÀÇ ÂªÀº Á¤¸®¸¦ Á¦°øÇÑ´Ù."

"MIPL ÇÁ·ÎÁ§Æ®´Â USAGI ÇÁ·ÎÁ§Æ®¿ÍÀÇ Çù·ÂÀ¸·Î Mobile IPv6¸¦ À§ÇÑ Ä¿³ÎÀÇ ±âÃʸ¦ ¿Ï¼ºÇß´Ù. ±× ³»¿ëÀº °æ·Î ÃÖÀûÈ­¿Í Åͳθµ, Á¤Ã¥À» Àû¿ëÇÒ ¼ö ÀÖ´Â °æ·Î ¼³Á¤ÀÌ´Ù."

"MIPv6ÀÇ ½Ã±×³Î¸µÀ» ó¸®ÇÏ°í Ä¿³Î ºÎºÐÀÇ µ¿ÀÛÀ» Á¦¾îÇÏ´Â »ç¿ëÀÚ µ¥¸óÀ» ÀÛ¼ºÇÏ°í ÀÖÀ¸¸ç, Àß ÁøÇàµÇ°í ÀÖÀ¸³ª, ÇÁ·ÎÅäÄÝÀ» ¾î¶»°Ô ¼³°èÇØ¾ß ÇÒÁö°¡ ¾ÆÁ÷ ¹ÌÁö¼öÀÌ´Ù. ±×·¡¼­ ¾ÆÁ÷ »ç¿ëÀÚµéÀÌ Å×½ºÆ® ÇØ º¼ ¼ö ÀÖ´Â ¼öÁØ¿¡´Â À̸£Áö ¸øÇß´Ù. 3¿ù ¸»±îÁö´Â ¸¶¹«¸®ÇÒ °èȹÀÌ´Ù."

  • Q: MIPLÀÌ IPSecÀ» Áö¿øÇϳª¿ä?

A: 2.4.x Ä¿³Î¿¡¼­´Â Áö¿øÇÏÁö ¾ÊÀ¸³ª, 2.6.x Ä¿³ÎÀ» À§ÇÑ MIPLÀº Áö¿øÇÒ °èȹÀÌ´Ù. ´Ù¸¥ °÷¿¡¼­ ±¸ÇöÇÑ IPSecÀ» ÀÌ¿ëÇÒ ¼öµµ ÀÖ´Ù.

  • Q: MN°ú CN »çÀÌÀÇ Åë½Å¿¡ »ç¿ëµÇ´Â ¶ó¿ìÆà À¯Çü(HA¿ÍÀÇ Åͳθµ ¶Ç´Â Á÷Á¢ Åë½Å)
À» ¼±ÅÃÇÏ´Â ¹æ¹ýÀº ¹«¾ùÀΰ¡¿ä?

A: /proc/sys/conf/net/ipv6/mobility/accept_return_routability ¸¦ ÀÌ¿ëÇ϶ó.

'return routability' ¿Í °æ·Î ÃÖÀûÈ­¸¦ »ç¿ëÇÏÁö ¾ÊÀ¸·Á¸é, 0À¸·Î ¼³Á¤Ç϶ó.

# echo 0 > /proc/sys/..../accept_return_routability

ÀÌ·¸°Ô Çϸé MNÀ» HA¿ÍÀÇ ÅͳθµÀ» ÅëÇØ CN°ú Åë½ÅÇÒ °ÍÀÌ´Ù.

  • Q: ´Ù¸¥ ¹«¼± ³×Æ®¿öÅ©µéÀÌ ´Ù¸¥ ESSID¿Í WEP Å°¸¦ °¡Áú ¼ö ÀÖ³ª¿ä?

A: ¹°·ÐÀÔ´Ï´Ù. MIPLÀÇ MIPv6´Â ÀÚµ¿À¸·Î ESSID¸¦ ¹Ù²ÙÁö ¾ÊÀ¸¹Ç·Î »õ·Î¿î ³×Æ®¿öÅ©¿¡ µµÂøÇßÀ» ¶§ ¼öµ¿À¸·Î ESSID¿Í WEP Å°¸¦ ¹Ù²Ù¾î ÁÖ¾î¾ß ÇÕ´Ï´Ù.

  • Q: MNÀÌ ¿©·¯ ´Ù¸¥ ³×Æ®¿öÅ©µéÀ» ¹æ¹®ÇÏ°í ´Ù½Ã home networkÀ¸·Î µ¹¾Æ¿Ã ¶§,
ÀÎÅ×ÆäÀ̽º¿¡ ¸ðµç ¹æ¹®ÇÑ ³×Æ®¿öÅ©¿¡¼­ ¼³Á¤µÈ IPv6ÁÖ¼Ò¸¦ À¯ÁöÇÕ´Ï´Ù. ºÒÇÊ¿äÇÑ ÁÖ¼ÒµéÀÌ ÀÚµ¿À¸·Î Áö¿öÁöµµ·Ï ÇÏ´Â ¹æ¹ý ¾ø³ª¿ä?

A: ÁÖ¼ÒµéÀ» ÀÚµ¿À¸·Î Á¦°ÅÇÏ´Â ¹æ¹ýÀ» ¾ËÁö ¸øÇÕ´Ï´Ù. ±×·¯³ª, ¼öµ¿À¸·Î Áö¿ì¸é µË´Ï´Ù.:

<b># ifconfig eth0 inet6 del <ipv6-address> </b>

  • Q: Host B has two interfaces with two different subnets assigned.
When I ping B from host A, it does not answer! Why not? Host A knows where host B (subnets) are!

A: The host B doesn't know where host A is (B doesn't know where A's net is), so you must add a route entry:

# ip route add fec0:106:2700::/64 via fec0:106:2300::1

or

# route -A inet6 add fec0:106:2700::/64 gw fec0:106:2300::1 dev eth0

  • Q: IPv6¿¡¼­ default gateway¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº?

A: route ¸í·ÉÀ» ÀÌ¿ëÇϸé

<b># route -A inet6 add default gw <ipv6-host> </b>

ip ¸í·ÉÀ» ÀÌ¿ëÇϸé

<b># ip route ::/0 via <ipv6-host> </b>

  • Q: È£½ºÆ®°¡ 'router solicitation' ¸Þ½ÃÁö¸¦ º¸³¾ ¶§, anycast ÁÖ¼Ò°¡ ¾Æ´Ñ multcast
ÁÖ¼Ò¸¦ »ç¿ëÇÏ´Â ÀÌÀ¯´Â?

A: È£½ºÆ®¿¡¼­ ÀÓÀÇÀÇ ÇÑ ¶ó¿ìÅͺ¸´Ù´Â ÀÌ¿ôÀÇ ¸ðµç ¶ó¿ìÅͷκÎÅÍ ÀÀ´äÀ» ¹Þ±â ¿øÇϱ⠶§¹®ÀÌ´Ù. °¡´ÉÇÑ ¸ðµç Á¤º¸¸¦ ¼öÁýÇؼ­ ÃÖ»óÀÇ default router¸¦ ¹ß°ßÇÒ ¼ö ÀÖ´Â ÀåÁ¡ÀÌ ÀÖ´Ù.

  • Q: MNÀÌ ´Ù¸¥ ³×Æ®¿öÅ©·Î À̵¿ÇÑ »ç½ÇÀ» ÀÚµ¿ÀûÀ¸·Î ¾ËÁö ¸øÇÏ´Â ÀÌÀ¯´Â?

A: Router AdvertisementÀÇ lifetimeÀÌ ³Ê¹« ±æÀÌ ¶§¹®¿¡, MNÀÌ ´Ù¸¥ ³×Æ®¿öÅ©·Î À̵¿Çߴµ¥µµ ºÒ±¸ÇÏ°í MNÀº ¾ÆÁ÷µµ ÀÌÀü ¶ó¿ìÅÍ¿Í Åë½ÅÇÒ ¼ö ÀÖ´Ù°í »ý°¢ÇÑ´Ù. ¶ó¿ìÅÍ¿¡¼­ Router Advertisement¸¦ º¸³»´Â ÇÁ·Î±×·¥ÀÇ ¼³Á¤È­ÀÏÀ» º¸¶ó. °Å±â¿¡ RA¸¦ Àü¼ÛÇÏ´Â °£°ÝÀ» Á¶ÀýÇÏ´Â ±â´ÉÀÌ ÀÖ´Ù¸é, ±× ¼³Á¤À» ÄÔÀ¸·Î¼­ MNÀÇ À̵¿ °¨Áö¸¦ µµ¿ï ¼ö ÀÖ´Ù. ´õ ÀÚ¼¼ÇÑ ¼³¸íÀ» À§ÇØ man radvd.conf ¸¦ º¸¶ó

7. À¯¿ëÇÑ ÀÚ¿øµé

8. Comment

¿ø¼­¿Í ±è¿µ¹Î´ÔÀÇ ¹ø¿ªº» ´öºÐ¿¡ Mobile IPv6 ¼³Ä¡¸¦ Àß ³¡³Â½À´Ï´Ù. ÀúÈñµµ ³ª¸§´ë·Î Á¤¸®ÇÑ ¹®¼­°¡ ÀÖ¾î Âü°í »ï¾Æ ¸µÅ© °Ì´Ï´Ù. -SkkU MoM - [http]Mobile_IPv6_For_Linux_¼³Ä¡Çϱâ


ID
Password
Join
Recent investments will yield a slight profit.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2007-03-22 16:15:56
Processing time 0.0245 sec