NIC Driver : Intel Pro Wireless 2200BG

1. 첨부된 파일을 설치한다(패키지형식)

 - iwi-0.3 : 무선랜 드라이버

 - wificonfig-0.3 : 무선랜 관리 명령어

wificonfig-0.3-pkg.tar.gz

* 드라이버 설치후 재부팅이 필요없음

 

2. 실제 설정 스크립트

root@hosts # dladm show-dev
rtls0  link: unknown speed: 0     Mbps duplex: unknown
iwi0  link: unknown speed: 0     Mbps duplex: unknown -> 패키지 설치후 생기는 무선랜 인터페이스
root@hosts # ifconfig iwi0 plumb
root@hosts # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000
iwi0: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
 inet 0.0.0.0 netmask 0
 ether 0:e:35:73:cb:8

root@hosts # dladm show-dev
rtls0  link: unknown speed: 0     Mbps duplex: unknown
iwi0  link: unknown speed: 0     Mbps duplex: unknown
root@hosts # ifconfig iwi0 plumb
root@hosts # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000
iwi0: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
 inet 0.0.0.0 netmask 0
 ether 0:e:35:73:cb:8
root@hosts# wificonfig
 wificonfig [-R root_path][-i interface] autoconf [wait={n|forever}]
 wificonfig [-R root_path][-i interface] connect profile [wait={n|forever}]
 wificonfig [-R root_path][-i interface] connect essid [wait={n|forever}]
 wificonfig [-R root_path][-i interface] disconnect
 wificonfig [-R root_path][-i interface] getparam [parameter [...]]
 wificonfig [-R root_path][-i interface] setparam [parameter=value [...]]
 parameters:
  bssid   - read only: 6 byte mac address of base station
  essid   - name of the network, a string of up to 32 chars
  bsstype   - bss(ap, infrastructure), ibss(ad-hoc) or auto
  createibss  - flag to identify whether a ibss is to be
       created when the network to connect is
       not available, yes or no
  channel   - channel(used only when creating an ibss)
       valid value:
      802.11a: 0-99
      802.11b: 1-14
      802.11g: 1-14
  rates   - set of rates, seperated by ',' valid rates:
       1,2,5.5,6,9,11,12,18,22,24,33,36,48 and 54
  powermode  - off, mps or fast
  authmode  - opensystem or shared_key
  encryption  - none or wep
  wepkey|1-4  - write only:
       5 chars or 10 hex digits for 40bit wepkey;
       13 chars or 26 hex digits for 128bit wepkey
  wepkeyindex  - an integer within the range 1-4
  signal   - read only: signal strength from 0 to 15
  radio   - on or off
  proto   - WPA, RSN: list of accepted protocols
       WPA = WPA/IEEE 802.11i/D3.0
       RSN = WPA2/IEEE 802.11i
  key_mgmt  - WPA-PSK, WPA-EAP, IEEE8021X, NONE
       List of accepted authenticated key management protocols
  pairwise  - CCMP, TKIP: list of accepted pairwise (unicast) ciphers for WPA
  psk   - WPA preshared key
  group   - CCMP, TKIP, WEP104, WEP40
       List of accepted group (broadcast/multicast) ciphers for WPA
  eap   - TLS: space-separated list of accepted EAP methods
       TLS = EAP-TLS (client and server certificate)
  identity  - Identity string for EAP
  ca_cert   - File path to CA certificate file
  client_cert  - File path to client certificate file (PEM/DER)
  private_key  - File path to client private key file (PEM/DER/PFX)
  private_key_passwd - Password for private key file
 wificonfig [-R root_path][-i interface] restoredef
 wificonfig [-R root_path][-i interface] scan
 wificonfig [-R root_path][-i interface] showstatus
 wificonfig [-R root_path][-i interface] setwepkey 1|2|3|4

 wificonfig [-R root_path] createprofile profile parameter=value [...]
 wificonfig [-R root_path] deleteprofile profile1 [profile2 [...]]
 wificonfig [-R root_path] showprofile profile1 [profile2 [...]]
 wificonfig [-R root_path] setprofilewepkey profile 1|2|3|4
 wificonfig [-R root_path] getprofileparam profile [parameter [...]]
 wificonfig [-R root_path] setprofileparam profile [parameter=value [...]]

 wificonfig [-R root_path] history
 wificonfig [-R root_path] listprefer
 wificonfig [-R root_path] removeprefer profile
 wificonfig [-R root_path] setprefer profile

 

root@hosts # wificonfig -i iwi0 scan  --->  무선인터넷 검색
essid   bssid                      type            encryption      signallevel
^__^    00:0e:e8:48:99:de   access point        wep             12


root@hosts # wificonfig createprofile home essid=^__^ encryption=WEP wepkey1=hosts

->프로필 생성(프로필생성이름 :home, 무선네트워크이름:^__^, 암호화:WEP, 인증키:hosts


root@hosts # wificonfig showprofile
[[home]
        essid=^__^
        encryption=WEP
        wepkey1=*****

root@hosts # wificonfig -i iwi0 connect home -->  저장한 프로파일을 통해 접속
wificonfig: connecting to profile 'home' --> 연결은 되었지만 실제 IP를 가져오지는 못함
root@hosts # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index  1
        inet 127.0.0.1 netmask ff000000
iwi0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 0.0.0.0 netmask 0
        ether 0:e:35:73:cb:8

root@hosts # ifconfig iwi0 dhcp start --->  dhcp 활성화를 통해 IP가져옴
root@hosts # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index  1
        inet 127.0.0.1 netmask ff000000
iwi0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.10.8 netmask ffffff00 broadcast 192.168.10.255
        ether 0:e:35:73:cb:8
root@hosts # ping yahoo.com
yahoo.com is alive