¾ï¤Ë¥Í¥Ã¥È¥ï¡¼¥¯¥±¡¼¥Ö¥ë¤ò¤Ä¤Ê¤¤¤Ç¤¤¤ë¤È¤¤¤¦ÌÌÅݤʤ³¤È¤ò¤»¤º¤Ë¡¢ ¥³¥ó¥Ô¥å¡¼¥¿¤ò»ÈÍѤǤ¤ë¤³¤È¤Ï¡¢¤È¤Æ¤âÍÍѤǤ·¤ç¤¦¡£ FreeBSD ¤Ï̵Àþ¤Î¥¯¥é¥¤¥¢¥ó¥È¤È¤·¤Æ¡¢ ¤µ¤é¤Ë “¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È” ¤È¤·¤Æ¤â»È¤¨¤Þ¤¹¡£
802.11 ̵Àþ¥Ç¥Ð¥¤¥¹¤ÎÀßÄê¤Ë¤Ï¡¢BSS ¤È IBSS ¤ÎÆó¤Ä¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£
BSS ¥â¡¼¥É¤Ï°ìÈÌŪ¤Ë»È¤ï¤ì¤Æ¤¤¤ë¥â¡¼¥É¤Ç¤¹¡£ BSS ¥â¡¼¥É¤Ï¥¤¥ó¥Õ¥é¥¹¥È¥é¥¯¥Á¥ã¥â¡¼¥É¤È¤â¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤Î¥â¡¼¥É¤Ç¤Ï¡¢ ¿¤¯¤Î̵Àþ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤¬ 1 ¤Ä¤ÎÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤µ¤ì¤Þ¤¹¡£ ¤½¤ì¤¾¤ì¤Î¥ï¥¤¥ä¥ì¥¹¥Í¥Ã¥È¥ï¡¼¥¯¤Ï¸ÇͤÎ̾¾Î¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î̾¾Î¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¤Î SSID ¤È¸Æ¤Ð¤ì¤Þ¤¹¡£
̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤Ï¤³¤ì¤é¤Î̵Àþ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ËÀܳ¤·¤Þ¤¹¡£ IEEE 802.11 ɸ½à¤Ï̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤¬Àܳ¤¹¤ë¤Î¤Ë»ÈÍѤ¹¤ë¥×¥í¥È¥³¥ë¤òµ¬Äꤷ¤Æ¤¤¤Þ¤¹¡£ SSID ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤È¤¤Ï¡¢ ̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤òÆÃÄê¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤Ë·ë¤Ó¤Ä¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ SSID ¤òÌÀ¼¨Åª¤Ë»ØÄꤷ¤Ê¤¤¤³¤È¤Ë¤è¤ê¡¢ ̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤òǤ°Õ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¤È¤â¸Æ¤Ð¤ì¤ë IBSS ¥â¡¼¥É¤Ï¡¢ °ìÂаìÄÌ¿®¤Î¤¿¤á¤ËÀ߷פµ¤ì¤¿ÄÌ¿®Êý¼°¤Ç¤¹¡£ ¼ÂºÝ¤Ë¤ÏÆó¼ïÎà¤Î¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¤¬¤¢¤ê¤Þ¤¹¡£ °ì¤Ä¤Ï IBSS ¥â¡¼¥É¤Ç¡¢¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¡¢¤Þ¤¿¤Ï IEEE ¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¤È¤â¸Æ¤Ð¤ì¤Þ¤¹¡£ ¤³¤Î¥â¡¼¥É¤Ï IEEE 802.11 ɸ½à¤Ëµ¬Äꤵ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤â¤¦°ì¤Ä¤Ï¥Ç¥â¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¤â¤·¤¯¤Ï Lucent ¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É (¤½¤·¤Æ»þ¡¹¡¢Ê¶¤é¤ï¤·¤¤¤³¤È¤Ë¡¢¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É) ¤È¸Æ¤Ð¤ì¤ë¥â¡¼¥É¤Ç¤¹¡£ ¤³¤Î¥â¡¼¥É¤Ï¸Å¤¯¡¢802.11 ¤¬É¸½à²½¤¹¤ë°ÊÁ°¤Î¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¤Ç¡¢ ¤³¤ì¤Ï¸Å¤¤ÀßÈ÷¤Ç¤Î¤ß»ÈÍѤµ¤ì¤ë¤Ù¤¤Ç¤·¤ç¤¦¡£ ¤³¤³¤Ç¤Ï¡¢¤É¤Á¤é¤Î¥¢¥É¥Û¥Ã¥¯¥â¡¼¥É¤Ë¤Ä¤¤¤Æ¤â¤³¤ì°Ê¾å¸ÀµÚ¤·¤Þ¤»¤ó¡£
¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤Ï°ì¤Ä°Ê¾å¤Î̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤¬¡¢ ¤½¤Î¥Ç¥Ð¥¤¥¹¤ò¥»¥ó¥È¥é¥ë¥Ï¥Ö¤È¤·¤ÆÍøÍѤǤ¤ë¤è¤¦¤Ë¤¹¤ë̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ò»ÈÍѤ·¤Æ¤¤¤ë´Ö¡¢ ¤¹¤Ù¤Æ¤Î¥¯¥é¥¤¥¢¥ó¥È¤Ï¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ò²ð¤·¤ÆÄÌ¿®¤·¤Þ¤¹¡£ ²È²°¤ä¿¦¾ì¡¢¤Þ¤¿¤Ï¸ø±à¤Ê¤É¤Î¶õ´Ö¤ò̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤Ç´°Á´¤Ë¥«¥Ð¡¼¤¹¤ë¤¿¤á¤Ë¡¢ Ê£¿ô¤Î¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤¬¤è¤¯»È¤ï¤ì¤Þ¤¹¡£
¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤Ï°ìÈÌŪ¤ËÊ£¿ô¤Î¥Í¥Ã¥È¥ï¡¼¥¯Àܳ (̵Àþ¥«¡¼¥É¤È¡¢ ¤½¤Î¾¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤¹¤ë¤¿¤á¤Î°ì¤Ä°Ê¾å¤ÎÍÀþ¥¤¡¼¥µ¥Í¥Ã¥È¥¢¥À¥×¥¿) ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£
¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤Ï¡¢½ÐÍè¹ç¤¤¤Î¤â¤Î¤ò¹ØÆþ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¤·¡¢ FreeBSD ¤ÈÂбþ¤·¤Æ¤¤¤ë̵Àþ¥«¡¼¥É¤òÁȤ߹ç¤ï¤»¤Æ¡¢ ¼«Ê¬¤Ç¹½ÃÛ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ ¤¤¤¯¤Ä¤â¤Î¥á¡¼¥«¤¬¡¢ ¤µ¤Þ¤¶¤Þ¤Êµ¡Ç½¤ò¤â¤Ã¤¿ÌµÀþ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ª¤è¤Ó̵Àþ¥«¡¼¥É¤òÀ½Â¤¤·¤Æ¤¤¤Þ¤¹¡£
FreeBSD ¤Ç̵Àþ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤òÀßÄꤹ¤ë¤¿¤á¤Ë¤Ï¡¢ ¸ß´¹À¤Î¤¢¤ë̵Àþ¥«¡¼¥É¤¬É¬ÍפǤ¹¡£ ¸½¾õ¤Ç¤Ï Prism ¥Á¥Ã¥×¥»¥Ã¥È¤Î¥«¡¼¥É¤Î¤ß¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£ ¤Þ¤¿ FreeBSD ¤ËÂбþ¤·¤Æ¤¤¤ëÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤âɬÍפˤʤë¤Ç¤·¤ç¤¦ (¤³¤ì¤ò¸«¤Ä¤±¤ë¤Î¤ÏÆñ¤·¤¯¤Ê¤¤¤Ç¤·¤ç¤¦¡£ FreeBSD ¤Ï¿¤¯¤Î°Û¤Ê¤ë¥Ç¥Ð¥¤¥¹¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤é¤Ç¤¹) ¡£ ¤³¤Î¼ê°ú¤¤Ç¤Ï¡¢ ̵Àþ¥Ç¥Ð¥¤¥¹¤ÈÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤ËÀܳ¤·¤Æ¤¤¤ë¥Í¥Ã¥È¥ï¡¼¥¯´Ö¤Î¥È¥é¥Õ¥£¥Ã¥¯¤ò bridge(4) ¤·¤¿¤¤¤È²¾Äꤷ¤Þ¤¹¡£
FreeBSD ¤¬¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ò¼ÂÁõ¤¹¤ë¤Î¤Ë»ÈÍѤ¹¤ë hostap µ¡Ç½¤Ï¥Õ¥¡¡¼¥à¥¦¥§¥¢¤ÎÆÃÄê¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç°ìÈ֤褯Àǽ¤òȯ´ø¤·¤Þ¤¹¡£ Prism 2 ¥«¡¼¥É¤Ï¡¢ 1.3.4 °Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ç»ÈÍѤ¹¤Ù¤¤Ç¤¹¡£ Prism 2.5 ¤ª¤è¤Ó Prism 3 ¥«¡¼¥É¤Ç¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 1.4.9 ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ç»ÈÍѤ¹¤Ù¤¤Ç¤¹¡£ ¤½¤ì¤è¤ê¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ï¡¢ Àµ¾ï¤ËÆ°¤¯¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢Æ°¤«¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¸½»þÅÀ¤Ç¤Ï¡¢¥«¡¼¥É¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤ò¹¹¿·¤¹¤ëÍ£°ì¤ÎÊýË¡¤Ï¡¢ ¥«¡¼¥É¤ÎÀ½Â¤¸µ¤«¤éÆþ¼ê¤Ç¤¤ë Windows® ÍÑ¥Õ¥¡¡¼¥à¥¦¥§¥¢¥¢¥Ã¥×¥Ç¡¼¥È¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò»È¤¦¤â¤Î¤Ç¤¹¡£
¤Ï¤¸¤á¤Ë¥·¥¹¥Æ¥à¤¬ÌµÀþ¥«¡¼¥É¤òǧ¼±¤·¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
# ifconfig -a wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::202:2dff:fe2d:c938%wi0 prefixlen 64 scopeid 0x7 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:09:2d:2d:c9:50 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: no carrier ssid "" stationname "FreeBSD Wireless node" channel 10 authmode OPEN powersavemode OFF powersavesleep 100 wepmode OFF weptxkey 1
ºÙ¤«¤¤¤³¤È¤Ïµ¤¤Ë¤»¤º¡¢ ̵Àþ¥«¡¼¥É¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò¼¨¤¹²¿¤«¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Î¤«¤á¤Æ¤¯¤À¤µ¤¤¡£ PC ¥«¡¼¥É¤ò»ÈÍѤ·¤Æ¤¤¤Æ¡¢ÌµÀþ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òǧ¼±¤Ç¤¤Ê¤¤¾ì¹ç¡¢ ¾Ü¤·¤¤¾ðÊó¤òÆÀ¤ë¤¿¤á¤Ë pccardc(8) ¤È pccardd(8) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤òÄ´¤Ù¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¼¡¤Ë¡¢¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥ÈÍÑ¤Ë FreeBSD ¤Î¥Ö¥ê¥Ã¥¸µ¡Ç½¤òô¤¦Éôʬ¤ò͸ú¤Ë¤¹¤ë¤¿¤á¤Ë¡¢ ¥â¥¸¥å¡¼¥ë¤òÆɤ߹þ¤àɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£ bridge(4) ¥â¥¸¥å¡¼¥ë¤òÆɤ߹þ¤à¤Ë¤Ï¡¢ ¼¡¤Î¥³¥Þ¥ó¥É¤ò¤½¤Î¤Þ¤Þ¼Â¹Ô¤·¤Þ¤¹¡£
# kldload bridge
¥â¥¸¥å¡¼¥ë¤òÆɤ߹þ¤à»þ¤Ë¤Ï¡¢²¿¤â¥¨¥é¡¼¤Ï¤Ç¤Ê¤¤¤Ï¤º¤Ç¤¹¡£ ¤â¤·¤â¥¨¥é¡¼¤¬¤Ç¤¿¤é¡¢¥«¡¼¥Í¥ë¤Ë bridge(4) ¤Î¥³¡¼¥É¤òÆþ¤ì¤Æ¥³¥ó¥Ñ¥¤¥ë¤¹¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥Ö¥ê¥Ã¥¸¤ÎÀ᤬¡¢ ¤³¤Î²ÝÂê¤òÀ®¤·¿ë¤²¤ë¼ê½õ¤±¤ò¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¥Ö¥ê¥Ã¥¸Éôʬ¤¬½àÈ÷¤Ç¤¤¿¤Î¤Ç¡¢ ¤É¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹´Ö¤ò¥Ö¥ê¥Ã¥¸¤¹¤ë¤Î¤«¤ò FreeBSD ¥«¡¼¥Í¥ë¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢sysctl(8) ¤ò»È¤Ã¤Æ¹Ô¤¤¤Þ¤¹¡£
# sysctl net.link.ether.bridge=1 # sysctl net.link.ether.bridge_cfg="wi0,xl0" # sysctl net.inet.ip.forwarding=1
FreeBSD 5.2-RELEASE °Ê¹ß¤Ç¤Ï¡¢¼¡¤Î¤è¤¦¤Ë»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
# sysctl net.link.ether.bridge.enable=1 # sysctl net.link.ether.bridge.config="wi0,xl0" # sysctl net.inet.ip.forwarding=1
¤µ¤Æ¡¢ÌµÀþ¥«¡¼¥É¤òÀßÄꤹ¤ë¤È¤¤Ç¤¹¡£
¼¡¤Î¥³¥Þ¥ó¥É¤Ï¥«¡¼¥É¤ò¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤È¤·¤ÆÀßÄꤷ¤Þ¤¹¡£
# ifconfig wi0 ssid my_net channel 11 media DS/11Mbps mediaopt hostap up stationname "FreeBSD AP"
¤³¤Î ifconfig(8)
¥³¥Þ¥ó¥É¹Ô¤Ï wi0 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò up
¾õÂ֤ˤ·¡¢SSID ¤ò my_net ¤ËÀßÄꤷ¡¢ ¥¹¥Æ¡¼¥·¥ç¥ó̾¤ò FreeBSD AP ¤ËÀßÄꤷ¤Þ¤¹¡£ media
DS/11Mbps
¥ª¥×¥·¥ç¥ó¤Ï¥«¡¼¥É¤ò 11Mbps ¥â¡¼¥É¤ËÀßÄꤷ¡¢¤Þ¤¿ mediaopt
¤ò¼ÂºÝ¤Ë͸ú¤Ë¤¹¤ë¤Î¤ËɬÍפǤ¹¡£ mediaopt hostap
¥ª¥×¥·¥ç¥ó¤Ï¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¥â¡¼¥É¤Ë¤·¤Þ¤¹¡£ channel 11
¥ª¥×¥·¥ç¥ó¤Ï»ÈÍѤ¹¤ë¥Á¥ã¥Í¥ë¤ò 802.11b
¤ËÀßÄꤷ¤Þ¤¹¡£ ³Æµ¬À©ÃÏ°è (regulatory domain) ¤Ç͸ú¤Ê¥Á¥ã¥Í¥ëÈÖ¹æ¤Ï wicontrol(8)
¥Þ¥Ë¥å¥¢¥ë¤ËºÜ¤Ã¤Æ¤¤¤Þ¤¹¡£
¤µ¤Æ¡¢ ¤³¤ì¤Ç´°Á´¤Ëµ¡Ç½¤¹¤ë¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤¬Î©¤Á¾å¤¬¤ê¡¢Æ°ºî¤·¤Æ¤¤¤Þ¤¹¡£ ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢wicontrol(8), ifconfig(8) ¤ª¤è¤Ó wi(4) ¤Î¥Þ¥Ë¥å¥¢¥ë¤òÆɤà¤È¤è¤¤¤Ç¤·¤ç¤¦¡£
¤Þ¤¿¡¢²¼µ¤Î°Å¹æ²½¤Ë´Ø¤¹¤ëÀá¤òÆɤळ¤È¤â¤ª¤¹¤¹¤á¤·¤Þ¤¹¡£
°ìÅÙ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤¬ÀßÄꤵ¤ì¤Æ²ÔƯ¤¹¤ë¤È¡¢ ´ÉÍý¼Ô¤Ï¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤òÍøÍѤ·¤Æ¤¤¤ë¥¯¥é¥¤¥¢¥ó¥È¤ò¸«¤¿¤¤¤È»×¤¦¤Ç¤·¤ç¤¦¡£ ¤¤¤Ä¤Ç¤â´ÉÍý¼Ô¤Ï°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤Ç¤¤Þ¤¹¡£
# wicontrol -l 1 station: 00:09:b7:7b:9d:16 asid=04c0, flags=3<ASSOC,AUTH>, caps=1<ESS>, rates=f<1M,2M,5.5M,11M>, sig=38/15
¤³¤ì¤Ï°ì¤Ä¤Î¶É¤¬¡¢ ɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥Ñ¥é¥á¡¼¥¿¤ÇÀܳ¤·¤Æ¤¤¤ë¤³¤È¤ò¼¨¤·¤Þ¤¹¡£ ɽ¼¨¤µ¤ì¤¿¿®¹æ¤Ï¡¢ ÁêÂÐŪ¤Ê¶¯¤µ¤òɽ¼¨¤·¤Æ¤¤¤ë¤À¤±¤Î¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤ë¤Ù¤¤Ç¤¹¡£ dBm ¤ä¤½¤Î¾¤Îñ°Ì¤Ø¤ÎÊÑ´¹·ë²Ì¤Ï¡¢ °Û¤Ê¤ë¥Õ¥¡¡¼¥à¥¦¥§¥¢¥Ð¡¼¥¸¥ç¥ó´Ö¤Ç°Û¤Ê¤ê¤Þ¤¹¡£
̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤Ï¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¡¢ ¤Þ¤¿¤Ï¾¤Î¥¯¥é¥¤¥¢¥ó¥È¤ËľÀÜ¥¢¥¯¥»¥¹¤¹¤ë¥·¥¹¥Æ¥à¤Ç¤¹¡£
ŵ·¿Åª¤Ë¤Ï¡¢ ̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤¬Í¤·¤Æ¤¤¤ë¥Í¥Ã¥È¥ï¡¼¥¯¥Ç¥Ð¥¤¥¹¤Ï¡¢ ̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É 1 Ëç¤À¤±¤Ç¤¹¡£
̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤òÀßÄꤹ¤ë¤Ë¤Ï¤¤¤¯¤Ä¤«ÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤¾¤ì¤Ï°Û¤Ê¤ë̵Àþ¥â¡¼¥É¤Ë°Í¸¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ °ìÈÌŪ¤Ë¤Ï BSS (¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤òɬÍפȤ¹¤ë¥¤¥ó¥Õ¥é¥¹¥È¥é¥¯¥Á¥ã¡¼¥â¡¼¥É) ¤«¡¢ IBSS (¥¢¥É¥Û¥Ã¥¯¡¢¤Þ¤¿¤Ï¥Ô¥¢¥Ä¡¼¥Ô¥¢¥â¡¼¥É) ¤Î¤É¤Á¤é¤«¤Ç¤¹¡£ ¤³¤³¤Ç¤Ï¡¢¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ÈÄÌ¿®¤ò¤¹¤ë¤Î¤Ë¡¢ ξ¼Ô¤Î¤¦¤Á¤ÇºÇ¤â¹¤Þ¤Ã¤Æ¤¤¤ë BSS ¥â¡¼¥É¤ò»ÈÍѤ·¤Þ¤¹¡£
FreeBSD ¤ò̵Àþ¥¯¥é¥¤¥¢¥ó¥È¤È¤·¤ÆÀßÄꤹ¤ë¤Î¤Ë¡¢ ËÜÅö¤ËɬÍפʤâ¤Î¤Ï¤¿¤Ã¤¿ 1 ¤Ä¤À¤±¤Ç¤¹¡£ FreeBSD ¤¬Âбþ¤·¤Æ¤¤¤ë̵Àþ¥«¡¼¥É¤¬É¬ÍפǤ¹¡£
ÀßÄê¤ò¤Ï¤¸¤á¤ëÁ°¤Ë¡¢ ¤¢¤Ê¤¿¤¬Àܳ¤·¤è¤¦¤È¤¹¤ë̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¤Ä¤¤¤Æ¤¤¤¯¤Ä¤«ÃΤäƤª¤«¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¤³¤ÎÎã¤Ç¤Ï¡¢my_net ¤È¤¤¤¦Ì¾Á°¤Ç°Å¹æ²½¤Ï̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤·¤è¤¦¤È¤·¤Æ¤¤¤Þ¤¹¡£
Note: ¤³¤ÎÎã¤Ç¤Ï°Å¹æ²½¤ò¹Ô¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢ ¤³¤ì¤Ï´í¸±¤Ê¾õ¶·¤Ç¤¹¡£¼¡¤ÎÀá¤Ç¡¢°Å¹æ²½¤ò͸ú¤Ë¤¹¤ëÊýË¡¤È¡¢ ¤Ê¤¼¤½¤ì¤¬½ÅÍפǡ¢ °Å¹æµ»½Ñ¤Ë¤è¤Ã¤Æ¤Ï´°Á´¤Ë¤Ï¤¢¤Ê¤¿¤òÊݸ¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¤Î¤Ï¤Ê¤¼¤«¡¢ ¤È¤¤¤¦¤³¤È¤ò³Ø¤Ö¤Ç¤·¤ç¤¦¡£
¥«¡¼¥É¤¬ FreeBSD ¤Ëǧ¼±¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
# ifconfig -a wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::202:2dff:fe2d:c938%wi0 prefixlen 64 scopeid 0x7 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:09:2d:2d:c9:50 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: no carrier ssid "" stationname "FreeBSD Wireless node" channel 10 authmode OPEN powersavemode OFF powersavesleep 100 wepmode OFF weptxkey 1
¤½¤ì¤Ç¤Ï¡¢¤³¤Î¥«¡¼¥É¤ò¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¹ç¤ï¤»¤ÆÀßÄꤷ¤Þ¤·¤ç¤¦¡£
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net
192.168.0.20 ¤È 255.255.255.0 ¤òÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¤Ç͸ú¤Ê IP ¥¢¥É¥ì¥¹¤È¥Í¥Ã¥È¥Þ¥¹¥¯¤ËÃÖ¤´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤Ï̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤ÈÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¤Î´Ö¤Ç¥Ç¡¼¥¿¤ò¥Ö¥ê¥Ã¥¸¤·¤Æ¤¤¤ë¤¿¤á¡¢ ¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Î¾¤Î¥Ç¥Ð¥¤¥¹¤Ë¤Ï¡¢¤³¤Î¥Ç¥Ð¥¤¥¹¤¬¡¢Â¾¤ÈƱÍͤˡ¢ ÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ë¤¢¤ë¤«¤Î¤è¤¦¤Ë¸«¤¨¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤ì¤ò½ª¤¨¤ë¤È¡¢ ¤¢¤Ê¤¿¤Ïɸ½àŪ¤ÊÍÀþÀܳ¤ò»ÈÍѤ·¤Æ¤¤¤ë¤«¤Î¤è¤¦¤Ë¡¢ ÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Î¥Û¥¹¥È¤Ë ping ¤òÁ÷¤ë¤³¤È¤¬¤Ç¤¤ë¤Ç¤·¤ç¤¦¡£
̵ÀþÀܳ¤Ë´Ø¤¹¤ëÌäÂ꤬¤¢¤ë¾ì¹ç¤Ï¡¢ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
# ifconfig wi0
¤¤¤¯¤é¤«¾ðÊó¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£ ¤½¤ÎÃæ¤Ë°Ê²¼¤Îɽ¼¨¤¬¤¢¤ë¤Ï¤º¤Ç¤¹¡£
status: associated
¤â¤·¤³¤Î¤è¤¦¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¤Èɽ¼¨¤µ¤ì¤Ê¤±¤ì¤Ð¡¢ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤ÎÈϰϳ°¤«¤â¤·¤ì¤Ê¤¤¤·¡¢ °Å¹æ²½¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¤Î¤«¤â¤·¤ì¤Ê¤¤¤·¡¢ ¤Þ¤¿¤ÏÀßÄê¤ÎÌäÂê¤òÊú¤¨¤Æ¤¤¤ë¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£
̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤ò°Å¹æ²½¤¹¤ë¤³¤È¤¬½ÅÍפʤΤϡ¢ ½½Ê¬Êݸ¤ì¤¿Îΰè¤Ë¥Í¥Ã¥È¥ï¡¼¥¯¤òα¤á¤ëǽÎϤ¬¤â¤Ï¤ä¤Ê¤¤¤«¤é¤Ç¤¹¡£ ̵Àþ¥Ç¡¼¥¿¤Ï¤½¤Î¼þÊÕÁ´ÂΤˤ錄¤Ã¤ÆÊüÁ÷¤µ¤ì¤ë¤Î¤Ç¡¢ ¤½¤ì¤òÆɤߤ¿¤¤¤È»×¤¦¿Í¤Ï¤À¤ì¤Ç¤âÆɤळ¤È¤¬¤Ç¤¤Þ¤¹¡£ ¤½¤³¤Ç°Å¹æ²½¤¬Ìò¤ËΩ¤Á¤Þ¤¹¡£ ÅÅÇȤ˺ܤ»¤ÆÁ÷¤é¤ì¤ë¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ ¶½Ì£¤òÊú¤¤¤¿¼Ô¤¬¶õÃ椫¤é¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë¤³¤È¤ò¤º¤Ã¤ÈÆñ¤·¤¯¤·¤Þ¤¹¡£
¥¯¥é¥¤¥¢¥ó¥È¤È¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È´Ö¤Î¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¤â¤Ã¤È¤â°ìÈÌŪ¤ÊÊýË¡¤Ë¤Ï¡¢ WEP ¤È ipsec(4) ¤ÎÆó¼ïÎब¤¢¤ê¤Þ¤¹¡£
WEP ¤Ï Wired Equivalency Protocol (ÌõÃí: ľÌõ¤¹¤ë¤È¡¢ÍÀþÅù²Á¥×¥í¥È¥³¥ë) ¤Îά¸ì¤Ç¤¹¡£WEP ¤Ï̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤òÍÀþ¥Í¥Ã¥È¥ï¡¼¥¯¤ÈƱÄøÅ٤˰ÂÁ´¤Ç³Î¼Â¤Ê¤â¤Î¤Ë¤·¤è¤¦¤È¤¹¤ë»î¤ß¤Ç¤¹¡£ »ÄÇ°¤Ê¤¬¤é¡¢¤³¤ì¤Ï¤¹¤Ç¤ËÇˤé¤ì¤Æ¤ª¤ê¡¢ Çˤë¤Î¤Ï¤½¤ì¤Û¤É¶ìÏ«¤·¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢µ¡Ì©¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¤È¤¤¤¦¾ì¹ç¤Ë¡¢ ¤³¤ì¤ËÍê¤ë¤â¤Î¤Ç¤Ï¤Ê¤¤¤È¤¤¤¦¤³¤È¤â°ÕÌ£¤·¤Þ¤¹¡£
¤Ê¤Ë¤â̵¤¤¤è¤ê¤Ï¤Þ¤·¤Ê¤Î¤Ç¡¢ ¼¡¤Î¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¡¢¤¢¤Ê¤¿¤Î¿·¤·¤¤ FreeBSD ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¾å¤Ç WEP ¤ò͸ú¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
# ifconfig wi0 inet up ssid my_net wepmode on wepkey 0x1234567890 media DS/11Mbps mediaopt hostap
¥¯¥é¥¤¥¢¥ó¥È¤Ë¤Ä¤¤¤Æ¤Ï¼¡¤Î¥³¥Þ¥ó¥É¤Ç WEP ¤ò͸ú¤Ë¤Ç¤¤Þ¤¹¡£
# ifconfig wi0 inet 192.168.0.20 netmask 255.255.255.0 ssid my_net wepmode on wepkey 0x1234567890
0x1234567890 ¤ò¤è¤êÆðۤʥ¡¼¤ËÊѹ¹¤¹¤Ù¤¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
ipsec(4) ¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ç¸ò¤ï¤µ¤ì¤ë¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ë¤¿¤á¤Î¡¢ ¤Ï¤ë¤«¤Ë´è·ò¤Ç¶¯ÎϤʥġ¼¥ë¤Ç¤¹¡£ ¤³¤ì¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Î̵Àþ¥Ç¡¼¥¿¤ò°Å¹æ²½¤¹¤ëÌÀ¤é¤«¤Ë¹¥¤Þ¤·¤¤ÊýË¡¤Ç¤¹¡£ ¥Ï¥ó¥É¥Ö¥Ã¥¯Æâ¤Î IPsec Àá¤Ç ipsec(4) ¥»¥¥å¥ê¥Æ¥£¡¢ ¤ª¤è¤Ó¤½¤Î¼ÂÁõÊýË¡¤Î¾ÜºÙ¤òÆɤळ¤È¤¬¤Ç¤¤Þ¤¹¡£
̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤ò¥Ç¥Ð¥Ã¥°¤·¤¿¤êÀßÄꤹ¤ë¤Î¤Ë»È¤¦¥Ä¡¼¥ë¤¬¤ï¤º¤«¤Ð¤«¤ê¤¢¤ê¤Þ¤¹¡£ ¤³¤³¤Ç¤½¤Î°ìÉô¤È¡¢¤½¤ì¤é¤¬²¿¤ò¤·¤Æ¤¤¤ë¤«ÀâÌÀ¤·¤Þ¤¹¡£
bsd-airtools ¥Ñ¥Ã¥±¡¼¥¸¤Ï¡¢ WEP ¥¡¼¥¯¥é¥Ã¥¥ó¥°¡¢ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¸¡ÃΤʤɤÎ̵ÀþÄÌ¿®¤ò´Æºº¤¹¤ë¥Ä¡¼¥ë¤ò´Þ¤à´°È÷¤µ¤ì¤¿¥Ä¡¼¥ë½¸¤Ç¤¹¡£
bsd-airtools ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï net/bsd-airtools port ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤¤Þ¤¹¡£ ports ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë´Ø¤¹¤ë¾ðÊó¤Ï¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î 第5章 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
dstumbler ¥×¥í¥°¥é¥à¤Ï¡¢ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤Îȯ¸«¤ª¤è¤Ó S/N Èæ¤Î¥°¥é¥Õ²½¤ò¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¥Ä¡¼¥ë¤Ç¤¹¡£ ¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤òΩ¤Á¾å¤²¤ÆÆ°¤«¤¹¤Î¤Ë¶ìÏ«¤·¤Æ¤¤¤ë¤Ê¤é¡¢ dstumbler ¤Ï¤¦¤Þ¤¯¹Ô¤¯¼ê½õ¤±¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¤Î°ÂÁ´À¤ò¥Æ¥¹¥È¤¹¤ë¤Î¤Ë¡¢ “dweputils” (dwepcrack, dwepdump ¤ª¤è¤Ó dwepkeygen) ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢ WEP ¤¬¤¢¤Ê¤¿¤Î̵Àþ°ÂÁ´À¤Ø¤ÎÍ×µá¤ËÂФ¹¤ëÀµ¤·¤¤²ò·èºö¤«¤É¤¦¤«È½ÃǤ¹¤ë¤Î¤ò½õ¤±¤é¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¤³¤ì¤é¤Ï¡¢ÌµÀþ¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ç̵Àþ¥«¡¼¥É¤¬¤É¤Î¤è¤¦¤ËÆ°ºî¤¹¤ë¤«¤òÀ©¸æ¤¹¤ë¥Ä¡¼¥ë¤Ç¤¹¡£ ¾åµ¤ÎÎã¤Ç¤Ï¡¢ÌµÀþ¥«¡¼¥É¤¬ wi0 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¤¢¤ë¤Î¤Ç¡¢wicontrol(8) ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë·è¤á¤Þ¤·¤¿¡£ ¤â¤· Cisco ¤Î̵Àþ¥Ç¥Ð¥¤¥¹¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤Ï an0 ¤È¤·¤ÆÆ°ºî¤¹¤ë¤Ç¤·¤ç¤¦¤«¤é¡¢ ancontrol(8) ¤ò»È¤¦¤³¤È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
ifconfig(8) ¤Ï wicontrol(8) ¤ÈƱ¤¸¥ª¥×¥·¥ç¥ó¤Î¿¤¯¤ò½èÍý¤Ç¤¤Þ¤¹¤¬¡¢ ¤¤¤¯¤Ä¤«¤Î¥ª¥×¥·¥ç¥ó¤ò·ç¤¤¤Æ¤¤¤Þ¤¹¡£ ¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô¤È¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ ifconfig(8) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¸½ºß¤Î¤È¤³¤í (¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È¤È¤·¤Æ) BSS ¥â¡¼¥É¤ËÂбþ¤·¤¿Í£°ì¤Î¥«¡¼¥É¤Ï Prism 2, 2.5 ¤Þ¤¿¤Ï 3 ¥Á¥Ã¥×¥»¥Ã¥È¤òÍøÍѤ·¤¿¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ wi(4) ¤Ë´°Á´¤Ê°ìÍ÷¤¬¤¢¤ê¤Þ¤¹¡£
¸½ºß¡¢FreeBSD ¤Ç¤Ï¡¢¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î 802.11b ̵Àþ¥«¡¼¥É¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£ Prism, Spectrum24, Hermes, Aironet ¤Þ¤¿¤Ï Raylink ¤Î¥Á¥Ã¥×¥»¥Ã¥È¤òÍøÍѤ·¤¿¤Û¤È¤ó¤É¤Î¥«¡¼¥É¤Ï¡¢ (¥¢¥É¥Û¥Ã¥¯¡¢¥Ô¥¢¥Ä¡¼¥Ô¥¢¡¢¤½¤·¤Æ BSS ¤Î) IBSS ¥â¡¼¥É¤Ç̵Àþ¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤È¤·¤ÆÆ°ºî¤¹¤ë¤Ç¤·¤ç¤¦¡£
ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤¤Þ¤¹¡£
FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç)
Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç)
Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£