CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 5734|回复: 9

cc-a80 wifi静态地址没有办法连通外网

[复制链接]
发表于 2016-1-9 19:06:45 | 显示全部楼层 |阅读模式
本帖最后由 jingwang 于 2016-1-9 19:37 编辑

auto wlan0
iface wlan0 inet static
address 192.168.0.118
gateway 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
nameserver 114.114.114.114
broadcast 192.168.0.255
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid G
wpa-ssid G
wpa-psk 1111111111111


大牛们  能不能把 固定wifi 配置文件 上传一份 给参考参考
回复

使用道具 举报

 楼主| 发表于 2016-1-9 19:07:53 | 显示全部楼层
可以拼通 路由

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-1-9 19:08:29 | 显示全部楼层
无法ping外网

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-1-9 19:09:29 | 显示全部楼层
尝试  直接ping ip  测试  是否是dns配置的问题
发现ip 也不能ping

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-1-9 19:09:49 | 显示全部楼层
应该是 网络配置的问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-1-9 19:10:29 | 显示全部楼层

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo eth0
allow-hotplug eth0
iface lo inet loopback
iface eth0 inet dhcp
#iface eth0 inet static

#address 192.168.1.105
#gateway 192.168.1.1
#netmask 255.255.255.0
#network 192.168.1.0
#broadcast 192.168.1.255


#this is open wifi setting."your-ssid-here" and "your-passwd-here" should been replase with yours and remove the annotation

#auto wlan0
#iface wlan0 inet dhcp
#pre-up ip link set wlan0 up
#pre-up iwconfig wlan0 essid your-ssid-here
#wpa-ssid your-ssid-here
#wpa-psk your-passwd-here

#auto br0
#iface br0 inet dhcp
#bridge_ports eth0 wlan0

auto wlan0
iface wlan0 inet static
address 192.168.0.118
gateway 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
nameserver 114.114.114.114
broadcast 192.168.0.255
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid G
wpa-ssid 保密
wpa-psk 保密
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-1-9 19:10:58 | 显示全部楼层
请大牛们 指点下  哪里配置错了
回复 支持 反对

使用道具 举报

发表于 2016-1-11 10:44:21 | 显示全部楼层
route -n显示啥?是不是路由出问题了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-4 11:28 , Processed in 0.027189 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部