免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 960 | 回复: 0
打印 上一主题 下一主题

iwconfig manual & [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-21 21:51 |只看该作者 |倒序浏览
NAME       iwconfig - configure a wireless network interface
SYNOPSIS       iwconfig [interface]
       iwconfig interface [essid X] [nwid N] [mode M] [freq F]
                          [channel C][sens S ][ap A ][nick NN ]
                          [rate R] [rts RT] [frag FT] [txpower T]
                          [enc E] [key K] [power P] [retry R]
                          [commit]
       iwconfig --help
       iwconfig --version
DESCRIPTION       Iwconfig  is  similar  to ifconfig(8), but is dedicated to the wireless
       interfaces. It is used to set the parameters of the  network  interface
       which  are  specific  to the wireless operation (for example : the fre-
       quency).  Iwconfig may also be used to display  those  parameters,  and
       the wireless statistics (extracted from /proc/net/wireless).
       All  these  parameters and statistics are device dependent. Each driver
       will provide only some of them depending on hardware support,  and  the
       range of values may change. Please refer to the man page of each device
       for details.
PARAMETERS       essid  Set the ESSID (or Network Name - in some products it may also be
              called Domain ID). The ESSID is used to identify cells which are
              part of the same virtual network.
              As opposed to the AP Address or NWID which define a single cell,
              the  ESSID  defines  a group of cells connected via repeaters or
              infrastructure, where the user may roam transparently.
              With some cards, you  may  disable  the  ESSID  checking  (ESSID
              promiscuous) with off or any (and on to reenable it).
              If  the  ESSID  of  your  network is one of the special keywords
              (off, on or any), you should use -- to escape it.
              Examples :
                   iwconfig eth0 essid any
                   iwconfig eth0 essid "My Network"
                   iwconfig eth0 essid -- "ANY"
       nwid/domain
              Set the Network ID (in some  products  it  may  also  be  called
              Domain  ID).  As  all  adjacent wireless networks share the same
              medium, this parameter is used  to  differenciate  them  (create
              logical  colocated networks) and identify nodes belonging to the
              same cell.
              This parameter is only used for pre-802.11 hardware, the  802.11
              protocol uses the ESSID and AP Address for this function.
              With  some  cards, you may disable the Network ID checking (NWID
              promiscuous) with off (and on to reenable it).
              Examples :
                   iwconfig eth0 nwid AB34
                   iwconfig eth0 nwid off
       freq/channel
              Set the operating frequency or channel in the  device.  A  value
              below 1000 indicates a channel number, a value greater than 1000
              is a frequency in Hz. You may append the suffix k, M or G to the
              value  (for  example,  "2.46G"  for  2.46 GHz frequency), or add
              enough ’0’.
              Channels are usually numbered starting at 1,  and  you  may  use
              iwlist(8)  to  get the total number of channels, list the avail-
              able frequencies, and display the current frequency as  a  chan-
              nel. Depending on regulations, some frequencies/channels may not
              be available.
              When using Managed mode, most often the  Access  Point  dictates
              the  channel  and  the driver may refuse the setting of the fre-
              quency. In Ad-Hoc mode, the frequency setting may only  be  used
              at  initial  cell  creation,  and may be ignored when joining an
              existing cell.
              You may also use off or auto to let the card pick  up  the  best
              channel (when supported).
              Examples :
                   iwconfig eth0 freq 2422000000
                   iwconfig eth0 freq 2.422G
                   iwconfig eth0 channel 3
                   iwconfig eth0 channel auto
       sens   Set  the  sensitivity threshold. This is the lowest signal level
              for which the hardware will  consider  receive  packets  usable.
              Positive  values  are  assumed  to  be the raw value used by the
              hardware or a percentage, negative values are assumed to be dBm.
              Depending  on  the  hardware  implementation, this parameter may
              control various functions.
              This parameter may control the  receive  threshold,  the  lowest
              signal  level  for which the hardware attempts packet reception,
              signals weaker than this are ignored. This may also controls the
              defer  threshold, the lowest signal level for which the hardware
              considers the channel busy. Proper setting  of  those  threshold
              prevent  the card to waste time receiving background noise. Mod-
              ern designs seems to control those thresholds automatically.
              On modern cards, this  parameter  may  control  handover/roaming
              threshold,  the  lowest  signal  level  for  which  the hardware
              remains associated with the current Access Point. When the  sig-
              nal  level goes below this threshold the card starts looking for
              a new/better Access Point.
              Example :
                   iwconfig eth0 sens -80
       mode   Set the operating mode of the device, which depends on the  net-
              work  topology. The mode can be Ad-Hoc (network composed of only
              one cell and without Access Point), Managed (node connects to  a
              network  composed  of  many Access Points, with roaming), Master
              (the node is the synchronisation master or  acts  as  an  Access
              Point),  Repeater (the node forwards packets between other wire-
              less  nodes),  Secondary  (the  node  acts  as  a  backup   mas-
              ter/repeater), Monitor (the node is not associated with any cell
              and passively monitor all packets on the frequency) or Auto.
              Example :
                   iwconfig eth0 mode Managed
                   iwconfig eth0 mode Ad-Hoc
       ap     Force the card to register to the  Access  Point  given  by  the
              address,  if  it is possible. When the quality of the connection
              goes too low, the driver may revert back to automatic mode  (the
              card selects the best Access Point in range).
              You  may also use off to re-enable automatic mode without chang-
              ing the current Access Point, or you may  use  any  or  auto  to
              force  the  card  to  reassociate with the currently best Access
              Point.
              Example :
                   iwconfig eth0 ap 00:60:1D:01:23:45
                   iwconfig eth0 ap any
                   iwconfig eth0 ap off
       nick[name]
              Set the nickname, or the station name. Some 802.11  products  do
              define  it,  but  this is not used as far as the protocols (MAC,
              IP, TCP) are concerned and completely useless as far as configu-
              ration goes. Only some diagnostic tools may use it.
              Example :
                   iwconfig eth0 nickname "My Linux Node"
       rate/bit[rate]
              For  cards  supporting  multiple  bit rates, set the bit-rate in
              b/s. The bit-rate is the speed at  which  bits  are  transmitted
              over  the  medium,  the  user  speed of the link is lower due to
              medium sharing and various overhead.
              You may append the suffix k, M or G to the value (decimal multi-
              plier  :  10^3,  10^6  and  10^9 b/s), or add enough ’0’. Values
              below 1000 are card specific, usually an index in  the  bit-rate
              list.  Use  auto  to select automatic bit-rate mode (fallback to
              lower rate on noisy channels), which is  the  default  for  most
              cards, and fixed to revert back to fixed setting. If you specify
              a bit-rate value and append auto, the driver will use  all  bit-
              rates lower and equal than this value.
              Examples :
                   iwconfig eth0 rate 11M
                   iwconfig eth0 rate auto
                   iwconfig eth0 rate 5.5M auto
       rts[_threshold]
              RTS/CTS adds a handshake before each packet transmission to make
              sure  that  the  channel  is  clear.  This  adds  overhead,  but
              increases  performance in case of hidden nodes or a large number
              of active nodes. This parameter sets the size  of  the  smallest
              packet for which the node sends RTS ; a value equal to the maxi-
              mum packet size disables the mechanism. You may  also  set  this
              parameter to auto, fixed or off.
              Examples :
                   iwconfig eth0 rts 250
                   iwconfig eth0 rts off
       frag[mentation_threshold]
              Fragmentation allows to split an IP packet in a burst of smaller
              fragments transmitted on the medium. In  most  cases  this  adds
              overhead, but in a very noisy environment this reduces the error
              penalty and allow packets to get  through  interference  bursts.
              This parameter sets the maximum fragment size ; a value equal to
              the maximum packet size disables the mechanism. You may also set
              this parameter to auto, fixed or off.
              Examples :
                   iwconfig eth0 frag 512
                   iwconfig eth0 frag off
       key/enc[ryption]
              Used  to  manipulate  encryption or scrambling keys and security
              mode.
              To set the current encryption key, just enter  the  key  in  hex
              digits  as  XXXX-XXXX-XXXX-XXXX or XXXXXXXX.  To set a key other
              than the current key, prepend  or  append  [index]  to  the  key
              itself (this won’t change which is the active key). You can also
              enter the key as  an  ASCII  string  by  using  the  s:  prefix.
              Passphrase is currently not supported.
              To  change  which  key  is  the currently active key, just enter
              [index] (without entering any key value).
              off and on disable and reenable encryption.
              The security mode may be open or  restricted,  and  its  meaning
              depends  on  the  card  used.  With  most cards, in open mode no
              authentication is  used  and  the  card  may  also  accept  non-
              encrypted  sessions,  whereas  in restricted mode only encrypted
              sessions are accepted and the card will  use  authentication  if
              available.
              If  you  need  to set multiple keys, or set a key and change the
              active key, you need to use multiple key  directives.  Arguments
              can be put in any order, the last one will take precedence.
              Examples :
                   iwconfig eth0 key 0123-4567-89
                   iwconfig eth0 key [3] 0123-4567-89
                   iwconfig eth0 key s:password [2]
                   iwconfig eth0 key [2]
                   iwconfig eth0 key open
                   iwconfig eth0 key off
                   iwconfig eth0 key restricted [3] 0123456789
                   iwconfig eth0 key 01-23 key 45-67 [4] key [4]
       power  Used  to manipulate power management scheme parameters and mode.
              To set the period between wake ups, enter  period  
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP