Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Windows Small Business Server > DHCP issue on SBS03

Reply
Thread Tools Display Modes

DHCP issue on SBS03

 
 
tim09
Guest
Posts: n/a

 
      11-09-2009
One of the client comptuers(pc-7) has a printer connected with usb and is
shared. The computer has dynamic IP. All of a sudden users couldn't print to
that shared printer from other comptuers. Tried few things and eventually
logged on to SBS03 and found two comptuers have same IP of 192.168.0.3, pc-5
and pc-7. Then we manually set IP of pc-5 to 192.168.0.113. but when we ping
pc-5 it still links to 192.168.0.3, then we change ip of pc-7 to
192.168.0.114. and when ping pc-7 it still links to 192.168.0.3 too. Deleted
both ip address from dhcp server as well, restarted SBS, and both comptuer.
For now we have disconnected PC-5 and manually set PC-7's ip address to
192.168.0.3 other wise no matter what it doesn't print from other computer.
Is there any way to clear it? by the way PC-5 wasn't used for months, would
it be pc-5 had 192.168.0.3 ip already and when connected two comptuers got
same ip address.

 
Reply With Quote
 
 
 
 
Bill Sanderson
Guest
Posts: n/a

 
      11-09-2009

I believe your problem is not so much DHCP, as DNS.

That said, I can't tell you exactly what setting to change, but I'd look at
the DNS settings and look for terms like dynamic update.

You may want to clear out the out of date entries manually.


"tim09" <> wrote in message
news:30EE397A-B60F-4D2A-89E3-...
> One of the client comptuers(pc-7) has a printer connected with usb and is
> shared. The computer has dynamic IP. All of a sudden users couldn't print
> to
> that shared printer from other comptuers. Tried few things and eventually
> logged on to SBS03 and found two comptuers have same IP of 192.168.0.3,
> pc-5
> and pc-7. Then we manually set IP of pc-5 to 192.168.0.113. but when we
> ping
> pc-5 it still links to 192.168.0.3, then we change ip of pc-7 to
> 192.168.0.114. and when ping pc-7 it still links to 192.168.0.3 too.
> Deleted
> both ip address from dhcp server as well, restarted SBS, and both
> comptuer.
> For now we have disconnected PC-5 and manually set PC-7's ip address to
> 192.168.0.3 other wise no matter what it doesn't print from other
> computer.
> Is there any way to clear it? by the way PC-5 wasn't used for months,
> would
> it be pc-5 had 192.168.0.3 ip already and when connected two comptuers got
> same ip address.
>

 
Reply With Quote
 
Cliff Galiher
Guest
Posts: n/a

 
      11-09-2009
First, you have to understand that DHCP just hands out addresses. (well,
technically it can do a lot more, but for the merits of this
conversation...)

It does NOT control how IP traffic gets from point A to point B at any time.

Let's use a valet service as an example. When going to a restaurant (a
fancy one that invests in silly technology like my example...bear with me),
the valet types in your license-plate, parks your car, and gives you a
ticket. Your ticket now has the license-plate and the parking space printed
on it.

So one night, I go to the restaurant and park my car. I get a ticket that
says pc-5 is parked in 192.168.0.3. In the DHCP world, this is a lease.
Two weeks later, you go to the same restaurant and you get a ticket. pc-7
is parked in 192.168.0.3. Two tickets, same IP. But they aren't in
conflict because the two cars were not parked there *at the same time.* The
parking space got reused because it was vacant. Again, in the DHCP world,
leases expire.

