Linux MobileIPv6
¿øÀúÀÚ : Lars Strand (lars (at) unik.no)
¹ø¿ªÀÚ : ±è¿µ¹Î (blhole (at) venus.uos.ac.kr)
ÀÌ ¹®¼´Â Linux Mobile IPv6 HOWTO 2004-04-20ÀÇ ¹ø¿ªÀÔ´Ï´Ù.
1. ¼Ò°³ ¶ÀÌ ¹®¼´Â ¸®´ª½º¿¡¼ ¸ð¹ÙÀÏ IPv6¸¦ ¼³Ä¡ÇÏ°í »ç¿ëÇϱâ À§ÇØ ¼ÒÇÁÆ®¿þ¾îµéÀ»
¾î¶»°Ô ±¸¼ºÇÏ´ÂÁö ¼³¸íÇÑ´Ù.
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
À§ÀÇ ±×¸²°ú ¼³¸íÀ» ÇÔ²² º¸¶ó.
2. IPv6 ¶3. ¸®´ª½º¸¦ À§ÇÑ ¸ð¹ÙÀÏ IPv6 ¶ÇöÀç ÀÌ¿ë°¡´ÉÇÑ ¸ð¹ÙÀÏ IPv6 ±¸Çö¹°Àº µÎ °¡Áö°¡ Á¸ÀçÇÑ´Ù. ¿µ±¹ÀÇ Lancaster ´ëÇÐ
Àº °¡Àå ¿À·¡µÈ(?) MIPv6 ±¸ÇöÀ» º¸À¯ÇÏ°í ÀÖ´Ù. Áö¿øÇÏ´Â °¡Àå ÃÖ±Ù Ä¿³Î ¹öÀüÀº 2.1.90À̸ç, IETF ¸ð¹ÙÀÏ IPv6
draft-v5(ÇöÀç´Â v24)À» ±âÃÊ·Î ±¸ÇöÇÑ ¹öÀüÀÌ´Ù.
ÀÌ ±¸ÇöÀº 1998³â ÀÌÈÄ·Î °»½ÅµÈ °ÍÀÌ ÀüÇô ¾øÀ¸¹Ç·Î º» ¹®¼¿¡¼´Â °í·ÁÇÏÁö ¾Ê´Â´Ù.
´Ù¸¥ ÃֽŠ±¸ÇöÀº Çï½ÌÅ° ´ëÇÐ (Helsinki University of Technology)ÀÇ MIPL ÇÁ·ÎÁ§Æ®ÀÌ´Ù.
Áö¿øÇÏ´Â °¡Àå ÃÖ±ÙÀÇ Ä¿³Î ¹öÀüÀº 2.4.22ÀÌ°í Á¶¸¸°£ Á¤½Ä ¹èÆ÷ÇÒ 2.6Ä¿³ÎÀÇ
ÆÐÄ¡µµ °³¹ßÇÏ¿´´Ù(ÀÚÁÖ ÇÏ´Â Áú¹®À» º¸¶ó). °ü·Ã¹®¼¿Í ¼ÒÇÁÆ®¿þ¾î, °³¹ß °úÁ¤µîÀ»
º¼·Á¸é http://www.mobile-ipv6.org¸¦ ¹æ¹®Ç϶ó.
3.1. Ä¿³Î ÆÐÄ¡ ¶MIPL MIPv6 ±¸ÇöÀº Ä¿³Î ÆÐÄ¡¸¦ ¿ä±¸ÇϹǷΠIPv6 Ä¿³ÎÀ» ¼öÁ¤ÇÏ°í Àç ÄÄÆÄÀÏ ÇØ¾ß ÇÑ´Ù.
¼³Ä¡°úÁ¤À» Á¤¸®ÇÑ ¹®¼´Â Àß µÇ¾î ÀÖÁö¸¸, ¿©±â¼´Â °£·«ÇÑ ´Ü°èº° ¼³Ä¡¹æ¹ýÀ» Á¦½ÃÇÑ´Ù.
ÁÖ¸ñ! MNÀ» À§ÇÑ Ä¿³Î°ú HA¸¦ À§ÇÑ Ä¿³Î, ÀÌ·¸°Ô µÎ °³ÀÇ Ä¿³ÎÀ» »ç¿ëÇÏ´Â ¹æ½ÄÀº
¿¹Àü ¹æ½ÄÀÌ´Ù. ÇöÀç´Â ÇϳªÀÇ Ä¿³Î¿¡ MN°ú HAÀ» ¸ðµÎ Áö¿øÇÒ ¼ö ÀÖµµ·Ï ÄÄÆÄÀÏ ÇÑ´Ù.
±×·¯³ª, µ¿½Ã¿¡ MN°ú HAÀÇ ¿ªÇÒÀ» ¼öÇàÇÒ ¼ö´Â ¾øÀ¸¸ç, ¾î¶°ÇÑ ¸ðµâÀÌ ¿Ã·ÁÁö´À³Ä¿¡ µû¶ó
MNÀ̳ª HAÀÇ ¿ªÇÒÀ» ¼öÇàÇÑ´Ù.
# 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
# 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
# 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
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¸¦ ½ÇÇàÇÒ ¼ö ÀÖ´Ù.
Ä¿³ÎÀ» ÆÐÄ¡ÇÏ°í ÄÄÆÄÀÏ ÇÏ°í ¼³Ä¡ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¼³¸íÀ» ¾ò°íÀÚ ÇÑ´Ù¸é
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. ÀÚµ¿ ½ÃÀÛ ¶
# chkconfig --add mobile-ip6 ½Ã½ºÅÛÀ» ½ÃÀÛÇÒ ¶§ MIPv6¸¦ ÀÛµ¿ÇÏÁö ¾Êµµ·Ï Çϱâ À§ÇØ ´ÙÀ½ ¸í·ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.
# chkconfig --del mobile-ip6
# update-rc.d -n mobile-ip6 start 75 3 4 5 . stop 05 1 2 6 .
# 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"¸¦ º¸¶ó.
Mobile IPv6 testbed
4.2.1. ¿Ïº®ÇÑ IPv6 ³×Æ®¿öÅ© ¼³Á¤ ¶¸ð¹ÙÀÏ IP ½ÇÇèÀ» ½ÃÀÛÇϱâ Àü¿¡ ¿Ïº®ÇÑ IPv6 ³×Æ®¿öÅ©¸¦ ¼³Á¤ÇØ¾ß ÇÑ´Ù.
°¡´ÉÇÑ ¸ðµç ³ëµåµéÀÇ Á¶ÇÕÀÌ ping6¸¦ ÀÌ¿ëÇØ Åë½Å °¡´ÉÇÑÁö È®ÀÎ ÇØ¾ß ÇÑ´Ù.
ÀÌ °úÁ¤Àº ¸Å¿ì Áß¿äÇѵ¥, ¸¸ÀÏ ARÀÌ HA¿¡°Ô ping6¸¦ ÀÌ¿ëÇÑ Åë½Å¿¡ ½ÇÆÐÇÑ´Ù¸é
¸ð¹ÙÀÏ IP ½ÇÇè¿¡¼ ¾î¶°ÇÑ binding updateµµ ½ÇÇàµÇÁö ¾ÊÀ» °ÍÀÌ´Ù.
º» HOWTO¿¡¼´Â IPv6 ³×Æ®¿öÅ©¸¦ ±¸¼ºÇÏ°í µ¿ÀÛÇϵµ·Ï ¸¸µé±â À§ÇÑ °£·«ÇÑ ¹æ¹ý¸¸À»
Á¦½ÃÇÑ´Ù. IPv6 ³×Æ®¿öÅ©¸¦ ±¸¼ºÇϱâ À§ÇÑ ´õ ÀÚ¼¼ÇÑ ¼³¸íÀº
Peter BieringerÀÇ Linux IPv6 HOWTO¸¦ º¸¶ó.
º» HOWTO¿¡¼´Â ´Ü¼øÇÔÀ» À§ÇØ IPv6ÀÇ º¸¾È±â´É(encryption)Àº °í·ÁÇÏÁö ¾ÊÁö¸¸,
½ÇÁ¦ »óȲ¿¡¼ ¹«¼± ³×Æ®¿öÅ©¸¦ ÀÌ¿ëÇÒ ¶§´Â ¹Ýµå½Ã º¸¾È±â´ÉÀ» ÀÌ¿ëÇؾ߸¸ ÇÑ´Ù.
¶ÇÇÑ, ³×Æ®¿öÅ©°¡ ´Ù¸£¸é ESSIDµµ ´Ù¸£´Ù´Â »ç½ÇÀ» À¯³äÇ϶ó.
# 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
# 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
# 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
# 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/ ¾Æ·¡¿¡¼ ¼³Á¤ÈÀÏÀ» ãÀ» ¼ö ÀÖ´Ù. ¼³Á¤ÈÀÏ¿¡´Â ÁÖ¼®ÀÌ Àß Ã·ºÎµÇ¾î ÀÖ¾î
¼³Á¤Çϱ⠾î·ÆÁö ¾ÊÀ» °ÍÀÌ´Ù.
# cat /etc/network-mip6.conf # Home Agent configuration file FUNCTIONALITY=ha DEBUGLEVEL=1 MIN_TUNNEL_NR=1 MAX_TUNNEL_NR=5 TUNNEL_SITELOCAL=yes
# 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
# /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 ÁÖ¼Ò ¼³Á¤À» ½ÃµµÇÏ°í ¼º°øÇÏ¸é ´ÙÀ½ °úÁ¤À»
¼öÇàÇÑ´Ù. ´ÙÀ½ °úÁ¤Àº 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" ¸Þ½ÃÁö¸¦
º¸³½´Ù. "
º» ÀýÀº RADVD¸¦ »ç¿ëÇÑ´Ù.
ÀÌÁ¦ 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.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
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. ½Ç½Ã°£ ÀÀ¿ë ½ÇÇè - ºÎµå·¯¿î ÇÚµå¿À¹ö ¶6. ÀÚÁÖ ÇÏ´Â Áú¹® ¶
"´ÙÀ½¿¡ 2.6 kernelµéÀ» À§ÇÑ MIPL ±¸ÇöÀÇ ÂªÀº Á¤¸®¸¦ Á¦°øÇÑ´Ù."
"MIPL ÇÁ·ÎÁ§Æ®´Â USAGI ÇÁ·ÎÁ§Æ®¿ÍÀÇ Çù·ÂÀ¸·Î Mobile IPv6¸¦ À§ÇÑ Ä¿³ÎÀÇ ±âÃʸ¦ ¿Ï¼ºÇß´Ù.
±× ³»¿ëÀº °æ·Î ÃÖÀûÈ¿Í Åͳθµ, Á¤Ã¥À» Àû¿ëÇÒ ¼ö ÀÖ´Â °æ·Î ¼³Á¤ÀÌ´Ù."
"MIPv6ÀÇ ½Ã±×³Î¸µÀ» ó¸®ÇÏ°í Ä¿³Î ºÎºÐÀÇ µ¿ÀÛÀ» Á¦¾îÇÏ´Â »ç¿ëÀÚ µ¥¸óÀ» ÀÛ¼ºÇÏ°í ÀÖÀ¸¸ç,
Àß ÁøÇàµÇ°í ÀÖÀ¸³ª, ÇÁ·ÎÅäÄÝÀ» ¾î¶»°Ô ¼³°èÇØ¾ß ÇÒÁö°¡ ¾ÆÁ÷ ¹ÌÁö¼öÀÌ´Ù. ±×·¡¼ ¾ÆÁ÷
»ç¿ëÀÚµéÀÌ Å×½ºÆ® ÇØ º¼ ¼ö ÀÖ´Â ¼öÁØ¿¡´Â À̸£Áö ¸øÇß´Ù. 3¿ù ¸»±îÁö´Â ¸¶¹«¸®ÇÒ °èȹÀÌ´Ù."
A: /proc/sys/conf/net/ipv6/mobility/accept_return_routability ¸¦ ÀÌ¿ëÇ϶ó.
'return routability' ¿Í °æ·Î ÃÖÀûȸ¦ »ç¿ëÇÏÁö ¾ÊÀ¸·Á¸é, 0À¸·Î ¼³Á¤Ç϶ó.
# echo 0 > /proc/sys/..../accept_return_routability
ÀÌ·¸°Ô Çϸé MNÀ» HA¿ÍÀÇ ÅͳθµÀ» ÅëÇØ CN°ú Åë½ÅÇÒ °ÍÀÌ´Ù.
A: ÁÖ¼ÒµéÀ» ÀÚµ¿À¸·Î Á¦°ÅÇÏ´Â ¹æ¹ýÀ» ¾ËÁö ¸øÇÕ´Ï´Ù. ±×·¯³ª, ¼öµ¿À¸·Î Áö¿ì¸é
µË´Ï´Ù.:
<b># ifconfig eth0 inet6 del <ipv6-address> </b>
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
<b># route -A inet6 add default gw <ipv6-host> </b>
ip ¸í·ÉÀ» ÀÌ¿ëÇϸé
<b># ip route ::/0 via <ipv6-host> </b>
A: È£½ºÆ®¿¡¼ ÀÓÀÇÀÇ ÇÑ ¶ó¿ìÅͺ¸´Ù´Â ÀÌ¿ôÀÇ ¸ðµç ¶ó¿ìÅͷκÎÅÍ ÀÀ´äÀ» ¹Þ±â ¿øÇϱ⠶§¹®ÀÌ´Ù.
°¡´ÉÇÑ ¸ðµç Á¤º¸¸¦ ¼öÁýÇؼ ÃÖ»óÀÇ default router¸¦ ¹ß°ßÇÒ ¼ö ÀÖ´Â ÀåÁ¡ÀÌ ÀÖ´Ù.
7. À¯¿ëÇÑ ÀÚ¿øµé ¶
|