我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。
请各位大虾帮忙,万分感谢
求助,不能用路由器上网
- sunfish
- 帖子: 989
- 注册时间: 2008-05-03 1:53
Re: 求助,不能用路由器上网
gw设成192.168.1.1,保存后重启以下网络或直接重启试试
ubuntu的话最好直接用图形网络设置界面:
系统——》首选项——》网络链接
记得设置好后网络重启
ubuntu的话最好直接用图形网络设置界面:
系统——》首选项——》网络链接
记得设置好后网络重启
docker && kubernetes
- monk
- 帖子: 19507
- 注册时间: 2010-01-28 10:45
- 疯无可疯
- 帖子: 64
- 注册时间: 2009-03-13 21:27
-
- 帖子: 381
- 注册时间: 2010-06-30 16:23
Re: 求助,不能用路由器上网
晕倒,113.57.46.251是你外网获得的IP,怎么能填到网关里面
auto dsl-provider
iface dsl-provider inet ppp
你选了pppoe拨号上网怎么能填网关192.168.1.1呢?有图形界面的网络连接的啊
auto dsl-provider
iface dsl-provider inet ppp
你选了pppoe拨号上网怎么能填网关192.168.1.1呢?有图形界面的网络连接的啊
- 轩字语
- 帖子: 11
- 注册时间: 2011-07-10 12:40
Re: 求助,不能用路由器上网
第一次发帖就这么多的回我,真高兴啊
谢谢大家了。我是刚学ubuntu
所以很多不懂,我现在可以上网了,这是我新的设置:
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
谢谢大家的帮助哦,不过我现在又遇到一个问题了
没声音了,看样子又得折腾一段了


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
谢谢大家的帮助哦,不过我现在又遇到一个问题了


-
- 帖子: 1
- 注册时间: 2012-12-18 17:02
- 系统: 17
Re: 求助,不能用路由器上网
来192.168.0.1路由器设置(http://www.luyouren.com/)看看吧!