RFC 3484 ã®åªã
æãDNS ã©ã¦ã³ãããã³ãå½ã¦ã«ãªããªããªã£ã¦ããã®ã¯ RFC 3484 ã®å½±é¿ãã¨ããäºãæ¸ãã¾ããã
ãã® RFC 㯠6724 ã§æ´æ°ããã¦ãã¾ãã
RFC 6724 - Default Address Selection for Internet Protocol Version 6 (IPv6)
ãã® RFC ã¯ãå²ãå½ã¦ãããè¤æ°ã®ã¢ãã¬ã¹ãããã©ã®ã¢ãã¬ã¹ã使ã£ã¦ç¸æã¨ã®éä¿¡ãè¡ãããã¨ãããã®ã§ããããå®è£ ããã¨ãåå解決ã®çµæãã½ã¼ããããçµæãDNS ã©ã¦ã³ãããã³ãæå¾ ãã¦è¤æ°ã® A ã¬ã³ã¼ããè¨å®ãã¦ããå ´åãçæ¹ã«ã¢ã¯ã»ã¹ãå¯ã£ã¦ãã¾ããã¨ããç¾è±¡ãããã¾ãã*1ã
RFC 3484ã6724 èªä½ã¯ãIPv6 ä¸ã§ããè¿ãçµè·¯ã«ãªãã¢ãã¬ã¹ãé¸æããããã®ãã®ã§ãDNS ã©ã¦ã³ãããã³ã®åé¡ã¯ããã®çµæã®å·»ãæ·»ããé£ã£ãæãã§ãããä»åº¦ã¯ãæ¬å½ã«ãã® RFC ã«ã¾ã¤ããåé¡ã«ééãã¾ããã
ã½ã¼ã¹ã¢ãã¬ã¹ã®é¸æ
RFC 6724 ã®ãã¤ã³ãã®ä¸ã¤ã«ãã©ã®ã¢ãã¬ã¹ãçºä¿¡å ã®ã¢ãã¬ã¹ã¨ãã¦é¸æããã®ããã¨ããã®ãããã¾ããããã¾ã§ã®è©¦è¡é¯èª¤ã®çµæã
- ã°ãã¼ãã«ã¢ãã¬ã¹ï¼MAC ã¢ãã¬ã¹ããã®çæï¼
- ã°ãã¼ãã«ä¸æã¢ãã¬ã¹
- ULA
ã®ï¼ã¤ã®ã¢ãã¬ã¹ããã¹ãã«å²ãå½ã¦ããã¦ããç¶æ ã«ãªã£ã¦ãã¾ãããã®ç¶æ ã§å®éã«éä¿¡ãè¡ãæã«ããã®ã¢ãã¬ã¹ã®ã©ããçºä¿¡å ã¨ããããã¨ããã«ã¼ã«ã決ããå¿ è¦ãããã¾ãããã®ã«ã¼ã«ã RFC 6724 ã®ã5. Source Address Selectionãã«ãããRule 1 ã 8 ã§ãã
ãã®ã«ã¼ã«ãä¸ã¤ä¸ã¤ã確èªãã¦ã¿ã¾ãã
Rule 1: å®å ã¨ã¢ãã¬ã¹ã¨åãã¢ãã¬ã¹ãåªå ããã
èªåèªèº«ã¸æ¥ç¶ããå ´åã«ã¯ãå®å ã¢ãã¬ã¹ã¨åãçºä¿¡å ã¢ãã¬ã¹ã使ããã¨ãããã¨ã«ãªãã¾ãã
Rule 2: é©åãªã¹ã³ã¼ããé¸æããã
ãã£ããè¨ãã¨ã°ãã¼ãã«ã¢ãã¬ã¹ç¸æã«ã¯ã°ãã¼ãã«ã¢ãã¬ã¹ãããªã³ã¯ãã¼ã«ã«ã¢ãã¬ã¹ç¸æã«ã¯ãªã³ã¯ãã¼ã«ã«ã¢ãã¬ã¹ããã¨ãããã¨ã®ããã§ãã
Rule 3: éæ¨å¥¨ã¢ãã¬ã¹ãé¿ããã
èªåæ§æã®ã¢ãã¬ã¹ã®æå¹æéãè¿ã¥ãã¦ããã¢ãã¬ã¹ãéæ¨å¥¨ã¢ãã¬ã¹ã§ããèªåæ§æã¢ãã¬ã¹ã¯æéã¨ã¨ãã«ãåªå ï¼Preferredï¼ããéæ¨å¥¨ï¼Deprecatedï¼ããç¡å¹ï¼Invalidï¼ãã¨ããããã«ã¹ãã¼ã¿ã¹ãå¤åãã¾ããæ°ããªéä¿¡ãéå§ããæã«ã¯ãéæ¨å¥¨ã¢ãã¬ã¹ãå©ç¨ãããéæ¨å¥¨ã¢ãã¬ã¹ãã¤ãã£ãæ¢åã®éä¿¡ãç¡ããªãã®ãå¾ ã¤ãã¨ããå½¢ã§ãã¹ã ã¼ãºãªã¢ãã¬ã¹ã®æ´æ°ãå®ç¾ãã¾ãã
Rule 4: ãã¼ã ã¢ãã¬ã¹ãåªå ããã
ãã¼ã ã¢ãã¬ã¹ã¯ãMobaile IPã§ä½¿ãããã¢ãã¬ã¹ã§ãã
Rule 5: å®å ã«åããã¤ã³ã¿ãã§ã¼ã¹ä¸ã«ããã¢ãã¬ã¹ãåªå ããã
è¤æ°ã®ã¤ã³ã¿ãã§ã¼ã¹ããã£ã¦ãå®å ã¢ãã¬ã¹ããã«ã¼ãã£ã³ã°ãã¼ãã«ã«ãããã£ã¦ãã±ãããéåºããã¤ã³ã¿ãã§ã¼ã¹ã決ã¾ãã¨ããã®ã¤ã³ã¿ãã§ã¼ã¹ã«å²ãå½ã¦ããã¦ããã¢ãã¬ã¹ãåªå ãããã¨ãã話ã§ããä¸è¦ãå½ããåã§ãããä¾ãã°ãã«ã¼ã¿èªèº«ã LAN å´ã®ãã¹ãã¸ç¹ããã¨ããéã«ãWAN å´ã®ã¢ãã¬ã¹ã使ããªããã¨ãã話ã«ãªãã¾ãã
Rule 5.5: Next-hop å´ã®ã¤ã³ã¿ãã§ã¼ã¹ä¸ã«ããã¢ãã¬ã¹ãåªå ããã
åºæ¬çã«ã¯ 5. ã¨åã話ã§ãå®å ãããã«å¥ã®ã²ã¼ãã¦ã§ã¤ã®åããã«ãªãå ´åãä¸çªè¿ãã²ã¼ãã¦ã§ã¤ã¸åããã¤ã³ã¿ãã§ã¼ã¹ä¸ã®ã¢ãã¬ã¹ãåªå ãããã¨ãã話ã§ãã
Rule 6: ã©ãã«ãä¸è´ããç©ãåªå ããã
NGN éå網ã®åé¡*2ã®æã«è©±é¡ã«ãªã£ãããªã·ã¼ãã¼ãã«ã§å²ãå½ã¦ãããã©ãã«ãä¸è´ãã¦ããã¢ãã¬ã¹ãåªå ãã¾ãã
Rule 7: ä¸æã¢ãã¬ã¹ãåªå ããã
ä¸æã¢ãã¬ã¹ãããå ´åã«ã¯ä¸æã¢ãã¬ã¹ãåªå ãã¦ä½¿ãã¾ãã
Rule 8: ã¢ãã¬ã¹ã®ãã¬ãã£ãã¯ã¹ãæ¯è¼ãã¦ãä¸è´ãã¦ããé·ããé·ããã®ãåªå ããã
IPv6 ã¢ãã¬ã¹ã®ãããã¯ã¼ã¯é¨ã§ãããã¬ãã£ã¯ã¹ãæ¯è¼ãã¦ãå é ãããããä½ãããä¸è´ãã¦ãããããã§ãã¯ããä¸è´ãã¦ãããããæ°ã®å¤ãæ¹ãåªå ãããã¨ã§ãã«ã¼ãã£ã³ã°çµè·¯ã®æå©ãªã¢ãã¬ã¹ãé¸æãããã¨ããæå³ãããã¾ãã
ULA ã®ã¹ã³ã¼ã
RFC 6724 ã®ã«ã¼ã«ãè¦ã¦ããã¨ãRule 2 ãé¤ã 1 ã 5.5 ã«é¢ãã¦ã¯ãå²ã¨å½ããåã®ã«ã¼ã«ã§ããRule 4 㯠Mobile IP ã使ã£ã¦ããå ´åã®ã±ã¼ã¹ã§ãããªãç¹æ®ã§ç¸ããªãæãã§ããã¨ã¯ããã¾ããããã ããªããã¨ãã話ã§ãã
åé¡ã¯ãRule 2 ã§ãã
IPv6 ã¢ãã¬ã¹ã®ã¹ã³ã¼ãã¯ã
- ã°ãã¼ãã«
- ãµã¤ããã¼ã«ã«
- ãªã³ã¯ãã¼ã«ã«
ã¨è¨ããã¦ãã¾ããããããããµã¤ããã¼ã«ã«ã¢ãã¬ã¹ã¯å»æ¢*3ããããã®ä»£ããã« ULA ãä½ããã¾ããã
ULA ã®ã¹ã³ã¼ãããµã¤ããã¼ã«ã«ã¨ãã¦å®ç¾©ããã¦ããã°åãããããã£ãã®ã§ãããå®ã¯ãULA ã®ã¹ã³ã¼ãã¯ã°ãã¼ãã«ã§ãããã®ãã¨ã ULA ãå®ç¾©ãã¦ãã RFC 4193 ã«æ¸ããã¦ãã¾ãã
http://tools.ietf.org/html/rfc4193
3.3 Scope Definition
By default, the scope of these addresses is global.
ã¨ããäºã¯ãæ¬å½ã«ã°ãã¼ãã«ãªã¢ãã¬ã¹ã ããããULA ã ããããRule 2 ã§ã¯åªå é ä½ã«å·®ããªããã¨ãããã¨ã«ãªãã¾ãã
æé·ä¸è´ããä¸æã¢ãã¬ã¹
ååã¾ã§ã§ã
- ã°ãã¼ãã«ãªã¢ãã¬ã¹ã¯ãMAC ã¢ãã¬ã¹ãå ã«ããèªåæ§æã¢ãã¬ã¹ã¨ä¸æã¢ãã¬ã¹
- ULA 㯠DHCPv6 ã§å²ãå½ã¦ãããã¢ãã¬ã¹
ã¨ããï¼ã¤ã®ã¢ãã¬ã¹ãæã¤æ§æã«ãªã£ã¦ãã¾ãããã®ç¶æ ã§åã ULA ãæã¤ããã¡ãµã¼ãã«ç¹ããã¨ããã¨ãRule 6 ããåã®ã«ã¼ã«ã§ã¯æ±ºçãä»ãã¾ããã
Rule 6 ã¯ããªã·ã¼ãã¼ãã«ã§å²ãå½ã¦ãããã©ãã«ã§ãããã©ã«ãã®ããªã·ã¼ãã¼ãã«*4ã§ã¯ï¼ã¤ã®ã¢ãã¬ã¹ã«å·®ã¯ããã¾ããã
次㫠Rule 7 ã§è©ä¾¡ãããã¨ãï¼ã¤ã®ã¢ãã¬ã¹ã®ãã¡ãã°ãã¼ãã«ãªä¸æã¢ãã¬ã¹ãåªå ãããäºã決å®ãã¾ãã
ã¤ã¾ããããã¾ã§è¦å´ãã¦ï¼ã¤ã®ã¢ãã¬ã¹ãå²ãå½ã¦ãããããã«ããçµæãããã¡ãµã¼ãã«ç¹ãæã«é¸æãããã¢ãã¬ã¹ã¯ãã°ãã¼ãã«ãªã¢ãã¬ã¹ã®ä¸æã¢ãã¬ã¹ãã¨ããäºã«ãªã£ã¦ãã¾ãã¾ããRule 8 ã«ãã©ãçãã°ããã¬ãã£ãã¯ã¹ã®æé·ä¸è´ã§ãå½ç¶ãULA ãé¸æããã¾ãããããããã¨ãç¸æã¨åä¸ãã¬ãã£ãã¯ã¹ãæã£ã¦ãã¦ããã¤ã¾ããç¸æãåä¸ã»ã°ã¡ã³ãã«ãã£ã¦ããå¥ã®ãã¬ãã£ãã¯ã¹ãæã¤ä¸æã¢ãã¬ã¹ãé¸æãããããããã«ã¼ã¿çµç±ã§éä¿¡ãããã¨ã«ãªãã¾ãã
å±è¾±ã®ããªã·ã¼ãã¼ãã«
RFC 3484 ã 6724 ã§æ´æ°ããããã¤ã³ãã®ä¸ã«ã3484 以éã«å¶å®ããã ULA ã«å¯¾ããè¨è¿°*5ã¨èãã¦ããã®ã§ããããããã©ããã¨ããã¨ã10.6. Configuring ULA Preferenceãã§ãããã§æ¸ããã¦ããã®ã¯åã«ãããªã·ã¼ãã¼ãã«ã§ ULA ã®åªå é ä½ãä¸ãã¦ããã¨ãã話*6ã§ãå°ãªãã¨ãããã©ã«ãããªã·ã¼ãã¼ãã«ã§ã¯ãULA ã¯ã°ãã¼ãã«ã¢ãã¬ã¹ã¨åãæ±ãã«ãªã£ã¦ãã¾ãã¾ãã
ä¸æã¢ãã¬ã¹ãä¸å使ããªããã¨ãããã¨ã§ããã°ãä»åã®ã±ã¼ã¹ã¯ Rule 8 ã®ãã¬ãã£ãã¯ã¹æé·ä¸è´ã§æããããã¨ã«ãªãã¾ãããä¸æã¢ãã¬ã¹ã®æç¡ããã¬ãã£ãã¯ã¹ã«ãã£ã¦å¤ããã¨ããã¨ãå ¨ãåããã¬ãã£ãã¯ã¹ãæã¤ãé£ã®ãã¹ãã«å¯¾ããã¢ã¯ã»ã¹ã§ããä¸æã¢ãã¬ã¹ãå©ç¨ãã¦ã«ã¼ã¿è¶ãã®éä¿¡ãè¡ããã¨ã«ãªãã¾ãã
ã¨ãããã¨ã§ãçµå±ãããªã·ã¼ãã¼ãã«ãè¨å®ãã以å¤ã«è§£æ±ºçããªããã¨ãããã¨ã«ãªãã¾ããã
Windows ã§ã®ããªã·ã¼ãã¼ãã«ã®è¨å®æ¹æ³ã«é¢ãã¦ã¯ããnetsh prefixpoliciesããããã§æ¤ç´¢ããã°ããIPv4 ãåªå ããããã¨ããæèã§ããããè¦ã¤ããã§ãããã
æå ã® Windows 7 ã§ã®ããã©ã«ãã§ã¯ä¸è¨ã®ããã«ãªã£ã¦ãã¾ãã
åªå é ä½ ã©ãã« ãã¬ãã£ãã¯ã¹ ---------- ----- -------------------------------- 50 0 ::1/128 40 1 ::/0 30 2 2002::/16 20 3 ::/96 10 4 ::ffff:0:0/96 5 5 2001::/32
ä»åã®ã±ã¼ã¹ã ã¨ãå®å ã¢ãã¬ã¹ã® IPv6 ã¢ãã¬ã¹ã¯ ULA ã®ã¿*7ãªã®ã§ãRule 6 ã§å®å ã¨ã©ãã«ãä¸è´ãããã¦ãã¾ãã°ãçºä¿¡å ã®ã¢ãã¬ã¹ã¨ã㦠ULA ãé¸æããããã¨ã«ãªãã¾ãã
ãªã®ã§ãULA ã®ãã¬ãã£ãã¯ã¹ã®ã©ãã«ãå®ç¾©ããåªå é ä½ã¯é常㮠IPv6 ã¢ãã¬ã¹ã¨åã 40 ã§è¨å®ãã¾ãã*8ã
åªå é ä½ ã©ãã« ãã¬ãã£ãã¯ã¹ ---------- ----- -------------------------------- 50 0 ::1/128 40 6 fd00::/8 40 1 ::/0 30 2 2002::/16 20 3 ::/96 10 4 ::ffff:0:0/96 5 5 2001::/32
ãããããã¨ã§ãULA ãæã¤ããã¡ãµã¼ãã«å¯¾ãã¦ãULA ã®ã¢ãã¬ã¹ã使ã£ã¦ã¢ã¯ã»ã¹ããããã«ãªãã¾ãã*9ã
ããã¦ãæåè¨å®ãæ®ã£ã...
ãã®ããªã·ã¼ãã¼ãã«ãã¯ã©ã¤ã¢ã³ãã¸é ä¿¡ããæ¹æ³ã¯ãActive Directory ã使ã£ã¦ãåå ãã¦ãããã¹ãã«é©ç¨ããäºã¯åºæ¥ãã¿ããã§ãããããããããã¡ã¤ã³ã³ã³ããã¼ã©ã«ç¹ãæã«ãä¸æã¢ãã¬ã¹ãé¸æããããã©ããªãã®ãï¼ ã¨ããçåãããã¾ãã
DHCPv6 㧠stateful ãªã管çãããèªåæ§æããå®ç¾ãããªãããã®ããªã·ã¼ãã¼ãã«ã DHCPv6 ã§é å¸ã§ããªãããã¨æãã®ã§ãããã©ããããããã£ããªãã·ã§ã³ã¯ç¡ãããã§ã*10ã
ããªã·ã¼ãã¼ãã«ã®è¨å®ã¨ããæåè¨å®ãæ®ããã¨ããå±è¾±ã®çµæã«ãªã£ã¦ãã¾ãã¾ãããULA ã®ãã¬ãã£ãã¯ã¹ãããã©ã«ãã®ããªã·ã¼ã¨ãã¦è¨å®ãããããã«ãªãããRFC 6724 ãæ´æ°ããã¦ãULA ã®å®å ã®æã«ãã°ãã¼ãã«ã®ä¸æã¢ãã¬ã¹ãã ULA ãåªå ããããããªã«ã¼ã«ã«ãªã£ã¦æ¬²ããã¨æãã®ã§ãã...ã
*1:è¤æ°ã® A ã¬ã³ã¼ãã§ãã¢ãã¬ã¹ã®ä¸ä½ããããããç¨åº¦çããã¨ããè¡ãå ã®ãããã¯ã¼ã¯ã¯åãã ãããã¨ãããã¨ã§ãã½ã¼ããããã«æ¸ãã±ã¼ã¹ãããã¿ããã§ãã
*2:åç §ï¼ NTT IPv6閉域網フォールバック問題:Geekなぺーじ
*3:RFC 3879 ã«å»æ¢ããçç±ãªã©ãæ¸ããã¦ãã¾ã
*4:RFC 6724 ã®ã2.1. Policy Tableãã«ããã©ã«ããããã¾ã
*5:RFC6724: Default Address Selection for Internet Protocol Version 6 (IPv6):Geekなぺーじ
*6:RFC 6724 ã10.6. Configuring ULA Preferenceãã«ããä¾ã¯ãçºä¿¡å ãå®å ã¨ãã«ã°ãã¼ãã«ã¨ ULA ã®ï¼ã¤ã®ã¢ãã¬ã¹ãæã£ã¦ããæã«ãULA ãåªå ãããªããã¨ããæèãªã®ã§ãä»åã®ã±ã¼ã¹ã¨ã¯ã¡ãã£ã¨éã£ã¦ã¾ãã
*7:ãããããã¡ãµã¼ãã®åå解決ã®çµæã«ã°ãã¼ãã«ãªã¢ãã¬ã¹ãå«ã¾ããã®ã§ããã°ãULA ã®åªå é ä½ãä¸ããæ¹ãè¯ãã§ãããã
*8:å®éã«è¨å®ããã¨ãã«ãnetsh ã® interface ipv6 add prefixpolicies ã§ãããã©ã«ãã®ããªã·ã¼ãã¼ãã«ã«è¿½å ããã¤ããã§ãã¦ãåèµ·åãã¦ç¢ºèªããã¨ãèªåã追å ããããªã·ã¼ã ããå ¥ã£ã¦ããç¶æ ã«ãªãã¾ããããªã®ã§ãä¸åº¦ãããã©ã«ãã®ããªã·ã¼ãåé¤ããèªåã追å ãããããªã·ã¼ã¨ä¸ç·ã«ãå ã®ããã©ã«ãããªã·ã¼ã追å ãã¦ããå¿ è¦ãããã¿ããã§ãã
*9:ãfd00::/8ãããããfc00::/7ãã®æ¹ãæ£ããããããã¾ããããã¨ãããããfd00::/8ãã§å®éã«å©ç¨å¯è½ãªç¶æ ã«ãã ULA ãã«ãã¼ãã¦ãããã¨ã«ãªãã¯ãã
*10:2014-4-28 追è¨ï¼ RFC 7078 ã§ãDHCPv6 ã使ã£ãé å¸æ¹æ³ãå®ç¾©ãããããã§ããä½ããçºè¡ããã®ãä»å¹´ã®ï¼æãä¸è¬çã«å®è£ ãããã®ã¯ãã¾ã å ã®è©±ã§ããã