分页: 1 / 1

求助,不能用路由器上网

发表于 : 2011-09-19 11:02
轩字语
我sudo gedit /etc/network/interfaces :
# The primary network interface
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 192.168.1.104
netmask 255.255.255.0
gateway 113.57.46.251

auto lo
iface lo inet loopback


auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider

auto eth1
iface eth1 inet manual


gateway我有设过192.168.1.1还是无法上网,我的电脑好像一直没有eth0,只有eth1。
请各位大虾帮忙,万分感谢

Re: 求助,不能用路由器上网

发表于 : 2011-09-19 11:28
sunfish
gw设成192.168.1.1,保存后重启以下网络或直接重启试试

ubuntu的话最好直接用图形网络设置界面:
系统——》首选项——》网络链接

记得设置好后网络重启

Re: 求助,不能用路由器上网

发表于 : 2011-09-19 11:44
monk
2L正解

Re: 求助,不能用路由器上网

发表于 : 2011-09-19 13:32
疯无可疯
我也用路由,但是安装好自己就可以上网的,没有说要设置什么啊,你们都是什么情况?

Re: 求助,不能用路由器上网

发表于 : 2011-09-19 20:08
lily3978
晕倒,113.57.46.251是你外网获得的IP,怎么能填到网关里面
auto dsl-provider
iface dsl-provider inet ppp
你选了pppoe拨号上网怎么能填网关192.168.1.1呢?有图形界面的网络连接的啊

Re: 求助,不能用路由器上网

发表于 : 2011-09-24 19:28
轩字语
第一次发帖就这么多的回我,真高兴啊 :em01 谢谢大家了。我是刚学ubuntu :em06 所以很多不懂,我现在可以上网了,这是我新的设置:
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
adress 192.168.1.104
nemask 256.255.255.0
geteway 192.168.1.1



auto lo
iface lo inet loopback
谢谢大家的帮助哦,不过我现在又遇到一个问题了 :em06 :em06 没声音了,看样子又得折腾一段了

Re: 求助,不能用路由器上网

发表于 : 2012-12-18 17:05
chongwugou
来192.168.0.1路由器设置(http://www.luyouren.com/)看看吧!