配置静态ip方法分享:
通过串口命令行输入如下命令:

1. 添加无线网络接入点(AP) 及其 密码:
# wpa_cli -p /data/misc/wpa_supplicant
wpa_cli v0.5.11
Copyright (c) 2004-2008, Jouni Malinen and contributors              
                                                                               
This program is free software. You can distribute it and/or modify it          
under the terms of the GNU General Public License version 2.                   
                                                                               
Alternatively, this software may be distributed under the terms of the         
BSD license. See README and COPYING for more details.                          
                                                                               
                                                                               
Selected interface 'eth0'                                                      
                                                                               
Interactive mode

> add_network
0
> set_network 0 ssid "camct_backup"
OK
> set_network 0 key_mgmt NONE
OK
>                           
>
> set_network 0 wep_key0 12345678901234567890123456
OK
> binder: release 1142:1142 transaction 2748 out, still active
select_network 0
OK
<2>CTRL-EVENT-STATE-CHANGE id=-1 state=2
>status                                                                          
bssid=00:00:00:00:00:00                                                        
ssid=camct_backup                                                              
id=0                                                                           
pairwise_cipher=WEP-104                                                        
group_cipher=WEP-104                                                           
key_mgmt=NONE                                                                  
wpa_state=COMPLETED           
      
2. 配置ip地址:

#wpa_supplicant -Dwext -ieth0 -c /data/misc/wifi/wpa_supplicant.conf -B
命令解释:
        参数-B代表后台运行,-ieth0代表使用设备eth0,-Dwex代表网卡芯片是wex,-c指定配置文件。

查看配置
#wpa_cli -p /data/misc/wpa_supplicant
>status                                                                   bssid=00:00:00:00:00:00                                                         ssid=camct_backup                                                               id=0                                                                            pairwise_cipher=WEP-104                                                         group_cipher=WEP-104                                                           
key_mgmt=NONE   
wpa_state=COMPLETED 
配置ip:
#ifconfig eth0 192.168.177.33
之后再查看配置会看到 ip_address=192.168.177.33

最新文章

  1. html5 拖拽函数1--不兼容火狐
  2. RASPBERRY PI 外设学习资源
  3. arduino api手册
  4. springmvc 表单字段list提交问题
  5. 引用CSS文件到html网页里方法
  6. 重拾C,一天一点点_12
  7. php 返回json 解析 报Wide character in print
  8. Python中:self和__init__的含义 + 为何要有self和__init__
  9. 统一横轴墨卡托投影(UTM)
  10. javascript 学习总结(一)
  11. ORM以及Django使用ORM创建表
  12. GC roots
  13. kubectl常用命令汇总
  14. centos7下kafka集群安装部署
  15. .net Core Abp See config settings - &quot;CustomSchemaIds&quot; for a workaround
  16. 最简单的操作 jetty IDEA 【debug】热加载
  17. jqgrid 使用自带的行编辑
  18. Linux - awk 文本处理工具二
  19. shell 命令参数
  20. jsp 页面和 jsp标记

热门文章

  1. mac 下svn降级
  2. Java_Activiti5_菜鸟也来学Activiti5工作流_之初识常用服务类和数据表(二)
  3. hibernate4.3.8整合struts2过程中遇到的问题
  4. 使用AutoMapper实现Dto和Model之间自由转换
  5. cocos2dx解析lua table数据结构 简易版.
  6. SGU 165.Basketball
  7. 【BZOJ1012】【树状数组求区间最值】最大数maxnumber
  8. css3字阴影text-shadow
  9. OC 字符和日期的互转
  10. 使用Raphael 画图(三) 事件 (javascript)