Fred Smith
2015-Apr-23 02:39 UTC
[Samba] Machine choosing unexpected logonserver in multi-dc domain 4.2.1
I have the following setup in a samba 4.2.1 multi-dc domain DC1 - 10.10.2.50 DC2 - 10.10.2.60 DC3 - 192.168.103.2 I have a site and subnet setup for each DC in Active Directory Sites and Services DC1 server in site DC1 with subnet 10.10.2.50/32 DC2 server in site DC2 with subnet 10.10.2.0/24 DC3 server in site DC3 with subnet 192.168.103.0/24 DC3 has dhcpd setup giving machines on it's network IPs 192.168.103.100+ When I login to a Win7 machine in DC3s site/network, it always gets logonserver DC1. I have tried leaving/join domain. The only way I can get it to use DC3 as logonserver is to stop samba on DC1 and DC2. I use the following command on the Win7 machine to verify the logonserver echo %logonserver% When I had this similar configuration in samba 4.1.x machines on DC3s network would always choose DC3 as the logonserver.
Rowland Penny
2015-Apr-23 08:35 UTC
[Samba] Machine choosing unexpected logonserver in multi-dc domain 4.2.1
On 23/04/15 03:39, Fred Smith wrote:> I have the following setup in a samba 4.2.1 multi-dc domain > > DC1 - 10.10.2.50 > DC2 - 10.10.2.60 > DC3 - 192.168.103.2 > > I have a site and subnet setup for each DC in Active Directory Sites > and Services > > DC1 server in site DC1 with subnet 10.10.2.50/32 > DC2 server in site DC2 with subnet 10.10.2.0/24 > DC3 server in site DC3 with subnet 192.168.103.0/24 > > DC3 has dhcpd setup giving machines on it's network IPs 192.168.103.100+ > > When I login to a Win7 machine in DC3s site/network, it always gets > logonserver DC1. I have tried leaving/join domain. The only way I can > get it to use DC3 as logonserver is to stop samba on DC1 and DC2. > > I use the following command on the Win7 machine to verify the logonserver > > echo %logonserver% > > When I had this similar configuration in samba 4.1.x machines on DC3s > network would always choose DC3 as the logonserver.I do not think this is actually a samba4 AD problem, it is a general AD problem, try an internet search 'AD clients always use one DC' Rowland
Davor Vusir
2015-Apr-23 17:49 UTC
[Samba] Machine choosing unexpected logonserver in multi-dc domain 4.2.1
Rowland Penny skrev den 2015-04-23 10:35:> On 23/04/15 03:39, Fred Smith wrote: >> I have the following setup in a samba 4.2.1 multi-dc domain >> >> DC1 - 10.10.2.50 >> DC2 - 10.10.2.60 >> DC3 - 192.168.103.2 >> >> I have a site and subnet setup for each DC in Active Directory Sites >> and Services >> >> DC1 server in site DC1 with subnet 10.10.2.50/32 >> DC2 server in site DC2 with subnet 10.10.2.0/24 >> DC3 server in site DC3 with subnet 192.168.103.0/24 >> >> DC3 has dhcpd setup giving machines on it's network IPs 192.168.103.100+ >> >> When I login to a Win7 machine in DC3s site/network, it always gets >> logonserver DC1. I have tried leaving/join domain. The only way I can >> get it to use DC3 as logonserver is to stop samba on DC1 and DC2. >> >> I use the following command on the Win7 machine to verify the >> logonserver >> >> echo %logonserver% >> >> When I had this similar configuration in samba 4.1.x machines on DC3s >> network would always choose DC3 as the logonserver. > > I do not think this is actually a samba4 AD problem, it is a general > AD problem, try an internet search 'AD clients always use one DC' > > Rowland >Do you have got corresponding DNS RR for sites DC1, DC2 and DC3? https://technet.microsoft.com/en-us/library/cc961719.aspx Regards Davor
L.P.H. van Belle
2015-Apr-24 07:31 UTC
[Samba] Machine choosing unexpected logonserver in multi-dc domain 4.2.1
You can set an policy for this in GPO, dont remember exacly which one but it is there. By default windows connect to the DC with fsmo roles. Somewhere in computer policies. Templates / System look for DS_TRY_NEXTCLOSEST_SITE Greetz, Louis>-----Oorspronkelijk bericht----- >Van: davortvusir at gmail.com >[mailto:samba-bounces at lists.samba.org] Namens Davor Vusir >Verzonden: donderdag 23 april 2015 19:49 >Aan: samba at lists.samba.org >Onderwerp: Re: [Samba] Machine choosing unexpected logonserver >in multi-dc domain 4.2.1 > > >Rowland Penny skrev den 2015-04-23 10:35: >> On 23/04/15 03:39, Fred Smith wrote: >>> I have the following setup in a samba 4.2.1 multi-dc domain >>> >>> DC1 - 10.10.2.50 >>> DC2 - 10.10.2.60 >>> DC3 - 192.168.103.2 >>> >>> I have a site and subnet setup for each DC in Active Directory Sites >>> and Services >>> >>> DC1 server in site DC1 with subnet 10.10.2.50/32 >>> DC2 server in site DC2 with subnet 10.10.2.0/24 >>> DC3 server in site DC3 with subnet 192.168.103.0/24 >>> >>> DC3 has dhcpd setup giving machines on it's network IPs >192.168.103.100+ >>> >>> When I login to a Win7 machine in DC3s site/network, it always gets >>> logonserver DC1. I have tried leaving/join domain. The only >way I can >>> get it to use DC3 as logonserver is to stop samba on DC1 and DC2. >>> >>> I use the following command on the Win7 machine to verify the >>> logonserver >>> >>> echo %logonserver% >>> >>> When I had this similar configuration in samba 4.1.x >machines on DC3s >>> network would always choose DC3 as the logonserver. >> >> I do not think this is actually a samba4 AD problem, it is a general >> AD problem, try an internet search 'AD clients always use one DC' >> >> Rowland >> > >Do you have got corresponding DNS RR for sites DC1, DC2 and DC3? >https://technet.microsoft.com/en-us/library/cc961719.aspx > >Regards >Davor > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba > >
Fred Smith
2015-Apr-27 00:25 UTC
[Samba] Machine choosing unexpected logonserver in multi-dc domain 4.2.1
Thanks all for the suggestions. After reading through everything I am quite confident everything was setup correctly. In the end it was fixed by removing the subnet attached to site DC1 - 10.10.2.50/32. As soon as this subnet was removed, the problem went away and the correct logonserver was getting chosen. On Thu, Apr 23, 2015 at 12:09 PM, Fred Smith <fs582087 at gmail.com> wrote:> I have the following setup in a samba 4.2.1 multi-dc domain > > DC1 - 10.10.2.50 > DC2 - 10.10.2.60 > DC3 - 192.168.103.2 > > I have a site and subnet setup for each DC in Active Directory Sites > and Services > > DC1 server in site DC1 with subnet 10.10.2.50/32 > DC2 server in site DC2 with subnet 10.10.2.0/24 > DC3 server in site DC3 with subnet 192.168.103.0/24 > > DC3 has dhcpd setup giving machines on it's network IPs 192.168.103.100+ > > When I login to a Win7 machine in DC3s site/network, it always gets > logonserver DC1. I have tried leaving/join domain. The only way I can > get it to use DC3 as logonserver is to stop samba on DC1 and DC2. > > I use the following command on the Win7 machine to verify the logonserver > > echo %logonserver% > > When I had this similar configuration in samba 4.1.x machines on DC3s > network would always choose DC3 as the logonserver.
Reasonably Related Threads
- Failover DC did not work when Main DC failed
- Failover DC did not work when Main DC failed
- AD replication problem "WERR_DS_DRA_ACCESS_DENIED" - need help debugging
- Failover DC did not work when Main DC failed
- Windows client domain member getting incorrect value for LOGONSERVER