RHEL 6 ifconfig not managed by Network Manager

Hi Everyone,

Stumbled on this the other day - seems to be a bug with RHEL6 (and probably Centos 6 as well) where the LAN TCP/IP settings dont seem to apply when you want.

Follow up:

The initial symptom is where you go to System --> Preferences --> Network Connections and you try to configure an IP address - in my case, a static IP.

I found that changed settings didnt apply until I did a reboot.

When i tried the command

# service network restart

it would shut down the interface OK however it couldn bring them back up advising that ¨The device is not controlled by Network Manager¨

After doing a bit of reading, it seems other distros are affected as well.

The fix that worked for me was also a fix for a Ubuntu 11.1 user

______

Go to /etc/NetworkManager/NetworkManager.conf and edit that.

My file only had these lines

[main]
plugins=ifcfg-rh

The Ubuntu user had a similar (but not the same) entry pointing to

[main]
plugins=ifupdown

[ifupdown]
managed=false

that user subsequently changed the false statement to true and that worked for them.

Therefore, I added this line and it worked!

[ifcfg-rh]
managed=true

After that, i was able to issue the command:

# service network restart

and it was successful

ENJOY!

Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

1 comment

Comment from: Doug Charnley [Visitor]
*****
Have been banging my head against this issue for weeks. It is Brill Thanks
DougC
18/05/13 @ 02:11

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What color is grass?
antispam test