新安装ubuntu不能上网
-
- 帖子: 2
- 注册时间: 2012-02-16 18:17
新安装ubuntu不能上网
我新安装的ubuntu11.10 网络连接提示 有线网络断开,您处于离线状态,上不了网,网上提示说要去修改interfaces,添加iface th0 inet dhcp我也找到了这个文件,但是修改的时候说没有权限。郁闷了,弄好久了!我家是接邻居的网,平时是自动连接的!
- TeliuTe
- 论坛版主
- 帖子: 7675
- 注册时间: 2007-11-25 13:29
- 系统: 16/18/20/w7
- 来自: 新疆博乐
- 联系:
Re: 新安装ubuntu不能上网
先检查接线指示灯,在右上角的网络图标里设置
-
- 帖子: 1
- 注册时间: 2012-02-16 21:28
Re: 新安装ubuntu不能上网
我也遇到一个类似的问题:
我是VMware(8.0.1 build-528992)安装的ubuntu11.10(ubuntu-11.10-dvd-i386.iso)。如果VMware用NAT方式的话,ubuntu中自动获取IP地址,能正常上网。
但是如果VMware如果采用bridge方式的话,ubuntu中能获取到IP地址,也能ping通主机,但是就是无法上网。
采用网上的方式:在/etc/network/interfaces中增加
auto eth0
iface eth0 inet static
address 192.168.33.201
netmask 255.255.255.0
gateway 192.168.33.1
IP地址采用我自己网络系统的相关参数。
同时,在/etc/resolv.conf中修改我自己系统的DNS参数。
但是按照上面的操作以后,使用命令: /etc/init.d/networking restart 出现以下的错误:
zlg@zlg-virtual-machine:~$ sudo gedit /etc/resolv.conf
Illegal format hash table /usr/lib/ispell/american.hash - expected magic2 0x9602, got 0x0
** (gedit:2411): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed
zlg@zlg-virtual-machine:~$ sudo /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... RTNETLINK answers: File exists
Failed to bring up eth0.
[ OK ]
zlg@zlg-virtual-machine:~$
请问:出现以上的错误,是什么原因呢?请大家指点!
我是VMware(8.0.1 build-528992)安装的ubuntu11.10(ubuntu-11.10-dvd-i386.iso)。如果VMware用NAT方式的话,ubuntu中自动获取IP地址,能正常上网。
但是如果VMware如果采用bridge方式的话,ubuntu中能获取到IP地址,也能ping通主机,但是就是无法上网。
采用网上的方式:在/etc/network/interfaces中增加
auto eth0
iface eth0 inet static
address 192.168.33.201
netmask 255.255.255.0
gateway 192.168.33.1
IP地址采用我自己网络系统的相关参数。
同时,在/etc/resolv.conf中修改我自己系统的DNS参数。
但是按照上面的操作以后,使用命令: /etc/init.d/networking restart 出现以下的错误:
zlg@zlg-virtual-machine:~$ sudo gedit /etc/resolv.conf
Illegal format hash table /usr/lib/ispell/american.hash - expected magic2 0x9602, got 0x0
** (gedit:2411): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed
zlg@zlg-virtual-machine:~$ sudo /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces... RTNETLINK answers: File exists
Failed to bring up eth0.
[ OK ]
zlg@zlg-virtual-machine:~$
请问:出现以上的错误,是什么原因呢?请大家指点!
- 17beloved
- 帖子: 227
- 注册时间: 2012-02-23 15:29