How to remove ifupdown(eth0)(怎样去除ifupdown)

NetworkManager is the best way for end-users to configure their network I think these problems are happening with people who configured their networks using the command line using some cut-and-paste fiddling with pppoeconf or stuff in /etc.

To have NetworkManager manage all interfaces without editing ifupdown/interfaces files, this should work.

Check /etc/network/interfaces.

Press alt+F2 and paste in:

Code:
gksudo gedit /etc/network/interfaces

Remove everything but  ******注意了,这里是除了下面两行,其余全部指出*****

Code:
auto lo

iface lo inet loopback

Then Check /etc/NetworkManager/nm-system-settings.conf
Press alt+F2 and paste in:

Code:
gksudo gedit /etc/NetworkManager/nm-system-settings.conf

set

Code:
 [ifupdown]

managed=false

Restart computer or NetworkManager service.
From now on, only configure the network using the NetworkManager applet in the notification area (aka system tray).


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值