win7正常上网,虚拟机linux系统->ubuntu不能上网,求助!!!
电脑win7 用无线正常上网,ip为 192.168.1.2win7可以ping通 ubuntu,可以上网,如下图
ubuntu 可以ping通网关(192.168.1.1)和 win7 无线ip(192.168.1.2) 如下图
ubuntu 与win7 为桥接方式,但ubuntu 上不了网,如下图
无线的共享打勾和不打勾都试过了。没有。。 。。
求大侠指点迷津!!!
linux是安装在虚拟机里面?
物理环境是怎样的?
这下面提供几个方案~
1.物理环境是物理机直接网线连接的一个路由拨号的~那就是直接将虚拟机设置成桥接,然后虚拟机里面的系统和物理系统一样手动分配IP或者自动获取(由路由来提供DHCP)这样就可以了~
2.物理环境为物理机ADSL拨号上网的,将虚拟机设置成NAT上网方式,里面的系统设置成自动获取IP~并且开启VMware的NAT和DHCP服务~确保VM8网卡启动~这样物理机拨号后,就能让虚拟机NAT上网了
3.物理机笔记本使用无线连接到无线路由~此时虚拟机使用桥接是无法上网的(我以前看到过这个问题~说是虚拟机如果用无线连上,物理机就上不了了~物理机连上无线~虚拟机就不能连上无线了~不知道为什么...难道是因为虚拟机和物理机不能共享一块无线网卡收发数据?) magic_os 发表于 2012-1-4 20:44 static/image/common/back.gif
linux是安装在虚拟机里面?
物理环境是怎样的?
THANK YOU!!!!
对,linux安装在虚拟机里边
我的是物理机用无线连接到无线路由的
虚拟机设成桥接,第一次也实现了上网,
隔天再打开,其他的都没设置,就不行了
后面改成用有线这样解决了:
问题:Ubuntu升级后,在NetworkManager里发现只能用无线网连接,有线eth0的位置显示“Device not managed”
应该是NetworlManager没有管理有线连接。
google到解决方法,具体原理不是很清楚,只是按提示做了,可以解决问题,存档以备以后查看
________________________________________
Ubuntu 9.04 “Wired Network – device not managed”
by Craig Mayhew on Jun.13, 2009, under Guides/Fixes, Linux/Ubuntu
After upgrading to Ubuntu 9.04 I’ve found the network manager GUI to be far superior to the previous version I was using in Ubuntu 8.04 LTS. Unfortunately when I was using Ubuntu 8.04 I made some custom alterations to my network setup in the “/etc/network/interfaces” file. The Network Manager in 9.04 wasn’t keen on this and so refused to manage it, instead it displayed the message “Wired Network – device not managed”.
As a work around I commented out all of my changes by placing a # at the beginning of each line in my interfaces file:
Open the interfaces file in an editor:
sudo vim /etc/network/interfaces
This is an example of how my file looked before I modified it. Yours will be different:
auto lo
iface lo inet loopback
iface eth2 inet static
address 192.168.0.44
netmask 255.255.255.0
gateway 192.168.0.1
auto eth2
And here’s the same file again, but I’ve added #’s at the beginning of each line so that they are ignored:
#auto lo #iface lo inet loopback #iface eth2 inet static #address 192.168.0.44 #netmask 255.255.255.0 #gateway 192.168.0.1 #auto eth2
In order for the changes to take effect,
we need to restart the network manager and the applet by running each of these in the command line:
sudo /etc/init.d/networking restar
And now restart the network manager applet:
pkill nm-applet
nm-applet
You should now be able to manage the network connection from within the network manager applet.
________________________________________
注:
1.要让NM管理有线连接,还需要编辑文件 /etc/NetworkManager/nm-system-settings.conf 把
managed=false
选项设置为true
2.kill nm-applet从新启动后,并没有起作用。后来是kill了NetworkManager进程后,修改生效。
casualforever 发表于 2012-1-5 19:18 static/image/common/back.gif
THANK YOU!!!!
对,linux安装在虚拟机里边
我的是物理机用无线连接到无线路由的
--非常感谢楼主将解决方案分享出来~!
呵呵~解决了就好~
页:
[1]