Networking on RHEL 7 Installations
I'd like to break out some threads from the Share your feedback on the RHEL 7 Beta!.
So, please bring your networking topics to this thread and we will look into what you find.
Responses
FYI, an article our Networking Product Manager created:
What's the difference between Network Initscript and NetworkManager in RHEL 7?
https://access.redhat.com/site/solutions/783533
NetworkManager may provide a great gui/tui/cli for managing network configurations, but how does RedHat expect it to integrate into environments where "none of the above" is the correct answer, i.e., where distributed configuration management is the norm and logging in to individual servers to manage any aspect of configuration is not appropriate?
"NetworkManager may provide a great gui/tui/cli for managing network configurations, but how does RedHat expect it to integrate into environments where "none of the above" is the correct answer, i.e., where distributed configuration management is the norm and logging in to individual servers to manage any aspect of configuration is not appropriate?"
The kind of config-mgmt you describe is not at odds with NetworkManager. If you're pushing out network config files (with e.g., puppet), you'll have to run some commands whether you're using NM or not.
Old-school serialized initscript:
-
push out config files:
network-scripts/ifcfg-*,/etc/hostname,/etc/resolv.conf,/etc/hosts -
restart
networkservice, potentially run ahostnamecommand
New-school hotness integrated with systemd:
-
push out config files:
network-scripts/ifcfg-*,/etc/hostname,/etc/resolv.conf,/etc/hosts -
restart
NetworkManagerservice
PS: I should make clear that both of the above options are there in RHEL7.
The problem, as PixelDrift got at earlier, is the lack of determinism (or information?) when you have a daemon that thinks it manages these files (he includes /etc/sysconfig/network in the list). Where is NM behavior documented, what files it controls, under what circumstances it makes changes to the files or to network connections? How do I know that puppet and NM aren't going to duel over file contents or ownership or permissions or connection states?
I hear you Ed. I haven't read through the new RHEL7 Networking Guide, so I'm not sure how much it offers in terms of answers to your questions.
I'll say two things:
-
There's no rush. You don't need to use NetworkManager AT ALL. If you don't have any time to play with or audit it, by all means keep disabling it like in RHEL6. In fact, there are some cases where the old initscript still must be used in place of NetworkManager, and there even might be some situations where NetworkManager is programmed to do stupid things you and I wouldn't like; however, in both cases, the remedy is the same: keep using the old
networkservice while NetworkManager is further improved. Not every server needs the benefits NetworkManager currently provides (parallelizing connection-starting, allowing intelligent on-demand connection-starting [due to services, other connections going down, whatever else], enhanced logging and debugging of problems); however, it's where everything is going [IMHO]. -
With regards to:
"How do I know that puppet and NM aren't going to duel over file contents or ownership or permissions or connection states?"
As far as I understand: NetworkManager will make no changes to the above-mentioned config files as long as you don't ever make changes in the NetworkManager apps (
nmtui,nmcli,nm-connection-editor, gnome desktop applet). The common exception would beresolv.conf, but of course that can be avoided by ensuring you're either using all static networking or havePEERDNS=noin all DHCP ifcfg files.
Ryan,
I would respond directly to your comment but it appears the commenting system is broken today.
With both these options, would you not need to determine the state of dnssec-triggerd as you are taking control of /etc/resolv.conf, so it won't be pointing to 127.0.0.1.
If you choose to keep dnssec-triggerd you will then need to provide it upstream DNS servers to forward requests to (and not touch /etc/resolv.conf).
If you choose to remove/disable dnssec-triggerd, you can provide /etc/resolv.conf options as you have historically.
Hi PixelDrift. I'm just gonna give a quick warning for other readers that have not heard of dnssec-triggerd.
"If you choose to remove/disable dnssec-triggerd, you can provide /etc/resolv.conf options as you have historically."
The dnssec-triggerd service mentioned by PixelDrift has is not intsalled by default (dnssec-trigger rpm) and only has relevance on DNS servers running unbound. This is not some additional NetworkManager change you need to worry about.
EDIT:
Someone (thanks Stephen) pointed me to the DNSSEC documentation in the RHEL 7 Security Guide and I see now that what I said above ("dnssec-triggerd ... only has relevance on DNS servers") is not true. Good reading!
I stand by my "this is not some additional NetworkManager change you need to worry about" statement though. Sure, dnssec-trigger can cause NM to modify resolv.conf, but so can starting a VPN. It's kind of a special case -- I think people that are using those 2 things already understand that.
I never checked the "notify me" box on this discussion page, and yet email is getting sent. I changed the email address associated with the login account (it was a list address), but the email is still going to the list. I tried clicking on the "unsubscribe" link at the bottom of the emails, but it gets a "404 Not Found". Could you stop the emails please?
In regards to Ryan's comment about puppet and NetworkManager, new school did not work for me even after putting PEERDNS=no in the ifcfg-* file. I finally figured out I had to put dns=none in /etc/NetworkManager/NetworkManager.conf
I just created a virtual machine using redhat 5.8 . i see this error when i check the configuration & network tab of the host the link shows blocked. i see this error there port blocked due to l2 security violation. any one got this issue please reply. Thank you.
vds port blocked due to l2 security violation
Good Morining Team,
I am having trouble bringing up ens192, what is the command for this? I have already manually updated the sysconfig file. Any help would be great.
Thanks,
Rob
Pages
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
