求助!!!ubuntu 10.04无法上网
-
- 帖子: 2
- 注册时间: 2012-02-24 10:38
求助!!!ubuntu 10.04无法上网
菜鸟刚装了10.04,是ACER 5750G的本子,但是上不了网,求大虾解决! 用的是路由器分配IP,我在/etc/network/interfaces里写了eth0, 但是ifconfig -a 根本没有eth0的信息,只有一个lo。导致我的电脑不能上网。这是没有驱动的原因吗?
-
- 帖子: 124
- 注册时间: 2007-03-17 18:57
- 来自: 广东广州
Re: 求助!!!ubuntu 10.04无法上网
你的interfaces写错了。给你一个配置,你自己自行修改ip地址和网关吧。
我的这个配置文件,网卡是eth1,ip是192.168.0.51,网关是192.168.0.1。你自己修改成符合你的数据。
如果不打算使用固定ip,而是想用dhcp的话,eth那段应该这样写:
我的这个配置文件,网卡是eth1,ip是192.168.0.51,网关是192.168.0.1。你自己修改成符合你的数据。
代码: 全选
gzxzw@HP510:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.1
代码: 全选
auto eth1
iface eth1 inet dhcp
我用ubuntu 6.06,gnome桌面~
结果装个qBittorrent搞不定,
然后就换到ubuntu 7.04了..同样是gnome桌面~
定制才是王道!
结果装个qBittorrent搞不定,
然后就换到ubuntu 7.04了..同样是gnome桌面~
定制才是王道!
-
- 帖子: 2
- 注册时间: 2012-02-24 10:38
Re: 求助!!!ubuntu 10.04无法上网
这个配置没有写错,就是你那个格式。 问题是就算写错了,ifconfig -a也应该有eth0吧。