'무선랜'에 해당되는 글 1건

  1. 2009.03.23 ARM보드 - 무선랜 활성화 및 응용

1. 기본명령어

무선랜 활성화를 위한 모듈 추가(이미 추가 되었다고 반응)

# insmod /lib/modules/gspi.ko
insmod: cannot insert '/lib/modules/gspi.ko': File exists

활성화된 모듈확인
# lsmod
gspi8xxx 229556 1 - Live 0xbf003000
gspi 7828 1 gspi8xxx, Live 0xbf000000

무선랜 검색
# wlanconfig eth0 setuserscan                                         
Driver build with Wireless Extension 19
------------------------------------------------------------------------------
# | ch  | ss  |       bssid       |   cap    |   SSID
------------------------------------------------------------------------------ 
00| 006 | 079 | 00:1b:2f:b6:1a:bc | 0001-I   | ap0159                          
01| 006 | 043 | 00:18:39:a3:42:90 | 0001-I   | EDU_606                         
02| 009 | 081 | 00:18:39:a1:8f:6a | 0001-I   | EDU_601                         
03| 011 | 085 | 00:11:50:f0:da:7a | 0411-IP  | belkin54g                    

아이피 정보조회(윈도우즈 : IPCONFIG)
# ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:1A:6B:9D:4D:09
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:48

드라이버 확장
# wlanconfig eth0 reassociate 00:18:39:a3:42:90 00:1A:6B:9D:4D:09 EDU_606

Driver build with Wireless Extension 19

이더넷 정보확인
# cat /proc/net/wlan/info
driver_name = "wlan"
driver_version = gspi8686-8.70.1.p2-26331-(FP4)
InterfaceName="eth0"
Mode="Managed"
State="Connected"
MACAddress="00:1a:6b:9d:4d:09"
MCCount="1"
ESSID="EDU_606"
Channel="6"
region_code = "10"
MCAddr[0]="01:00:5e:00:00:01"
num_tx_bytes_transmited = "0"
num_rx_bytes_recieved = "532"
num_tx_packets_transmited = "0"
num_rx_packets_received = "9"
num_tx_packets_dropped = "0"
num_rx_packets_dropped = "0"
num_tx_errors= "0"
num_rx_errors= "0"

이더넷 노드 활성화(Ethernet node 활성화)
# ifconfig eth0 192.168.6.11 up

라우터 조회
# route
Kernel IP routing table                                                        
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface  
192.168.6.0     *               255.255.255.0   U     0      0        0 eth0

디폴트 라우트값 추가
# route add default gw 192.168.6.1 eth0

라우트값 삭제
# route del default gw 192.168.6.1 eth0

라우터 조회
# route                                                                        
Kernel IP routing table                                                        
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.6.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.6.1     0.0.0.0         UG    0      0        0 eth0


2. 무선랜 활성화 정리
# ifconfig eth0 down

# ifconfig eth0 192.168.1.111 up

# route add default gw 192.168.1.1 eth0

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

# ping 209.85.171.104
PING 209.85.171.104 (209.85.171.104): 56 data bytes
64 bytes from 209.85.171.104: seq=0 ttl=240 time=151.384 ms
64 bytes from 209.85.171.104: seq=1 ttl=240 time=130.196 ms
Posted by 리트모스
: