// Á¦ ¸ñ: À¯¹«¼± °øÀ¯±â Á¦ÀÛ: PCMCIA, HostAP, Bridge ¼³Ä¡ [2]
// ÀÛ¼ºÀÚ: ±è¿µ´ë( http://www.howto.pe.kr )
ÀÌ ¹®¼¿¡¼´Â ¿ÀÇ ¼Ò½º ÇÁ·ÎÁ§Æ®·Î ÁøÇàÁßÀÎ HostAP ¸¦ ÀÌ¿ëÇÏ¿© IEEE802.11b AP¸¦ ¸¸µé¾î º»´Ù.
À¯¼± ȯ°æ¿¡¼ÀÇ Çãºê(Hub) Àåºñ¿Í ºñ½ÁÇÏ°Ô ¹«¼± ·£ Ä«µå¸¦ ÀåÀÛÇÑ ´Ü¸»±â »çÀÌÀÇ Åë½ÅÀ» ¿¬°áÇØÁÖ´Â
Àåºñ¸¦ ¾×¼¼½º Æ÷ÀÎÆ®(AP, AccessPoint)¶ó°í ÇÑ´Ù. ¹«¼± ·£ Ä«µå°¡ ÀåÂøµÈ ÄÄÇ»Å͵鸸À¸·Îµµ P2P
¿Í °°ÀÌ Á÷Á¢ ¹«¼± Åë½ÅÀÌ °¡´ÉÇÏÁö¸¸(ÀÌ·¯ÇÑ ±¸Á¶¸¦ ad-hoc network ¶ó°í ÇÑ´Ù) ¿©±â¼´Â AP ¸¦
±â¹ÝÀ¸·Î ÇÏ´Â infrastructure mode ·Î ±¸ÃàÇÏ°íÀÚ ÇÑ´Ù.
Wireless LAN ¿¡¼ÀÇ serviceÀÇ ±¸ÇöÀ» À§ÇØ host¿¡¼ µ¿À۵Ǵ wireless LAN ¼ºñ½º´Â ±¸Ãà½Ã °èÃþÀûÀÎ
±¸Á¶·Î ÀÌ·ç¾îÁ® ÀÖ´Ù. ÃÖÇÏÀ§ ¹°¸®°èÃþ PCMCIA CARD ¸¦ ½ÃÀÛÀ¸·Î Socket Service, Card Service, Driver
Service, Card Driver ±×¸®°í À̸¦ »ç¿ëÇÏ´Â Application À¸·Î ÀÌ·ç¾îÁ³´Ù.
ÀÌÁß PCMCIA Ä«µåÀÇ °¢Á¾ µ¿ÀÛ¿¡ ÇÊ¿äÇÑ API¸¦ Á¦°øÇÏ´Â µå¶óÀ̹ö·Î µå¶óÀ̹ö ·Îµå ½Ã óÀ½À¸·Î µî·ÏµÇ´Â
Card Service ´Â pcmcia-cs ¸¦ »ç¿ëÇÒ°ÍÀÌ°í ½ÇÁ¦ PCMCIA Card Driver´Â HostAP ¸¦ »ç¿ëÇÒ°ÍÀÌ´Ù.
Âü°í »çÀÌÆ®:
- http://trekweb.com/~jasonb/articles/hostap_20021012.shtml
- http://www.sown.org.uk/index.php/HostAPWalkthru
- http://pachome2.pacific.net.sg/~yanghwee/sub/How-To-wirelessAP.html
¼³Ä¡ÇÒ ÆÄÀÏ ´Ù¿î:
- pcmcia-cs source (pcmcia-cs-3.1.28.tar.gz)
http://pcmcia-cs.sourceforge.net
- HostAP source (hostap-2002-10-12.tar.gz)
http://hostap.epitest.fi/releases
- wireless-tools source (wireless_tools.23.tar.gz)
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html#latest
- bridge-utils source (bridge-utils-0.9.6.tar.gz)
http://bridge.sourceforge.net
1.pcmcia-cs ¼³Ä¡
pcmcia-cs ´Â ¹«¼± ·£ Ä«µå ¿Í ¼ÒÄÏ ÀÎÅÍÆäÀ̽ºÀÇ »çÀÌÀÇ ÀûÀýÇÑ ¼ºñ½º ¼öÇàÀ» À§ÇÑ µå¶óÀ̹ö ¼Ò½º ¹×
½ÇÇà À¯Æ¿¸®Æ¼¸¦ ´ã°í ÀÖ´Ù.
Linux ¿¡¼ Á¦°øÇÏ´Â PCMCIA ÇüÅ´ µÎ°¡ÁöÀÌ´Ù. ù ¹ø°´Â Ä¿³Î¹öÀü 2.4. À̻󿡼 »ç¿ëÇÒ ¼ö ÀÖ´Â
Ä¿³Î PCMCIA ÀÌ°í µÎ ¹ø°´Â PCMCIA Ä«µå ¼ºñ½º ÇüÅ´Ù. Áï Ä¿³Î PCMCIA ´Â Ä¿³Î ³»ºÎ¿¡ Á¸ÀçÇÏ´Â
µå¶óÀ̹öÀ̸ç, PCMCIA Ä«µå ¼ºñ½º´Â ¸ðµâ Çü½ÄÀ¸·Î Ä¿³Î°ú »óÈ£ ÀÎÅÍÆäÀ̽ºÇÏ´Â ¹æ½ÄÀ¸·Î ±¸ÇöµÇ¾î ÀÖ´Ù.
Ä¿³Î 2.4 ÀÌ»óÀ̶ó¸é µÎ °¡Áö¸¦ ¼±ÅÃÇؼ »ç¿ëÇÒ ¼ö ÀÖÁö¸¸ 2.4 ÀÌÀü¿¡¼´Â Ä¿³Î PCMCIA ¸¦ Áö¿øÇÏÁö ¾Ê±â
¶§¹®¿¡ »ç¿ëÇÒ ¼ö ¾ø´Ù. º» ½Ç½À¿¡¼´Â Ä¿³Î PCMCIA ¸¦ »ç¿ëÇÏÁö ¾Ê°í Ä«µå ¼ºñ½º ¹æ½ÄÀ¸·Î ±¸ÇöÇÏ¿©
insmod ¼öÇàÀ» ÅëÇØ Á÷Á¢ ¸ðµâÀ» ¿Ã·Á¼ »ç¿ëÇÏ°Ú´Ù.
¸ÕÀú PCMCIA ¸¦ À§ÇÑ Ä¿³ÎÀ» ¼³Á¤ÇØ¾ß ÇÑ´Ù..
Ä¿³Î ¼Ò½º°¡ ÀÖ´Â µð¸¯Å丮(Linux ÀÇ °æ¿ì´Â º¸Åë /usr/src/linux) ·Î À̵¿ÇÏ¿© make menuconfig ÇÑ´Ù.
[root@cozylinux /]# cd /home/LDS/LDS2000/kernel-2.4.18
[root@cozylinux /]# make menuconfig
¼³Á¤ÀÇ ¸ÞÀÎ ¸Þ´º¿¡¼ "General Setup" ¼ºê ¸Þ´º Ç׸ñÀ¸·Î À̵¿ÇÏ¿© "Support hot-pluggable devices"
Ç׸ñÀ» ¼³Á¤ÇÑ ÈÄ "PCMCIA/CardBus support" Ç׸ñÀ» ¼±ÅÃÇÏ¿© ÁÖµµ·Ï ÇÑ´Ù. ÀÌ°÷¿¡´Â ÀÚ½ÅÀÇ Å¸°Ùº¸µå¿¡
¸Â´Â ÇÁ·Î¼¼¼ ¸ñ·ÏÀÌ ³ªÅ¸³ª¸é ±×°ÍÀ» ¼³Á¤ÇÏ¸é µÈ´Ù. ÀÌ°ÍÀº º¸Åë Ÿ°Ù º¸µå Á¦Á¶È¸»ç¸¶´Ù Ä¿³Î¼Ò½º
ÆÐÄ¡¸¦ ÅëÇؼ Á¦°øµÉ°ÍÀÌ´Ù. ¿©±â¼´Â LDS2000 Ÿ°Ù º¸µå¸¦ »ç¿ëÇϹǷΠ"PXA250/210 support"¸¦ ¼±ÅÃÇß´Ù.
±×¸®°í ¿©±â¼´Â PCMCIA Ä«µå ¼ºñ½º¸¦ ¸ðµâ·Î Á÷Á¢ ¿Ã¸± °ÍÀ̹ǷΠ"Network device support" Ç׸ñÀÇ
"PCMCIA network device support"¸¦ ÇØÁ¦ÇÑ´Ù.
³ªÁß¿¡ ÀÌ·± ¼³Á¤ÀÌ À¯È¿ÇÑÁö´Â Ÿ°Ù ÀåºñÀÇ ºÎÆà °úÁ¤Áß ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¿¡¼ È®ÀÎÇÒ ¼ö ÀÖ´Ù.
Linux Kernel Card Services 3.1.22
options: none
Intel PXA250/210 PCMCIA (CS release 3.1.22)
LDS2000 Xscale PCMCIA Initialize
pcmcia-cs ÀÇ ¾ÐÃàÀ» Ǭ ÈÄ ÇØ´ç µð·ºÅ丮·Î À̵¿ÇÏ¿© config.in ÆÄÀÏÀ» ¼öÁ¤ÇÑ´Ù.
"LINUX" ¿¡´Â Ä¿³Î ¼Ò½º°¡ ÀÖ´Â µð·ºÅ丮¸¦, "PREFIX" ´Â È£½ºÆ® Àåºñ¿¡¼ ŸÄÏ Àåºñ·Î NFS ¸¦ ÅëÇÏ¿©
Àü´ÞÇØÁÙ µð·ºÅ丮(Ÿ°Ù ÀåºñÀÇ NFS Root µð·ºÅ丮)ÀÇ root ¸¦ ¸»ÇÏ¸ç ½ÇÁ¦ ¼³Ä¡ÇÏ°Ô µÇ¸é /sbin ¾Æ·¡¿¡
cardmgr, ifport, ifuser µî°ú °°Àº PCMCIA °ü·Ã À¯Æ¿¸®Æ¼µéÀÌ ¸î°³ ¼³Ä¡µÈ´Ù. "MODDIR" Àº Ÿ°Ù ÀåºñÀÇ
root ¾Æ·¡¿¡ ÀÖ´Â ¸ðµâ µð·ºÅ丮·Î ÀÌ°÷¿¡´Â pcmcia-cs ¿¡¼ Á÷Á¢ ¼³Ä¡ÇÏ´Â ÆÄÀÏÀº ¾øÁö¸¸ ³ªÁß¿¡
HostAP °°Àº PCMCIA Card Driver ¸¦ ¼³Ä¡ÇÑ ÈÄ HostAP ¿¡¼ ¼³Ä¡ÇÑ hostap_cs.o ¸ðµâÀ» pcmcia-ca
¿¡¼ ¼³Ä¡ÇÑ CARD Manager ÀÎ cardmgr ÀÌ ·ÎµåÇϱâ À§ÇØ ÇÊ¿äÇÑ°ÍÀÌ´Ù.
"UCC","KCC","LD" ´Â Å©·Î½º ÄÄÆÄÀÏ·¯ ½ÇÇà ÆÄÀϸíÀ» Àû´Â´Ù. "ARCH" ´Â Çϵå¿þ¾î ¾ÆÅ°ÅØó·Î PXA250 ´Â
ARM °è¿ À̹ǷΠarm À̶ó°í Àû¾ú´Ù.
LINUX=/home/LDS/LDS2000/kernel-2.4.18
PREFIX=/home/LDS/LDS2000/External/RootFS/image
MODDIR=/lib/modules/2.4.18-rmk7-pxa3
UCC=arm-linux-gcc
KCC=arm-linux-gcc
LD=arm-linux-ld
PCDEBUG=
KFLAGS=
UFLAGS=
ARCH=arm
UNSAFE_TOOLS=n
CONFIG_CARDBUS=n
CONFIG_PNP=n
USE_PM=y
CONF_SRC=1
À§ÀÇ ÆÄÀÏ Á¤º¸¸¦ ¼³Á¤ÇÏ¿´´Ù¸é, "make config¡± ¸í·ÉÀÇ ¼öÇàÀ» ÅëÇØ PCMCIA ÀÇ ÀÎÅÍÆäÀ̽º ¼³Á¤ ¹× ÄÄÆÄÀÏ
¼öÇà¿¡ ÇÊ¿äÇÑ ¼³Á¤ Á¤º¸¸¦ ¸ÂÃß¾î MakefileÀ» »ý¼ºÇϵµ·Ï ÇÑ´Ù. ȸ鿡¼ ¹°¾îº¸´Â ³»¿ëµéÀº ÀÌ¹Ì config.in
¿¡ µî·ÏÇßÀ¸¹Ç·Î default °ª ±×´ë·Î ¼³Á¤Çϵµ·Ï Çϸç, ´Ù¸¸ Ä¿³Î ¼Ò½ºÀÇ À§Ä¡°¡ Á¤È®ÇÑÁö¸¦ üũ ÇÏ¿© ¿Ã¹Ù¸¥
µð·ºÅ丮 Á¤º¸¸¦ ÀÔ·ÂÇÏ¿© ÁÖµµ·Ï ÇÑ´Ù. ¶ÇÇÑ ÀÌ ¸í·É¾î¸¦ ÅëÇØ »ý¼ºµÇ´Â config.mk ÆÄÀÏÀ» ¿·¯ PREFIX Ç׸ñÀÌ
¿Ã¹Ù¸¥Áö º¸°í Ʋ¸®´Ù¸é config.in ÀÇ ÇØ´ç Ç׸ñ°ú °°¿¡ ¼öÁ¤ÇÑ´Ù.
¸¶Áö¸·À¸·Î ¡°make all¡± ¸í·É ¼öÇàÀ» ÅëÇØ ÄÄÆÄÀÏÀ» ¼öÇàÇϵµ·Ï Çϸç, ¡°make install¡± ¸í·É ¼öÇàÀ» ÅëÇØ
¼³Ä¡Çϵµ·Ï ÇÑ´Ù.
¼³Ä¡°¡ ¿Ï·áµÈ ÈÄ PREFIX Ç׸ñ¿¡ ¸í½ÃÇÑ µð·ºÅ丮ÀÇ sbin µð·ºÅ丮¿¡´Â ´ÙÀ½°ú °°Àº ÆÄÀÏÀÌ »ý¼ºµÉ°ÍÀÌ´Ù.
cardctl cardmgr dump_cis ftl_check ftl_format ide_info ifport ifuser pack_cis pcinitrd
±×¸®°í ÇÑ°¡Áö ÁÖÀÇÇÒ°ÍÀº ³ªÁß¿¡ cardmgr À» ½ÇÇàÇÒ¶§ modprobe ¸¦ ½ÇÇàÇÒ ¼ö ¾ø´Ù´Â ¸Þ½ÃÁö°¡ ³¯ ¼ö
Àִµ¥ ÀÌ°ÍÀº Ÿ°Ù Àåºñ·Î ÀÓº£µðµå °³¹ß ÅøŶÀ» ¾µ°æ¿ì busybox ¸¦ ¸¹ÀÌ ¾²´Âµ¥ ¿©±â¿¡ modprobe ¸¦
Ãß°¡ÇÏÁö ¾Ê¾Æ¼ /sbin ¾Æ·¡¿¡ modprobe °¡ busybox ·Î ¸µÅ©µÇÁö ¾Ê¾Æ¼ ±×·¸´Ù.
ÀÌ떄´Â busybox ¼Ò½º µå·ºÅ丮·Î À̵¿ÇÏ¿© Config.h ÆÄÀÏ¿¡¼ "#define BB_MODPROBE" À» ã¾Æ ÁÖ¼®À» Á¦°Å
ÇÏ°í ´Ù½Ã ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇÑ´Ù.
Âü°í·Î busybox ÀÇ Makefile Àº ¾Æ·¡¿Í °°´Ù.
CROSS =arm-linux-
CC = $(CROSS)gcc -I/usr/local/LDS-ARM-Linux/arm-linux/include
AR = $(CROSS)ar
STRIP = $(CROSS)strip
PREFIX = /home/LDS/LDS2000/External/RootFS/image
2.HostAP ¼³Ä¡
HostAP´Â Intersil(º¸Åë Prism2/2.5/3) ±â¹ÝÀÇ PCMCIA ¹«¼± Ä«µå¸¦ ÀÌ¿ëÇÏ¿© AccessPoint·Î µ¿ÀÛ½ÃÅ°±â
À§ÇÑ ¸®´ª½º¿ë PCMCIA Card Driver ÀÌ´Ù. Intersil ĨÀ» À§ÇÑ ¶Ç ´Ù¸¥ ÇÁ·ÎÁ§Æ®ÀÎ linux-wlan-ng µµ ÀÖÁö¸¸
ÀÌ°ÍÀ» »ç¿ëÇÏ·Á¸é Intersil ĨÀ» À§ÇÑ Æ¯º°ÇÑ Æß¿þ¾î°¡ ÇÊ¿äÇÏ´Ù. ÀÌ Æß¿þ¾î´Â Intersil °ú ¶óÀ̼¾½º
°è¾àÀÌ ÇÊ¿äÇϱ⠶§¹®¿¡ º¸Åë HostAP¸¦ ¸¹ÀÌ »ç¿ëÇÑ´Ù.
´Ù¿î¹ÞÀº HostAP ÀÇ ¾ÐÃàÀ» Ǭ ÈÄ µð·ºÅ丮·Î À̵¿ÇÏ¿© Makefile À» ¼öÁ¤ÇÑ´Ù.
[root@cozylinux temp]# tar xvfz hostap-2002-10-12.tar.gz
[root@cozylinux temp]# cd hostap-2002-10-12
[root@cozylinux hostap-2002-10-12]# vi Makefile
"KERNEL_PATH" ¿¡´Â Ä¿³Î ¼Ò½º°¡ ÀÖ´Â µð·ºÅ丮¸¦, "PCMCIA_PATH"´Â pcmcia-cs ¾ÐÃàÀ» Ǭ µð·ºÅ丮¸¦
"PREFIX" ´Â È£½ºÆ® Àåºñ¿¡¼ ŸÄÏ Àåºñ·Î NFS ¸¦ ÅëÇÏ¿© Àü´ÞÇØÁÙ µð·ºÅ丮(Ÿ°Ù ÀåºñÀÇ NFS Root
µð·ºÅ丮)ÀÇ root ¸¦ ÀǹÌÇϸç "CC"´Â Å©·Î½º ÄÄÆÄÀÏ·¯ ½ÇÇà ÆÄÀϸíÀ» ±×¸®°í Áß°£Âë¿¡ hostap_cs.conf
ÆÄÀÏÀ» º¹»çÇÏ´Â ½ºÅ©¸³Æ® ¹®ÀåÀÌ Àִµ¥ ÀÌ ºÎºÎ¿¡ ¿À·ù°¡ ÀÖÀ¸¹Ç·Î ¾Æ·¡¿Í °°ÀÌ º¯°æÇÑ´Ù.
KERNEL_PATH=/home/LDS/LDS2000/kernel-2.4.18
PCMCIA_PATH=/home/LDS/LDS2000/External/Wireless/pcmcia-cs-3.1.28
PREFIX=/home/LDS/LDS2000/External/RootFS/image
CC=arm-linux-gcc
....
@if [ ! -r $(PREFIX)/etc/pcmcia/hostap_cs.conf ]; then \
echo "Installing /etc/pcmcia/hostap_cs.conf"; \
cp driver/etc/hostap_cs.conf $(PREFIX)/etc/pcmcia/hostap_cs.conf; \
fi
±×¸®°í µð·ºÅ丮¸¦ º¸¸é pcmcia-cs-patches, kernel-patches µÎ°³ÀÇ µð·ºÅ丮°¡ º¸ÀÏ°ÍÀÌ´Ù. µÎ µð·ºÅ丮
¾È¿¡ README ÆÄÀÏÀÌ ÀÖÀ¸´Ï ÇØ´ç »çÇ×ÀÌ ÀÖ´Ù¸é ÆÐÄ¡¸¦ Àû¿ëÇØ ÁØ´Ù. ƯÈ÷ kernel-patches ¸¦ Àû¿ëÇØ
ÁÖ¾î¾ß¸¸ Ä¿³Î ¼³Á¤ ¸Þ´º¿¡¼ "Host AP driver for Prism2/2.5/3 PC Cards" ¸Þ´º¸¦ º¼ ¼ö ÀÖ´Ù.
HostAP¸¦ ÄÄÆÄÀÏÇÏ°í ¼³Ä¡ ÇÑ´Ù
[root@cozylinux hostap-2002-10-12]# make clean
[root@cozylinux hostap-2002-10-12]# make pccard
[root@cozylinux hostap-2002-10-12]# make install_pccard
HostAP ÄÄÆÄÀϽà .config ÆÄÀÏÀÌ ¾ø´Ù´Â ¿¡·¯³ª modversions.h ÆÄÀÏÀÌ ¾ø´Ù°í ÇÏ¸é ¸ÕÀú ¸®´ª½º Ä¿³ÎÀ»
ÄÄÆÄÀÏ ÇÏ¿©¾ß ÇÑ´Ù.
Makefile ³»ÀÇ MODPATH º¯¼ö¿¡ ÁöÁ¤µÈ µð·ºÅ丮¿¡ º¸¸é net, pcmcia µÎ°³ÀÇ µð·ºÅ丮°¡ ÀÖÀ»°ÍÀÌ´Ù.
pcmcia µð·ºÅ丮 ³»¿¡´Â hostap_cs.o ¸ðµâÀÌ Àִµ¥ ÀÌ°ÍÀÌ PCMCIA ¿ë Ä«µå µå¶óÀ̹öÀÌ¸ç ¸¸¾à PCI ·Î
¼³Ä¡Çß´Ù¸é hostap_pci.o °¡ º¸ÀÏ°ÍÀÌ´Ù.
HostAP ¿Í °ü·ÃµÈ ¼³Á¤À̳ª ³»¿ëÀº Ÿ°Ù ÀåºñÀÇ /etc/pcmcia ¹Ø¿¡ À§Ä¡ÇÏ°í ÀÖÀ¸¸ç, hostap_cs.conf °ú
network.opts ÆÄÀÏÀ» ¼öÁ¤ ÇØÁÖ¸é µÈ´Ù.
¿¹¸¦µé¾î hostap_cs.conf ÀÇ ¸Ç ¾Æ·¡¿¡ °°ÀÌ Àû´Â´Ù¸é,
# Optional configuration parameters for hostap_cs.o
module "hostap_cs" opts "channel=3 iw_mode=3 essid=ssap ignore_cis_vcc=0"
channel Àº AP°¡ »ç¿ëÇÒ ÁÖÆļö ´ë¿ªÀ» ¼³Á¤ÇÏ´Â °ÍÀ̸ç(´ëºÎºÐ1~13¹ø±îÁö ÀÖ´Ù) iw_mode´Â infrastructure
mode ·Î ¼³Á¤ÇÏ´Â °ÍÀÌ°í essid´Â BSSID ÀÇ ±×·ìÀ» ¸¸µé¾î »ç¿ëÇÏ´Â È®ÀåSSID ÀÌ´Ù.
¶ÇÇÑ ¹«¼± ·£Ä«µå°¡ »ç¿ëÇÒ °¡»ó IP¸¦ ¼³Á¤ÇÏ´Â ÆÄÀÏÀº network.opts ÆÄÀÏÀÌ´Ù.
ÇÏÁö¸¸ º» °Á¿¡¼´Â À§ µÎ°³ÀÇ ÆÄÀÏÀ» »ç¿ëÇÏÁö ¾ÊÀ»°ÍÀÌ´Ù. ±× ´ë½Å ´ÙÀ½¿¡ ¼³Ä¡ÇÒ wireless tool ¿¡¼
Á¦°øÇÏ´Â ¸î°¡Áö ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© À§ µÎ°³ÀÇ È¯°æÆÄÀÏÀ» ´ë½ÅÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÒ°ÍÀÌ´Ù.
±×·¯´Ï À§ µÎ°³ÀÇ ÆÄÀÏÀº ¼öÁ¤ÇÏÁö ¸»°í Àú·± ÆÄÀÏÀÌ ÀÖ¾ú´Ù´Â Á¤µµ·Î ³Ñ¾î°£´Ù.
3.wireless-tools ¼³Ä¡
wireless-tools Àº À¯¼± LAN ȯ°æ¿¡¼ ³×Æ®¿öÅ©ÀÇ ÀÎÅÍÆäÀ̽º¸¦ ¼³Á¤Çϱâ À§ÇØ »ç¿ëµÇ´Â ifconfig°ú ºñ½Á
ÇÏ°Ô wireless LAN ȯ°æ¿¡¼ ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º ¼³Á¤¿¡ À¯È¿ÇÑ À¯Æ¿¸®Æ¼µéÀ» ´ã°í ÀÖ´Ù.
´Ù¿î¹ÞÀº ¼Ò½ºÀÇ ¾ÐÃàÀ» Ǭ ÈÄ µð·ºÅ丮·Î À̵¿ÇÏ¿© Makefile À» ¼öÁ¤ÇÑ´Ù.
"PREFIX" ´Â ¿ø·¡ Makefile ¿¡ ¾ø´Â Ç׸ñÀε¥ Æí¸®¸¦ À§ÇØ ³ÖÀº°ÍÀ¸·Î È£½ºÆ® Àåºñ¿¡¼ ŸÄÏ Àåºñ·Î NFS ¸¦
ÅëÇÏ¿© Àü´ÞÇØÁÙ µð·ºÅ丮(Ÿ°Ù ÀåºñÀÇ NFS Root µð·ºÅ丮)ÀÇ root ¸¦ ÀǹÌÇÑ´Ù.
[root@cozylinux temp]# tar xvfz wireless_tools.23.tar.gz
[root@cozylinux temp]# cd wireless_tools.23
[root@cozylinux wireless_tools.23]# vi Makefile
PREFIX=/home/LDS/LDS2000/External/RootFS/image
INSTALL_DIR= $(PREFIX)/usr/local/sbin/
INSTALL_LIB= $(PREFIX)/usr/local/lib/
INSTALL_INC= $(PREFIX)/usr/local/include/
INSTALL_MAN= $(PREFIX)/usr/local/man
CC = arm-linux-gcc
¾Æ·¡¿Í °°ÀÌ ÄÄÆÄÀÏÀ» ÇÏ°í ¼³Ä¡¸¦ ÇÑ´Ù.
[root@cozylinux wireless_tools.23]# make clean
[root@cozylinux wireless_tools.23]# make
[root@cozylinux wireless_tools.23]# make install
¼³Ä¡¸¦ Çϸé À§ÀÇ INSTALL_DIR µð·ºÅ丮 ¾Æ·¡¿¡ ´ÙÀ½°ú °°Àº ¸í·É¾î°¡ »ý¼ºµÈ´Ù.
iwconfig iwlist iwpriv iwspy iwgetid
ÀÌÀü HostAP ¼³Ä¡½Ã hostap_cs.conf, network.opts ÆÄÀÏÀ» ¼öÁ¤ÇÏÁö ¾Ê¾Ò´Âµ¥ ±× ÀÌÀ¯´Â Áö±Ý »ý¼ºµÈ
iwconfig, iwpriv ¸í·É¾î·Î Á÷Á¢ ÇØ´ç ȯ°æ°ªÀ» ÁÙ ¼ö Àֱ⠶§¹®À̸ç ÀÌ·¸°Ô Çϴ°ÍÀÌ PCMCIA ¸¦ »ç¿ëÇÏÁö
¾Ê´Â ¿¹¸¦µé¾î PCI ·£Ä«µå¸¦ »ç¿ëÇÏ´Â »ç¿ëÀڵ鵵 ÀÌ ¸í·É¾îµéÀ» ÀÌ¿ëÇÏ¿© µ¿ÀÏÇÑ ¹æ¹ýÀ¸·Î ȯ°æÀ» ¼³Á¤ÇÒ
¼ö Àֱ⠶§¹®ÀÌ´Ù.
4.bridge-utils ¼³Ä¡
Bridge À¯Æ¿Àº ´Ù¾çÇÑ ÀÌ´õ³Ý ÀÎÅÍÆäÀ̽ºµéÀ» ¿¬°áÇÏ¿© ÇϳªÀÇ Ä¿´Ù¶õ network ±¸¼ºÀ» À§ÇØ »ç¿ëµÇ¸ç,
¿©±â¼´Â Wireless LANÀÇ network°ú wired LAN networkÀÇ Á¢¸ñÀ¸·Î ÅëÇÕ network ȯ°æÀ» ±¸¼ºÇÑ´Ù.
AccessPoint ÀÇ ¿ªÇÒÀÌ ¹«¼±·£Ä«µå¿¡¼ µé¾î¿Â ÆÐŶÀ» À¯¼±·£Ä«µå·Î º¸³»´Â ¿ªÇÒÀ» ÇϹǷΠÀ̸¦ AP¿¡¼´Â
º¸Åë bridge ·Î ±¸ÇöÇÑ´Ù. ±×¸®°í bridge ¿¡ IP¸¦ ºÎ¿©ÇÏ°í NAT¿Í ¹æȺ®À» ±¸¼ºÇÏ¿© ¿Ï¼ºµÇ´Â°ÍÀÌ´Ù.
¸ÕÀú Ä¿³ÎÀ» ´Ù½Ã ÄÄÆÄÀÏ ÇØ¾ß ÇÑ´Ù. ¹«¼± ·£ °ú À¯¼± ³×Æ®¿öÅ© ȯ°æ »çÀÌÀÇ ºê¸´Áö ±â´ÉÀ» À§ÇØ
"802.1d Ethernet Bridging"Ç׸ñÀ» ¼³Á¤ÇÏ¿© ÁÖµµ·Ï ÇÑ´Ù. ±× ¼³Á¤Àº Ä¿³Î ¼³Á¤ ¸ÞÀÎ ¸Þ´º¿¡¼
"Networking options"ÀÇ ¼ºê ¸Þ´º Ç׸ñ¿¡¼ üũ ÇÏ°í ÀÖ´Ù. Ä¿³ÎÀ» ÄÄÆÄÀÏ ÇÑ ÈÄ ´ÙÀ½À» ÁøÇàÇÑ´Ù.
´Ù¿î¹ÞÀº ¼Ò½ºÀÇ ¾ÐÃàÀ» Ǭ ÈÄ µð·ºÅ丮·Î À̵¿ÇÏ¿© configure ¸¦ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÏ¿© Makefile À» ¸¸µç´Ù.
¿É¼Ç ÀÎÀÚ·Î Ä¿³Î ¼Ò½ºÀÇ include À§Ä¡, ÀÌ À¯Æ¿¸®Æ¼µéÀÌ ¼³Ä¡µÉ À§Ä¡(È£½ºÆ® Àåºñ¿¡¼ ŸÄÏ Àåºñ·Î NFS ¸¦
ÅëÇÏ¿© Àü´ÞÇØÁÙ µð·ºÅ丮 Ÿ°Ù ÀåºñÀÇ NFS Root µð·ºÅ丮)¿Í Å©·Î½º ÄÄÆÄÀÏ·¯¿¡ ´ëÇÑ Á¤º¸ µîÀÌ´Ù.
[root@cozylinux temp]# tar xvfz bridge-utils-0.9.6.tar.gz
[root@cozylinux temp]# cd bridge-utils
[root@cozylinux bridge-utils]# ./configure --with-linux=/home/LDS/LDS2000/kernel-2.4.18/include \
--prefix=/home/LDS/LDS2000/External/RootFS/image --host=arm-8xx -build=i686 CC=arm-linux-gcc
¾Æ·¡¿Í °°ÀÌ ÄÄÆÄÀÏÀ» ÇÏ°í ¼³Ä¡¸¦ ÇÑ´Ù.
[root@cozylinux bridge-utils]# make clean
[root@cozylinux bridge-utils]# make
[root@cozylinux bridge-utils]# make install
¼³Ä¡¸¦ Çϸé Ÿ°Ù ÀåºñÀÇ /sbin µð·ºÅ丮 ¾Æ·¡¿¡ ´ÙÀ½°ú °°Àº ¸í·É¾î°¡ »ý¼ºµÈ´Ù.
brctl brctld
5.½ÇÇà ¹× µ¿ÀÛ È®ÀÎ
ÀÌÁ¦ Ä¿³ÎÀ» ´Ù½Ã ÄÄÆÄÀÏÇÑ´Ù. ¾Æ·¡¿¡¼ "make dep" ´Â ¸Å¹ø ¼öÇàÇÒ ÇÊ¿ä°¡ ¾ø´Ù. make ´Â ELF Çü½ÄÀÇ Ä¿³Î
À̹ÌÁö¸¦ »ý¼ºÇϹǷΠ¸Þ¸ð¸®¿¡ Á¦¾àÀÌ Àִ Ÿ°Ù º¸µå¿¡ ¿Ã¸®±â À§ÇØ ¾ÐÃàµÈ ELF ¸¦ À§ÇØ "make zImage"
·Î ÄÄÆÄÀÏ ÇÑ´Ù. ¸¸µç Ä¿³Î À̹ÌÁö¸¦ ¿Ã¸®´Â(flash) ¹æ¹ýÀº Ÿ°Ù º¸µå¸¶´Ù Ʋ¸®¹Ç·Î ¼³¸íÀº »ý·«ÇÑ´Ù.
[root@cozylinux /]# cd /home/LDS/LDS2000/kernel-2.4.18
[root@cozylinux kernel-2.4.18]# make dep
[root@cozylinux kernel-2.4.18]# make clean
[root@cozylinux kernel-2.4.18]# make zImage
Áö±Ý±îÁö ¼³Ä¡ÇÑ ÆÄÀϵéÀ̳ª ȯ°æ ¼³Á¤À» Ÿ°Ù Àåºñ ºÎÆýà ¸¶´Ù ½ÇÇàÇϵµ·Ï Çϱâ À§ÇØ rc.???? °è¿À»
ÆÄÀÏ¿¡ µî·ÏÇØ ³õÀ¸¸é ÆíÇÒ°ÍÀÌ´Ù. ±×·¡¼ º»ÀÎÀÇ °æ¿ì´Â rc.sysinit ¿¡ ¾Æ·¡¿Í °°ÀÌ Â÷·Ê´ë·Î µî·ÏÇÏ¿©
ºÎÆýà ÀÚµ¿ ½ÇÇàµÇµµ·Ï ÇÏ¿´´Ù.
#### [1] HostAP Card Driver ####
insmod /lib/modules/2.4.18-rmk7-pxa3/net/hostap_crypt.o
insmod /lib/modules/2.4.18-rmk7-pxa3/net/hostap_crypt_wep.o
insmod /lib/modules/2.4.18-rmk7-pxa3/net/hostap.o
#### [2] Activate NIC ####
/sbin/ifconfig eth0 211.204.72.60 netmask 255.255.255.0 up
route add default gw 211.204.72.254
route add -host 255.255.255.255 dev eth0
/sbin/ifconfig eth1 0.0.0.0 promisc up
/sbin/cardmgr -ov
/sbin/ifconfig wlan0 down
/sbin/ifconfig wlan0 0.0.0.0 promisc up
#### [3] bridge utils ####
/sbin/brctl addbr br0 # add virtual ethernet bridge interface
/sbin/brctl stp br0 off # spanning tree protocol off: a loop is highly improbable
/sbin/brctl addif br0 eth1 # now, physical ethernet interface become a logical bridge port
/sbin/brctl addif br0 wlan0
/sbin/ifconfig br0 192.168.0.1 netmask 255.255.255.0 up
route add -host 255.255.255.255 dev br0
#### [4] Access Point ####
/usr/local/sbin/iwconfig wlan0 mode master
/usr/local/sbin/iwconfig wlan0 essid ssap
/usr/local/sbin/iwconfig wlan0 nickname "cozykyd's AP (ssap)"
#/usr/local/sbin/iwconfig wlan0 key s:12345
#/usr/local/sbin/iwconfig wlan0 key s:1234567891234
/usr/local/sbin/iwpriv wlan0 prism2_param 3 1
/usr/local/sbin/iwpriv wlan0 prism2_param 8 2
/usr/local/sbin/iwpriv wlan0 prism2_param 9 100
/usr/local/sbin/iwpriv wlan0 prism2_param 10 1
#/usr/local/sbin/iwpriv wlan0 prism2_param 30 1 # Operation not supported
°¢°¢À» ¼³¸íÇϸé,
¸ÕÀú "[1] HostAP Card Driver" ºÎºÐÀº ¸» ±×´ë·Î HostAP ¸¦ ¼³Ä¡ÇÏ¿© »ý¼ºµÈ Ä«µå µå¶óÀ̹ö¸¦ ¸ðµâ·Î
µî·ÏÇÏ´Â °ÍÀÌ´Ù. ÃÑ 3°³ÀÌ´Ù.
¾Æ·¡´Â ½ÇÇà½Ã Ãâ·ÂµÇ´Â ¸Þ½ÃÁöÀÌ´Ù.
Using /lib/modules/2.4.18-rmk7-pxa3/net/hostap_crypt.o
Using /lib/modules/2.4.18-rmk7-pxa3/net/hostap_crypt_wep.o
Using /lib/modules/2.4.18-rmk7-pxa3/net/hostap.o
"[2] Activate NIC" ºÎºÐÀº ³×Æ®¿öÅ© Ä«µå Áï NIC ÀÇ È¯°æÀ» ¼³Á¤ÇÏ´Â ºÎºÐÀÌ´Ù.
º»ÀÎÀÌ »ç¿ëÇϴ Ÿ°Ù º¸µå¿¡´Â CS8900A Ethernet Ä«µå 2Àå ÀÖ´Ù. ±×·¡¼ °¢°¢Àº eth0 ¿Í eth1 ÀÌ´Ù.
ÀÌ 2°³ÀÇ À¯¼± NIC ´Â µ¿ÀÏÇÑ Çãºê¿¡¼ ³ª¿Â ·£¼±À» ²Å¾Æ ÀÎÅͳÝÀÌ °¡´ÉÇÏ°Ô Çß´Ù.
Ȥ½Ã À¯¼± ·£Ä«µå°¡ 2ÀåÀε¥ eth1 ÀÌ ÀâÈ÷Áö ¾Ê´Â´Ù¸é(ÀÌÀ¯´Â º¸Åë Ä¿³ÎÀº ÇϳªÀÇ ethernet Ä«µå¸¸À»
ºÎÆýà °Ë»öÇÏ¸ç ¸¸¾à ã°ÔµÇ¸é ´õÀÌ»óÀÇ °Ë»öÀº ÇÏÁö ¾Ê´Â´Ù. ±×·¯¹Ç·Î Ä¿³Î¿¡°Ô ¼öµ¿À¸·Î ¾Ë·ÁÁÖ¾î¾ß
ÇÑ´Ù) Ä¿³Î ȯ°æ¼³Á¤ÀÇ "Network device support" À¸·Î µé¾î°¡ "Ethernet (10 or 100Mbit)" ºÎºÐ¿¡ º¸¸é
"Ethernet1 support","Ethernet2 support" ¿Í °°Àº üũ ¿É¼ÇÀÌ ÀÖ´Ù¸é µÑ ´Ù üũÇÏ¿© Ä¿³ÎÀ» ÄÄÆÄÀÏ ÇÑ´Ù.
º» °Á¿¡¼´Â È£½ºÆ® Àåºñ¿Í Ÿ°Ù Àåºñ¸¦ NFS ·Î ¿¬°áÇÏ¿© »ç¿ëÇϴµ¥ À̶§ eth0 ¸¦ »ç¿ëÇÑ´Ù. ±×·¯¹Ç·Î
eth0 ´Â ½Å°æ¾µ ÇÊ¿ä ¾ø°í eth1 °ú wlan0 ¸¦ ¼³Á¤ÇÏ´Â ºÎºÐÀ» ÁÖÀDZí°Ô º¸±â ¹Ù¶õ´Ù.
eth1 °ú wlan0 ´Â µÑ ´Ù promiscous mode ·Î ¼³Á¤ÇÏ¿© Àڽſ¡°Ô ¿À´Â MAC ÇÁ·¡ÀÓ »Ó¸¸ ¾Æ´Ï¶ó ¸ðµç
MAC ÇÁ·¡ÀÓÀ» ¹ÞÀ» ¼ö ÀÖµµ·Ï Çß´Ù. ±×¸®°í ¸¶Âù°¡Áö·Î µÑ ´Ù ³×Æ®¿öÅ© ȯ°æ¿¡¼ Åõ¸íÇÑ ÀåÄ¡ÀÎ ºê¸´ÁöÀÇ
Æ÷Æ®·Î »ç¿ëµÉ°ÍÀ̹ǷΠIP °¡ ÇÊ¿ä¾ø¾î "0.0.0.0" IP¸¦ ÁÖ¾î IP ¸¦ Á¦°ÅÇß´Ù
¾Æ·¡´Â ½ÇÇà½Ã Ãâ·ÂµÇ´Â ¸Þ½ÃÁöÀÌ´Ù.
device eth1 entered promiscuous mode
device wlan0 entered promiscuous mode
Áß°£¿¡ cardmgr ½ÇÇà ºÎºÐÀÌ Àִµ¥ ÀÌ°ÍÀº card manager ÇÁ·Î±×·¥ÀÇ ¼öÇàÀ» ÅëÇØ ¹«¼± ·£ Ä«µå µå¶óÀ̹ö¿Í
¼ÒÄÏ µå¶óÀ̹ö°£ÀÇ Ä«µå ¼ºñ½º ¼öÇàÀ» ÅëÇØ ¹«¼± ·£ ÀÎÅÍÆäÀ̽º¸¦ »ý¼ºÇÏ°í ÀÌ¿¡ ´ëÇÑ ÃʱâÈ ÀÛ¾÷À» ¼öÇà
ÇÏ´Â °ÍÀ¸·Î ÀÌ°ÍÀ» ÅëÇÏ¿© hostap_cs.o Card Service ±¸Çö ¸ðµâÀÌ ¸Þ¸ð¸®·Î ¿Ã¶ó¿À´Â °ÍÀÌ´Ù.
¾Æ·¡´Â ½ÇÇà½Ã Ãâ·ÂµÇ´Â ¸Þ½ÃÁöÀÌ´Ù.
cardmgr[26]: starting, version is 3.1.22
cardmgr[26]: watching 2 sockets
cardmgr[26]: initializing socket 0
cardmgr[26]: socket 0: Senao SL-2011CD/SL-2011CDPLUS
cardmgr[26]: product info: "MMC_Technology", "WAVECAST_MW2000PCM_B", "Version 01.02", ""
cardmgr[26]: manfid: 0x0156, 0x0002 function: 6 (network)
cardmgr[26]: executing: 'modprobe hostap_cs'
cardmgr[26]: modprobe exited with status 1
cardmgr[26]: executing: 'insmod /lib/modules/2.4.18-rmk7-pxa3/pcmcia/hostap_cs.o'
hostap_cs: hostap_cs.c 0.0.0 2002-10-12 (SSH Communications Security Corp, Jouni Malinen)
hostap_cs: (c) Jouni Malinen <jkmaline@cc.hut.fi>
cardmgr[26]: + Using /lib/modules/2.4.18-rmk7-pxa3/pcmcia/hostap_cs.o
hostap_cs: index 0x01: Vcc 3.3, Vpp 3.3, irq 28, io 0xf6000000-0xf600003f
hostap_cs: Registered netdevice wlan0
hostap_cs: Registered netdevice wlan0ap for AP management
wlan0: NIC: id=0x800c v1.0.0
wlan0: PRI: id=0x15 v1.1.0
wlan0: STA: id=0x1f v1.4.9
cardmgr[26]: executing: './network start wlan0'
cardmgr[26]: + Sample private network setup
cardmgr[26]: exiting
°¡Àå Áß¿äÇÑ "bridge utils" ºÎºÐÀÌ´Ù.
ÀÌÀü¿¡ "802.1d Ethernet Bridging" Ä¿³Î ¼³Á¤°ú bridge-utils ¼³Ä¡¸¦ ÇßÀ»°ÍÀÌ´Ù.
Áö±Ý ÇÏ°íÀÚ Çϴ°ÍÀº wireless LAN (wlan0)°ú wired LAN (eth1) °úÀÇ ÅëÇÕ(bridge)À¸·Î ¿ÜºÎÀÇ ÀÎÅͳÝ
¸ÁÀ¸·Î ÆÐŶÀ» Àü´ÞÇÏ´Â °ÍÀÌ´Ù. À̸¦ À§Çؼ´Â AP·Î µ¿ÀÛÇÏ´Â ½ºÅ×À̼ÇÀÇ wireless LAN ÀÎÅÍÆäÀ̽º (wlan0)
¿Í wired LAN ÀÎÅÍÆäÀ̽º(eth1)¸¦ bridge ½ÃÄÑ ÇϳªÀÇ ÅëÇÕµÈ ÀÎÅÍÆäÀ̽º(br0)¸¦ »ý¼ºÇϵµ·Ï ÇÑ´Ù.
À̸¦ À§ÇØ brctlÀ̶õ bridge-utils À» »ç¿ëÇÏ´Â °ÍÀÌ´Ù.
¿ø·¡ ºê¸´Áö¶ó´Â °ÍÀº 2°èÃþ Àåºñ·Î¼ Ãæµ¹ Áö¿ªÀ» ºÐ¸® Çϱâ À§ÇØ ÇϳªÀÇ segment ¸¦ ºÐÇÒÇϰųª ¹Ý´ë·Î
°°Àº subnetwork À» Çϳª·Î ÅëÇÕÇÒ¶§µµ »ç¿ëÇÏ´Â °ÍÀ¸·Î ³×Æ®¿öÅ© ȯ°æ¿¡¼ Åõ¸íÇÑ ÀåÄ¡·Î µ¿ÀÛÇϹǷΠIP ÇÒ´çÀ»
ÇÏÁö ¾ÊÀ¸³ª ³ªÁß¿¡ bridge¿¡ SSH ³ª SNMP µéÀ» ÀÌ¿ëÇÏ¿© °ü¸®¸¦ ÇØ¾ß ÇϹǷΠ¿©±â¼´Â IP ¸¦ ÇÒ´çÇØ ÁÖ¾ú´Ù.
IP´Â ¹Ýµå½Ã ÁÙ ÇÊ¿ä´Â ¾ø´Ù. ¿Ö³ÄÇϸé bridge ´Â wlan0 ¿¡¼ ¹ÞÀº ÇÁ·¡ÀÓÀ» eth1 À¸·Î ¹Ù·Î Àü´ÞÇÏ°í ±× ¹Ý´ë
µ¿ÀÛµµ ÇÏ¿© ´Ü¼øÈ÷ ÇÁ·¡ÀÓÀ» ¾ç¹æÇâÀ¸·Î Àü´ÞÇÏ´Â ¿ªÇÒÀ̱⠶§¹®ÀÌ´Ù.
¾Æ·¡´Â ½ÇÇà½Ã Ãâ·ÂµÇ´Â ¸Þ½ÃÁöÀÌ´Ù.
br0: port 2(wlan0) entering listening state
br0: port 1(eth1) entering listening state
br0: port 1(eth1) entering learning state
br0: port 2(wlan0) entering forwarding state
br0: topology change detected, propagating
¸¶Áö¸·À¸·Î "[4] Access Point" ºÎºÐÀÌ´Ù.
wireless-tools ¼³Ä¡½Ã hostap_cs.conf, network.opts ÆÄÀÏÀ» ¼öÁ¤ÇÏÁö ¾Ê°í iwconfig, iwpriv ¸í·É¾î·Î Á÷Á¢
ÇØ´ç ȯ°æ°ªÀ» ÁÙ ¼ö ÀÖ´Ù°í Çߴµ¥ ¹Ù·Î ÀÌ ºÎºÐÀÌ´Ù.
À§¿¡¼ ºÎÅÍ Â÷·Ê´ë·Î ¼³¸íÇϸé "mode master" ´Â ÀÌ wlan0 ·£Ä«µå´Â AP ·Î µ¿ÀÛÇÑ´Ù´Â ÀǹÌÀÌ´Ù.
¸¸¾à ¸®´ª½º¿¡ AP ·Î µ¿ÀÛÇÏ´Â ¹«¼±·£ÀÌ ¾Æ´Ñ ´ÜÁö Ŭ¶óÀ̾ðÆ®·Î¼ ¹«¼±·£À» À©ÇÑ´Ù¸é ¿©±â¿¡ "mode managed"
¸¦ Àû¾îÁÖ¸é µÈ´Ù. È®Àå SSID´Â "ssap" ·Î ¼³Á¤ÇÏ´Â °ÍÀÌ°í ÀÌ AP ÀÇ ³×Æ®¿öÅ© º°ÄªÀº "cozykyd's AP (ssap)"
·Î Çϴ°ÍÀÌ´Ù. ¹Ù·Î ¾Æ·¡ µÎ ÁÙÀº ÁÖ¼®À¸·Î ó¸®Çسù´Âµ¥ ÀÌ°ÍÀº ¹«¼± ·£ º¸¾ÈÀÇ ±âº» ¿ä¼ÒÀÎ WEP(Wired
Equivalent Privacy) Å°¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀ» º¸¿©ÁÖ±â À§ÇØ Àû¾î³õÀº °ÍÀÌ´Ù.
¾Æ·¡ ´Ü¶ôÀÇ "iwpriv" ¸í·É¾îµéÀº ¹«¼±·£ µð¹ÙÀ̽º µå¶óÀ̹öÀÇ ÆĶó¹ÌÅ͸¦ º¯°æÇÏ´Â ºÎºÐµé·Î Â÷·Ê´ë·Î
beacon °£°Ý(3), beacon Á¤Ã¥ ¼³Á¤(8), STA ¸®½ºÆ® Á¦°Å ½ÃÁ¡(9), ºê¸´Áö ÆÐŶ Á¤Ã¥(10) À» ¸»Çϸç
¸¶Áö¸·°ÍÀº Çâ»óµÈ ÆÐŶ Á¤Ã¥(30) Àε¥ ÀÌ°ÍÀº ³ª¿ÂÁö ¾ó¸¶ ¾ÈµÈ ÆĶó¹ÌÅÍ¶ó º»ÀÎÀÇ ·£Ä«µå¿¡¼´Â ¼³Á¤ÀÌ
¾ÈµÇ´Â ÆĶó¹ÌÅÍ¿´´Ù.
½ÇÁ¦ ȯ°æÀÌ ¼³Á¤µÈ ȸéÀ» ÀûÀýÇÑ ¸í·É¾î¸¦ »ç¿ëÇÏ¿© º¸¿©ÁÙ°ÍÀÌ´Ï °¢°¢ÀÇ ¸í·É¾î »ç¿ë¹ýÀº °¢ÀÚ ¸Þ´º¾óÀ»
¼÷ÁöÇÏ¿© ÀÍÈ÷±â ¹Ù¶õ´Ù.
[root@cozyLDS etc]$ifconfig
br0 Link encap:Ethernet HWaddr 00:0A:D4:00:31:2C
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8974 errors:0 dropped:0 overruns:0 frame:0
TX packets:375 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1145540 (1.0 Mb) TX bytes:33983 (33.1 kb)
eth0 Link encap:Ethernet HWaddr 00:50:DA:D0:33:CD
inet addr:211.204.72.60 Bcast:211.204.72.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45713 errors:3 dropped:3 overruns:0 frame:0
TX packets:13553 errors:0 dropped:0 overruns:0 carrier:0
collisions:318 txqueuelen:100
RX bytes:8316848 (7.9 Mb) TX bytes:1989440 (1.8 Mb)
Base address:0x300
eth1 Link encap:Ethernet HWaddr 00:0A:D4:00:31:2C
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:8977 errors:0 dropped:0 overruns:0 frame:0
TX packets:373 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1271464 (1.2 Mb) TX bytes:33899 (33.1 kb)
Interrupt:35 Base address:0x300
wlan0 Link encap:Ethernet HWaddr 00:30:0D:1A:FA:72
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:23904 (23.3 kb)
Interrupt:28
[root@cozyLDS etc]$iwconfig wlan0
wlan0 IEEE 802.11-b ESSID:"ssap" Nickname:"cozykyd's AP (ssap)"
Mode:Master Frequency:2.422GHz Access Point: 00:30:0D:1A:FA:72
Bit Rate:11Mb/s Tx-Power:-15 dBm Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:257 Invalid misc:101027 Missed beacon:0
[root@cozyLDS etc]$brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000ad400312c no eth1
wlan0
[root@cozyLDS etc]$brctl showmacs br0
port no mac addr is local? ageing timer
1 00:0a:d4:00:31:2c yes 0.00
2 00:30:0d:1a:fa:72 yes 0.00
1 00:50:da:d0:33:cd no 15.72
[root@cozyLDS etc]$iwlist wlan0 channel
wlan0 14 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
[root@cozyLDS etc]$iwlist wlan0 rate
wlan0 4 available bit-rates :
1 Mb/s
2 Mb/s
5.5 Mb/s
11 Mb/s
[root@cozyLDS etc]$iwlist wlan0 key
wlan0 2 key sizes : 40, 104bits
4 keys available :
[1]: off
[2]: off
[3]: off
[4]: off
Current Transmit Key: [0]
¾Æ·¡´Â proc ÆÄÀÏÀ» ÅëÇÏ¿© ÇöÀç wlan0 ÀÇ »óŸ¦ ¾Ë ¼ö ÀÖ´Ù.
[root@cozyLDS net]$cat /proc/net/wireless
Inter-| sta-| Quality | Discarded packets | Missed
face | tus | link level noise | nwid crypt frag retry misc | beacon
wlan0: 0000 0 0 0 0 0 0 257 104039 0
¾Æ·¡´Â ÇöÀç AP ¿¡ Á¢¼Ó(association)ÇÑ »ç¿ëÀÚÀÇ MAC ÁÖ¼Ò Çϳª°¡ º¸À̴ ȸéÀÌ´Ù.
[root@cozyLDS wlan0]$ls -la /proc/net/hostap/wlan0/
dr-xr-xr-x 2 root root 0 .
dr-xr-xr-x 3 root root 0 ..
-r--r--r-- 1 root root 0 00:e0:63:50:9a:9e
-r--r--r-- 1 root root 0 ap_debug
-r--r--r-- 1 root root 0 debug
-r--r--r-- 1 root root 0 pda
-r--r--r-- 1 root root 0 registers
-r--r--r-- 1 root root 0 scan_results
-r--r--r-- 1 root root 0 stats
-r--r--r-- 1 root root 0 wds
¾Æ·¡¿Í °°ÀÌ ÇÏ¿© Á¢¼ÓÇÑ »ç¿ëÀÚÀÇ ÀÚ¼¼ÇÑ ÇöÀç ¹«¼± ³×Æ®¿öÅ© »óŸ¦ ¾Ë ¼ö ÀÖ´Ù.
[root@cozyLDS wlan0]$cat /proc/net/hostap/wlan0/00\:e0\:63\:50\:9a\:9e
STA=00:e0:63:50:9a:9e
users=0
aid=1
flags=0x0027 AUTH ASSOC PS AUTHORIZED
capability=0x01
listen_interval=0
supported_rates=
jiffies=742201
last_auth=0
last_assoc=0
last_rx=742192
last_tx=719499
rx_packets=1032
tx_packets=5
rx_bytes=6359
tx_bytes=1260
buffer_count=0
last_rx: silence=13 signal=63 rate=20 flow=0
tx_rate=110
tx[1M]=0
tx[2M]=0
tx[5.5M]=0
tx[11M]=9
rx[1M]=0
rx[2M]=996
rx[5.5M]=5
rx[11M]=38
txexc=0
¸ðµç ¼³Á¤À» ¸¶ÃÆ´Ù.
±â¾ïÇØ¾ß ÇÒ°ÍÀº Áö±Ý±îÁö AccessPoint ¸¦ ¼³Ä¡ÇÑ °ÍÀÌÁö À¯¹«¼± °øÀ¯±â¸¦ ¼³Ä¡ÇÑ°ÍÀº ¾Æ´Ï¶ó´Â Á¡ÀÌ´Ù.
ÀÏ´Ü Á¦ÀÛµÈ AP ¸¦ Å×½ºÆ®Çϱâ À§ÇÏ¿© ¹«¼± ·£Ä«µå°¡ ²ÅÈù ÀÏ¹Ý PC ¸¦ ÁغñÇÏ¿© ÇöÀç Á¦ÀÛÇÑ AP °¡ Á¢¼Ó
°¡´ÉÇÑ AP ·Î ÀâÈ÷´ÂÁö È®ÀÎÇÏ°í(°¡Àå ½¬¿î ¹æ¹ýÀº SSID "ssap" °¡ º¸ÀÌ´ÂÁö È®ÀÎÇÏ¸é µÈ´Ù) ¸¸¾à º¸ÀÎ
´Ù¸é Á¢¼ÓÀ» ÇÑ´Ù. À̶§ ÁÖÀÇÇÒ°ÍÀº ¾ÆÁ÷ DHCP ¸¦ °¡µ¿ÇÏÁö ¾ÊÀ¸¹Ç·Î ÀÏ¹Ý PC ÀÇ ¹«¼± ·£Ä«µåÀÇ IP ¼³Á¤Àº
Á¤Àû ȯ°æ(IP,Gateway,DNS ¸¦ ¼öµ¿À¸·Î ÁöÁ¤)À¸·Î ¼³Á¤ÇØ¾ß ÇÑ´Ù.
ÁÖÀÇÇÒ°ÍÀº ÇöÀç Á¦ÀÛÇÑ AP´Â WEP À» »ç¿ëÇÏÁö ¾ÊÀ¸¹Ç·Î ÀÏ¹Ý PCÀÇ ¹«¼±·£ ȯ°æ¼³Á¤¿¡ WEP À» ¼³Á¤ÇÏÁö
¸»¾Æ¾ß ÇÑ´Ù. º¸¾ÈÀÌ ¿°·ÁµÇ¸é ¾çÂÊ ¸ðµÎ ¼³Á¤ÇÑ ÈÄ Å×½ºÆ® Çغ¸±â ¹Ù¶õ´Ù.
|
|