Giles Coochey
2017-Mar-08 10:24 UTC
[CentOS] From Networkmanager to self managed configuration files
On 08/03/17 10:15, John Hodrien wrote:> On Wed, 8 Mar 2017, Giles Coochey wrote: > >> The truth is a lot of us run servers that don't need to have their >> network >> "managed" by Networkmanager. > > You're opting to have your network managed by a bunch of unloved legacy > scripts that you're advised to avoid using unless necessary, or you've > having > it managed by NetworkManager. If you want to have it managing it this > way, > you'll be writing your own scripts. > >> We just need to set an IP address, subnet mask, gateway, and DNS >> servers and we will never be changing that configuration ever again >> for the entire life of the server. >> Any 3-4 line script that does the job is sufficient, servers don't >> need gimmicks, they're not going to be hotspotting on wireless >> networks, the cable goes in, the server enters production and that's it! > > By 3-4 line script, I assume you mean the content of all the files in > /etc/sysconfig/network-scripts that aren't your ifcfg files? >ifconfig enp0s25 192.168.0.1 netmask 255.255.255.0 route add default gw 192.168.0.254 enp0s25 echo nameserver 8.8.8.8 > /etc/resolv.conf echo nameserver 8.8.4.4 >> /etc/resolv.conf -- Regards, Giles Coochey +44 (0) 7584 634 135 +44 (0) 1803 529 451 giles at coochey.net
John Hodrien
2017-Mar-08 10:38 UTC
[CentOS] From Networkmanager to self managed configuration files
On Wed, 8 Mar 2017, Giles Coochey wrote:> ifconfig enp0s25 192.168.0.1 netmask 255.255.255.0 > route add default gw 192.168.0.254 enp0s25 > echo nameserver 8.8.8.8 > /etc/resolv.conf > echo nameserver 8.8.4.4 >> /etc/resolv.confOh okay, you really do want to back away from Redhat entirely. That's entirely your choice. What you end up with if you take this approach widely is effectively your own linux distribution. jh
Giles Coochey
2017-Mar-08 10:43 UTC
[CentOS] From Networkmanager to self managed configuration files
On 08/03/17 10:38, John Hodrien wrote:> On Wed, 8 Mar 2017, Giles Coochey wrote: > >> ifconfig enp0s25 192.168.0.1 netmask 255.255.255.0 >> route add default gw 192.168.0.254 enp0s25 >> echo nameserver 8.8.8.8 > /etc/resolv.conf >> echo nameserver 8.8.4.4 >> /etc/resolv.conf > > Oh okay, you really do want to back away from Redhat entirely. That's > entirely your choice. > > What you end up with if you take this approach widely is effectively > your own > linux distribution. >Not really, Redhat/Centos has a lot to offer, but for me, networking is a one-time configuration, and the best way to configure it is using something that falls within this principle: https://en.wikipedia.org/wiki/KISS_principle I'm not flaming NetworkManager, I'm just stating that for many (perhaps most), it is over-engineered for a server orientated distribution. I can run with the script above on 30 server instances, and it doesn't, as yet, break any of the other features of Centos that I enjoy. -- Regards, Giles Coochey +44 (0) 7584 634 135 +44 (0) 1803 529 451 giles at coochey.net
Reasonably Related Threads
- From Networkmanager to self managed configuration files
- From Networkmanager to self managed configuration files
- From Networkmanager to self managed configuration files
- From Networkmanager to self managed configuration files
- From Networkmanager to self managed configuration files