Now to the important stuff. When you ping a machine, the first thing the OS
does is tries to resolve the machine name to an IP address. There are
several ways to do this: DNS, WINS, neighbor discovery, etc. But SBS when
setup properly will use DNS first. So when you manually set the IP address
if pc-5 to another address...192.168.0.113 in your example, you didn't
update the DNS entry on the DNS server. So a ping still does the DNS
lookup, DNS still has a record (you didn't delete that) and pings the
machine *REGARDLESS OF NAME* at 192.168.0.3. Same goes for pc-7. You are
manually changing the IP address, but not changing the DNS record.

But the real rub here is that DHCP will update DNS records for you. By
changing the IP address manually, you were not letting DHCP do what it does
best. It hands out an address and then updates DNS. If had just deleted
the DHCP leases from the DHCP server and then rebooted both clients (not the
server!) they'd have re-requested IP addresses and DHCP will *not* issue the
same IP to multiple machines at the same time. One would've gotten
192.168.0.3 and one would've gotten a new address.

So to answer the two questions you ended with (in order), yes, it sounds
like pc-5 had 192.168.0.3 at one time. And no, the two machines would not
have gotten the same IP address.

As an additional note, with any computer that has a shared resource, it is
best to make sure they always get the same IP address. You can do this with
DHCP by setting up a DHCP reservation. That way you won't ever have the
DHCP server handing that address out to another machine, and even better,
you get the benefit of the DHCP server updating the DNS server. Unless you
know *exactly* what you are doing, *!!!NEVER!!!* manually assign IP
addresses. It only causes more headaches and, as you've already discovered,
causes troubleshooting pains.

-Cliff


"tim09" <> wrote in message
news:30EE397A-B60F-4D2A-89E3-...
> One of the client comptuers(pc-7) has a printer connected with usb and is
> shared. The computer has dynamic IP. All of a sudden users couldn't print
> to
> that shared printer from other comptuers. Tried few things and eventually
> logged on to SBS03 and found two comptuers have same IP of 192.168.0.3,
> pc-5
> and pc-7. Then we manually set IP of pc-5 to 192.168.0.113. but when we
> ping
> pc-5 it still links to 192.168.0.3, then we change ip of pc-7 to
> 192.168.0.114. and when ping pc-7 it still links to 192.168.0.3 too.
> Deleted
> both ip address from dhcp server as well, restarted SBS, and both
> comptuer.
> For now we have disconnected PC-5 and manually set PC-7's ip address to
> 192.168.0.3 other wise no matter what it doesn't print from other
> computer.
> Is there any way to clear it? by the way PC-5 wasn't used for months,
> would
> it be pc-5 had 192.168.0.3 ip already and when connected two comptuers got
> same ip address.
>

 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      11-09-2009

"Cliff Galiher" <> wrote in message
news:%...
> First, you have to understand that DHCP just hands out addresses. (well,
> technically it can do a lot more, but for the merits of this
> conversation...)
>
> It does NOT control how IP traffic gets from point A to point B at any
> time.
>
> Let's use a valet service as an example. When going to a restaurant (a
> fancy one that invests in silly technology like my example...bear with
> me), the valet types in your license-plate, parks your car, and gives you
> a ticket. Your ticket now has the license-plate and the parking space
> printed on it.
>
> So one night, I go to the restaurant and park my car. I get a ticket that
> says pc-5 is parked in 192.168.0.3. In the DHCP world, this is a lease.
> Two weeks later, you go to the same restaurant and you get a ticket. pc-7
> is parked in 192.168.0.3. Two tickets, same IP. But they aren't in
> conflict because the two cars were not parked there *at the same time.*
> The parking space got reused because it was vacant. Again, in the DHCP
> world, leases expire.
>
> Now to the important stuff. When you ping a machine, the first thing the
> OS does is tries to resolve the machine name to an IP address. There are
> several ways to do this: DNS, WINS, neighbor discovery, etc. But SBS when
> setup properly will use DNS first. So when you manually set the IP
> address if pc-5 to another address...192.168.0.113 in your example, you
> didn't update the DNS entry on the DNS server. So a ping still does the
> DNS lookup, DNS still has a record (you didn't delete that) and pings the
> machine *REGARDLESS OF NAME* at 192.168.0.3. Same goes for pc-7. You are
> manually changing the IP address, but not changing the DNS record.
>
> But the real rub here is that DHCP will update DNS records for you. By
> changing the IP address manually, you were not letting DHCP do what it
> does best. It hands out an address and then updates DNS. If had just
> deleted the DHCP leases from the DHCP server and then rebooted both
> clients (not the server!) they'd have re-requested IP addresses and DHCP
> will *not* issue the same IP to multiple machines at the same time. One
> would've gotten 192.168.0.3 and one would've gotten a new address.
>
> So to answer the two questions you ended with (in order), yes, it sounds
> like pc-5 had 192.168.0.3 at one time. And no, the two machines would not
> have gotten the same IP address.
>
> As an additional note, with any computer that has a shared resource, it is
> best to make sure they always get the same IP address. You can do this
> with DHCP by setting up a DHCP reservation. That way you won't ever have
> the DHCP server handing that address out to another machine, and even
> better, you get the benefit of the DHCP server updating the DNS server.
> Unless you know *exactly* what you are doing, *!!!NEVER!!!* manually
> assign IP addresses. It only causes more headaches and, as you've already
> discovered, causes troubleshooting pains.
>
> -Cliff
>


I just want to add:

By default, a Windows 2000 and newer statically configured machines will
register their A record (hostname) and PTR (reverse entry) into DNS.

If set to DHCP, a Windows 2000 or newer machine will request DHCP to allow
the machine itself to register its own A record, but DHCP will register its
PTR (reverse entry) record.

However one problem with that, if the client shuts down, and later on when
it comes back up past the lease time, it may get a different IP address.
What happens here is a duplicate A record gets created with the new IP
because the client will not update itself due to the current record in DNS
is beyond the lease period. This happens even though DHCP registered the
record. This is because DHCP doesn't own the record, the client does, even
though DHCP registered it.

The way to get around this is you can configure DHCP to update the record
for the client, no matter what the client asks. What we want to do to keep
DNS clean without additional records with the same name but different IP
address in DNS. To do this, DHCP must own the record, not the client, so it
can keep it up to date, no matter if the record is being the lease or not.
Therefore, as long as DHCP owns the record, it will update the record in DNS
when and if DHCP gives the machine a new IP. Otherwise you'll see multiples
A and PTR records of the same in DNS whether scavenging is enabled or not.

I also suggest to configure DHCP to register all DHCP clients, whether the
client supports Dynamic Updates or not. This way all DHCP clients get
registered and DHCP owns the record. I suggest to enable DNS scavenging to
remove stale records, which will keep the zone clean.


For Tim09:

To force DHCP to own records, simply create a user account, (a non-domain
admin account), provide a secure password, go into the DHCP console,
righ-click DHCP server name, properties, Click on the last tab, click on
Credentials button, supply the user account name and password.

To enable scavenging on the zone, please read my blog in the following link:

DHCP, Dynamic DNS Updates , Scavenging, static entries & timestamps, and the
DnsProxyUpdate Group (How to remove duplicate DNS host records)
http://msmvps.com/blogs/acefekay/arc...ate-group.aspx

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Please reply back to the newsgroup or forum for collaboration benefit among
responding engineers, and to help others benefit from your resolution.

Ace Fekay, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA
2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer

For urgent issues, please contact Microsoft PSS directly. Please check
http://support.microsoft.com for regional support phone numbers.


 
Reply With Quote
 
Cliff Galiher
Guest
Posts: n/a

 
      11-09-2009
Two paths to the same end. I prefer letting the client register
itself...less to change, easier to troubleshoot, and doesn't require adding
credentials to the DHCP server...fewer credentials floating around is better
from a security standpoint in my opinion.

Instead I tweak stale record scavenging based on the environment and how
long any machine is expected to be out of contact. This is, of course, very
organization specific and depends on laptops, how long they may be off-site,
and other factors. But it accomplishes the same ultimate goal of removing
old A records.

-Cliff


"Ace Fekay [MCT]" <> wrote in message
news:...
> "Cliff Galiher" <> wrote in message
> news:%...
>> First, you have to understand that DHCP just hands out addresses. (well,
>> technically it can do a lot more, but for the merits of this
>> conversation...)
>>
>> It does NOT control how IP traffic gets from point A to point B at any
>> time.
>>
>> Let's use a valet service as an example. When going to a restaurant (a
>> fancy one that invests in silly technology like my example...bear with
>> me), the valet types in your license-plate, parks your car, and gives you
>> a ticket. Your ticket now has the license-plate and the parking space
>> printed on it.
>>
>> So one night, I go to the restaurant and park my car. I get a ticket
>> that says pc-5 is parked in 192.168.0.3. In the DHCP world, this is a
>> lease. Two weeks later, you go to the same restaurant and you get a
>> ticket. pc-7 is parked in 192.168.0.3. Two tickets, same IP. But they
>> aren't in conflict because the two cars were not parked there *at the
>> same time.* The parking space got reused because it was vacant. Again,
>> in the DHCP world, leases expire.
>>
>> Now to the important stuff. When you ping a machine, the first thing the
>> OS does is tries to resolve the machine name to an IP address. There are
>> several ways to do this: DNS, WINS, neighbor discovery, etc. But SBS
>> when setup properly will use DNS first. So when you manually set the IP
>> address if pc-5 to another address...192.168.0.113 in your example, you
>> didn't update the DNS entry on the DNS server. So a ping still does the
>> DNS lookup, DNS still has a record (you didn't delete that) and pings the
>> machine *REGARDLESS OF NAME* at 192.168.0.3. Same goes for pc-7. You
>> are manually changing the IP address, but not changing the DNS record.
>>
>> But the real rub here is that DHCP will update DNS records for you. By
>> changing the IP address manually, you were not letting DHCP do what it
>> does best. It hands out an address and then updates DNS. If had just
>> deleted the DHCP leases from the DHCP server and then rebooted both
>> clients (not the server!) they'd have re-requested IP addresses and DHCP
>> will *not* issue the same IP to multiple machines at the same time. One
>> would've gotten 192.168.0.3 and one would've gotten a new address.
>>
>> So to answer the two questions you ended with (in order), yes, it sounds
>> like pc-5 had 192.168.0.3 at one time. And no, the two machines would
>> not have gotten the same IP address.
>>
>> As an additional note, with any computer that has a shared resource, it
>> is best to make sure they always get the same IP address. You can do
>> this with DHCP by setting up a DHCP reservation. That way you won't ever
>> have the DHCP server handing that address out to another machine, and
>> even better, you get the benefit of the DHCP server updating the DNS
>> server. Unless you know *exactly* what you are doing, *!!!NEVER!!!*
>> manually assign IP addresses. It only causes more headaches and, as
>> you've already discovered, causes troubleshooting pains.
>>
>> -Cliff
>>

>
> I just want to add:
>
> By default, a Windows 2000 and newer statically configured machines will
> register their A record (hostname) and PTR (reverse entry) into DNS.
>
> If set to DHCP, a Windows 2000 or newer machine will request DHCP to allow
> the machine itself to register its own A record, but DHCP will register
> its PTR (reverse entry) record.
>
> However one problem with that, if the client shuts down, and later on when
> it comes back up past the lease time, it may get a different IP address.
> What happens here is a duplicate A record gets created with the new IP
> because the client will not update itself due to the current record in DNS
> is beyond the lease period. This happens even though DHCP registered the
> record. This is because DHCP doesn't own the record, the client does, even
> though DHCP registered it.
>
> The way to get around this is you can configure DHCP to update the record
> for the client, no matter what the client asks. What we want to do to keep
> DNS clean without additional records with the same name but different IP
> address in DNS. To do this, DHCP must own the record, not the client, so
> it can keep it up to date, no matter if the record is being the lease or
> not. Therefore, as long as DHCP owns the record, it will update the record
> in DNS when and if DHCP gives the machine a new IP. Otherwise you'll see
> multiples A and PTR records of the same in DNS whether scavenging is
> enabled or not.
>
> I also suggest to configure DHCP to register all DHCP clients, whether the
> client supports Dynamic Updates or not. This way all DHCP clients get
> registered and DHCP owns the record. I suggest to enable DNS scavenging to
> remove stale records, which will keep the zone clean.
>
>
> For Tim09:
>
> To force DHCP to own records, simply create a user account, (a non-domain
> admin account), provide a secure password, go into the DHCP console,
> righ-click DHCP server name, properties, Click on the last tab, click on
> Credentials button, supply the user account name and password.
>
> To enable scavenging on the zone, please read my blog in the following
> link:
>
> DHCP, Dynamic DNS Updates , Scavenging, static entries & timestamps, and
> the DnsProxyUpdate Group (How to remove duplicate DNS host records)
> http://msmvps.com/blogs/acefekay/arc...ate-group.aspx
>
> --
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Please reply back to the newsgroup or forum for collaboration benefit
> among responding engineers, and to help others benefit from your
> resolution.
>
> Ace Fekay, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA
> 2003/2000, MCSA Messaging 2003
> Microsoft Certified Trainer
>
> For urgent issues, please contact Microsoft PSS directly. Please check
> http://support.microsoft.com for regional support phone numbers.
>

 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      11-09-2009

"Cliff Galiher" <> wrote in message
news:...
> Two paths to the same end. I prefer letting the client register
> itself...less to change, easier to troubleshoot, and doesn't require
> adding credentials to the DHCP server...fewer credentials floating around
> is better from a security standpoint in my opinion.
>
> Instead I tweak stale record scavenging based on the environment and how
> long any machine is expected to be out of contact. This is, of course,
> very organization specific and depends on laptops, how long they may be
> off-site, and other factors. But it accomplishes the same ultimate goal
> of removing old A records.
>
> -Cliff
>


That is one way to do it, it's just that it won't update an existing record,
unfortunately.

Ace



 
Reply With Quote
 
Susan Bradley, CPA aka Ebitz - SBS Rocks
Guest
Posts: n/a

 
      11-10-2009
Tim, there are a bunch of folks posting in the nntp interface but it's not
being replicated back to the web forum. Sorry about that.
--
http://www.sbslinks.com/really.htm


"tim09" wrote:

> One of the client comptuers(pc-7) has a printer connected with usb and is
> shared. The computer has dynamic IP. All of a sudden users couldn't print to
> that shared printer from other comptuers. Tried few things and eventually
> logged on to SBS03 and found two comptuers have same IP of 192.168.0.3, pc-5
> and pc-7. Then we manually set IP of pc-5 to 192.168.0.113. but when we ping
> pc-5 it still links to 192.168.0.3, then we change ip of pc-7 to
> 192.168.0.114. and when ping pc-7 it still links to 192.168.0.3 too. Deleted
> both ip address from dhcp server as well, restarted SBS, and both comptuer.
> For now we have disconnected PC-5 and manually set PC-7's ip address to
> 192.168.0.3 other wise no matter what it doesn't print from other computer.
> Is there any way to clear it? by the way PC-5 wasn't used for months, would
> it be pc-5 had 192.168.0.3 ip already and when connected two comptuers got
> same ip address.
>

 
Reply With Quote
 
Larrycoe
Guest
Posts: n/a

 
      11-10-2009
simple
Switch off PC 5

on PC 7 go to dos prompt and run
ipconfig /release
ipconfig /flushdns
ipconfig / renew

will pick up new address could still be same as before.
on server go to DHCP and reserve it
Printing to a shared printer has nothing to do with the ip but with Netbios

Now swtich on PC5 and do the same except no need to reserve the ip

If still problem on server goto WINS
restart the service and delete any tombstoned records

should sort it out
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 Home Premium 64bit - Floppy drive driver issue LDJ Windows 64 Bit 24 05-11-2010 05:32 PM
Vista refuses DHCP offer in the privat IP range?? Nieuwslezer Windows Vista Installation 24 12-22-2009 12:25 AM
Re: DNS not register with non Windows DHCP Ace Fekay [MCT] DNS Server 1 10-22-2009 01:18 PM
WMDC 6.1 & Vista RC SP1, sync issue Robert W ActiveSync 4 01-29-2008 07:53 AM
Error When Generating System Health Report Dell Boy Windows Vista Performance 6 04-14-2007 10:42 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59