Ubuntu “Wired Network – device not managed” 问题

问题: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  把
      [ifupdown]
      managed=false
      选项设置为true
2.kill nm-applet从新启动后,并没有起作用。后来是kill了NetworkManager进程后,修改生效。
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值