首页 技术 正文
技术 2022年11月7日
0 收藏 957 点赞 547 浏览 839 个字

1.Linux环境下的无线相关操作命令

interface 指代当前网卡 一般是 wifi0 ,  eth0 ,  ath1等

ifconfig  - 常用查看网络设定及控制网卡(Windows下是ipconfig)   

 命令                     功能
ifconfig                   列出启动的网卡
ifconfig -a                 列出所有网卡,包含停用的网卡
ifconfig [interface] up          将[interdace]启动
ifconfig [interface] down         将[interdace]停用
ifconfig [interface] hw ether [MAC]   将[interdace]修改为[MAC]

  

iwconfig  - 专用于控制及设定无线网卡iw

iwconfig [interface]                            查看无线网卡状态当需要进行WEP相关操作时
iwconfig [interface] key off 禁用WEP密钥
iwconfig [interface] key s:password 设置WEP密钥为ASCII码 设定网卡输出功率
iwconfig [interface] txpower 30mW 将输出功率调为30mW当使用Prism芯片网卡的时候,可以用以下命令转变网卡模式
iwconfig [interface] mode master 转成无线接入点模式
iwconfig [interface] mode managed 转成无线客户端模式

  

iwpriv  - 设定无线网卡驱动程序提供参数.在使用Prism芯片的网卡时,常用到的命令如下:

iwpriv [interface] monitor [mode] [channel]

  其中:

  [mode]可设置的参数为:

    0 = 关闭监听模式

    1 = 在开启监听模式的状态框内加上Prism2相关的headers

    2 = 开启监听模式

  [channel]

    工作频道(1到14)

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,082
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,556
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,406
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,179
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,815
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,898