|
我用的是ubuntu11.04,我的无线路由器开启DHCP可以无线上网,但是如果把无线路由器当无线交换机使用,该如何给WLAN0设置公网IP?我在/etc/network/interface里面设置成如下:
auto lo
iface lo inet loopback
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig wlan0 up # line maintained by pppoeconf
provider dsl-provider
auto wlan0
iface wlan0 inet static
address 10.1.85.190
netmask 255.255.255.0
network 10.1.85.0
broadcast 10.1.85.255
gatway 10.1.85.254
在/etc/resolv.conf里面设置了DNS,设置如下:
# Generated by NetworkManager
nameserver 218.104.111.114
nameserver 218.104.111.122
但是无线网卡根本就无法连接上路由器,请问这是什么原因,该如何解决? |
|