Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread J Martin Rushton via CentOS
On 18/02/2020 16:56, Nicolas Kovacs wrote: Le 18/02/2020 à 17:43, Jonathan Billings a écrit : According to 'man nm-settings-ifcfg-rh', PEERDNS=no is the old network-services services mechanism for not changing /etc/resolv.conf, while in NM it just means never add automatic nameservers to resolv.

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Nicolas Kovacs
Le 18/02/2020 à 17:43, Jonathan Billings a écrit : According to 'man nm-settings-ifcfg-rh', PEERDNS=no is the old network-services services mechanism for not changing /etc/resolv.conf, while in NM it just means never add automatic nameservers to resolv.conf from DHCP, PPP, VPN, etc. Turning off

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Nicolas Kovacs
Le 18/02/2020 à 16:51, Anand Buddhdev a écrit : Oh yes. Are you still sure you want to use NetworkManager? It's a pain! As much as I'm a firm believer in the KISS principle, I don't like to "swim against the current". As someone on this list said it earlier, Red Hat provides a certain set of

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Jonathan Billings
On Tue, Feb 18, 2020 at 04:37:29PM +0100, Nicolas Kovacs wrote: > > Le 18/02/2020 à 12:28, Anand Buddhdev a écrit : > > Neither. The DNS configuration should not normally be bound to a > > specific interface, so don't configure it with any interface. If you do, > > and that interface goes down, you

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Nicolas Kovacs
Le 18/02/2020 à 16:51, Anand Buddhdev a écrit : This tells NetworkManager to leave /etc/resolv.conf alone. Now you can put whatever you like in /etc/resolv.conf, and it will be left untouched. I just found the answer after some more experimenting. 1. If you put some DNS information in any of y

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread lejeczek via CentOS
On 18/02/2020 11:00, Nicolas Kovacs wrote: > Hi, > > I'm running CentOS 7 on all my servers, in three different contexts : > >   1. simple local server >   2. public facing server >   3. router/gateway/firewall > > I'm currently in the process of moving my KISS-style > network-scripts-style configu

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Johnny Hughes
On 2/18/20 9:37 AM, Nicolas Kovacs wrote: > Le 18/02/2020 à 12:28, Anand Buddhdev a écrit : >> Neither. The DNS configuration should not normally be bound to a >> specific interface, so don't configure it with any interface. If you do, >> and that interface goes down, your DNS config also disappear

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Anand Buddhdev
On 18/02/2020 16:37, Nicolas Kovacs wrote: > I can't do that anymore, because /etc/resolv.conf gets squashed by > NetworkManager. If I don't fill in DNS information for the interfaces, > then all I get is an empty "#Generated by NetworkManager" line. Oh yes. Are you still sure you want to use Net

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Nicolas Kovacs
Le 18/02/2020 à 12:28, Anand Buddhdev a écrit : Neither. The DNS configuration should not normally be bound to a specific interface, so don't configure it with any interface. If you do, and that interface goes down, your DNS config also disappears. I would like to do that very much, only Networ

Re: [CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Anand Buddhdev
On 18/02/2020 12:00, Nicolas Kovacs wrote: Hi Nicolas, > I'm using NetworkManager TUI (nmtui) to configure my connections. I'm > defining two profiles WAN (enp1s0) and LAN (enp2s0). With NetworkManager > I have to configure gateway and DNS information on a per-interface basis. > > 1. Which inter

[CentOS] From network-scripts to NetworkManager on a router : questions

2020-02-18 Thread Nicolas Kovacs
Hi, I'm running CentOS 7 on all my servers, in three different contexts : 1. simple local server 2. public facing server 3. router/gateway/firewall I'm currently in the process of moving my KISS-style network-scripts-style configurations to something more orthodox based on NetworkManage