[CentOS] How to have two interfaces with dhcp using networkd but taking the dns/ntp stuff from only one

2014-07-11 Thread Mauricio Tavares
Ok, we can take both but needs to be in a specific order. So, we have
two ethernet interfaces, A and B. And both are defined in
/etc/systemd/network/ to use dhcp. How to guarantee that the crap
provided by dhcp to A (dns, gateway, ntp) is the default? To use an
example, /etc/resolv.conf should end up like

nameserver IP.for.A.DNS
nameserver IP.for.B.DNS
domain A.domain.com

Now, this must be done using only systemd stuff
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to have two interfaces with dhcp using networkd but taking the dns/ntp stuff from only one

2014-07-11 Thread Steven Tardy
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-networkscripts-interfaces.html

See: PEERDNS
(Not sure this still applies in 7)


 On Jul 11, 2014, at 4:41 AM, Mauricio Tavares raubvo...@gmail.com wrote:
 
 Ok, we can take both but needs to be in a specific order. So, we have
 two ethernet interfaces, A and B. And both are defined in
 /etc/systemd/network/ to use dhcp. How to guarantee that the crap
 provided by dhcp to A (dns, gateway, ntp) is the default? To use an
 example, /etc/resolv.conf should end up like
 
 nameserver IP.for.A.DNS
 nameserver IP.for.B.DNS
 domain A.domain.com
 
 Now, this must be done using only systemd stuff
 ___
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to have two interfaces with dhcp using networkd but taking the dns/ntp stuff from only one

2014-07-11 Thread Mauricio Tavares
On Fri, Jul 11, 2014 at 6:44 AM, Steven Tardy sjt5a...@gmail.com wrote:
 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-networkscripts-interfaces.html

 See: PEERDNS
 (Not sure this still applies in 7)

  But, systemd/networkd wants to use /etc/systemd/network/ instead
of /etc/sysconfig/netowrk-scripts


 On Jul 11, 2014, at 4:41 AM, Mauricio Tavares raubvo...@gmail.com wrote:

 Ok, we can take both but needs to be in a specific order. So, we have
 two ethernet interfaces, A and B. And both are defined in
 /etc/systemd/network/ to use dhcp. How to guarantee that the crap
 provided by dhcp to A (dns, gateway, ntp) is the default? To use an
 example, /etc/resolv.conf should end up like

 nameserver IP.for.A.DNS
 nameserver IP.for.B.DNS
 domain A.domain.com

 Now, this must be done using only systemd stuff
 ___
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos