gedit/etc/network/interfaces
autolo
ifaceloinetloopback
autoeth0
ifaceeth0inetstatic
address192.168.0.200
netmask255.255.255.0
gateway192.168.0.1
#autowlan0
#ifacewlan0inetdhcp
sudo/etc/init.d/networkingrestart
照此思路,修改/etc/network/interfaces,无线网卡也能用了
把文件中对应无线网卡的部分修改为如下形式
autoeth1
ifaceeth1inetstatic
wireless-rate54M
wireless-essidTP-LINK
wireless-keyAAAAABBBBB
address192.168.1.140
netmask255.255.255.0
gateway192.168.1.1
下载本文示例代码
阅读(307) | 评论(0) | 转发(0) |