Strange DHCP issue

Hi All,

For months my MBP has been playing well networking wise. At my office we use DHCP on a 135.x.x.x LAN. It has never complained and the DHCP server in use at work typically gives me the same IP each morning. Once in a great while it will shift but not often.

At home I use a 192.168.168.x LAN and I have my little DHCP server in my firewall setup to give me back an address in that range. This works fine both wired and wireless.

I know that in some labs at work they have some small routers for the product we sell that are configured to give DHCP addresses in the same 192.168.168.x range. This is how we sell our product for local networking. We then ask the customer to connect the WAN port to their company LAN.

I know that some of these "product" routers exist on our company LAN. Various groups have them setup for testing.

Still when my MBP connects I get a company LAN address in the 135.x.x.x range which is what I want.

Saturday I plugged in my USB disk, told SuperDuper to do a backup of the drive. When I came back my MBP was asleep. I have SuperDuper set to exit itself. I have no idea why it was asleep as my normal "power adapter" setting is to never sleep.

Nothing else was strange and the MBP performed fine at home both wired and wirelessly on the LAN.

This morning I come into work, plug it in, on boot up I get an IP address conflict saying at 192.168.168.207 is in use by anther adapter (hex code). I'm 99% sure that was the HOME ip address I had.

I went into System Prefs and checked networking and it was still set to DHCP. I rebooted. Same deal.

Why all of a sudden is my computer on DHCP trying to talk to a DHCP server at 192.168.168.1? It has never done this in the past.

I tried toggling between manual address and back to DHCP. No luck. Since I knew the last IP I had on Friday I put that in under the manual IP with DHCP (I have no idea how this works) and the message goes away.

I let it stay like that for a while then toggled back to DHCP. A few seconds later the conflict message appears again.

I know it is getting this conflicted IP from the company lan because if I unplug the cable it goes away. Plug it in, it comes right back.

Any idea what changed to cause this or how I can fix it?

Mark

MBP 2.16Ghz, 2G RAM, 120G HD, Intel MacMini 2G RAM, iPod 60G video, Mac OS X (10.4.6)

Posted on Nov 20, 2006 5:41 AM

Reply
10 replies

Nov 20, 2006 8:22 AM in response to MarkRHolbrook

Assuming that some guy at your workplace setup a small lan using 192.168.168.x, and connect such a machine to your company network. It will work fine since your company uses 135.x.x.x but will be in conflict with your manual DHCP that you set at home.

I don't really understand why when you turn on auto DHCP that you get a conflict, but I would think that using another net at home will be the safest possible way.

192.168.1.x is widely used in home and I know it should be safe 100%.

I am not sure why your wireless picked up your company's 135.x.x.x but your ethernet tries to get 192.168.168.x Is it that your company has 2 or more DHCP that gives out addresss? one for the 192.168.168.x under ethernet, the ohter one 135.x.x.x for the wireless?

BTW, why do you need to connect wireless and ethernet at the same time? do you need to join 2 networks at the same time?

Nov 20, 2006 8:48 AM in response to Jojoman

Ok... I think there is some misunderstanding...

Let me clarify... The company does NOT have wireless... And in fact when the problem appeared this morning I turned wireless off.

At home I have both wireless and wired so I can move about the house. Both end up on 192.168.168.x. Regardless of if I'm wired or wireless DHCP at home hands out an address, usually 192.168.168.207 or so since I have other machines (wife, kid, printer, etc).

So with wireless turned off the problem came up in the following way:

The MBP was working fine at home. Did the superduper backup. Found it asleep. It was fine otherwise.

Come to work and suddenly getting IP conflicts. Nothing that I could see changed and this setup had been working perfect for probably 6 months.

I could sit and watch in network prefs when set to DHCP and see it pause, flash up a DHCP address of 192.168.168.207 from a router of 192.168.168.1 (mine at home is at 192.168.168.250). Then give the conflict message and repeat the following ad infinitum.

I rebooted a windows machine on the same switch as me to see if it was something with the company DHCP servers. No problem. It came up with a perfect company DHCP address.

As I said I toggled between manual, manual DHCP, DHCP and I rebooted several times. All same problem.

I did find a temporary fix. After booting my MBP I let it come up with the conflict then I went and powered down my switch and repowered it. Upon power up my MBP got a company DHCP address.

At first I figured my switch had barfed but the windows machines on that same switch work fine. For grins I rebooted my MBP (hoping the problem was now fixed). On boot I again got the conflict. Power cycling the switch again allowed me to get a DHCP address from the company server.

Strange. The wierd thing is this has been working FINE for 6 months. I tried a NVRAM reset with no luck. Didn't have much hope but figured it was worth a try.

So I'm running but still very puzzled. It acts like somewhere stored in my MBP network configuration is a perference for using a DHCP server on a 192.168.168.x LAN.

Like I said, I've NEVER had it do this before and I can't understand why it seems to perfer this now. I also don't understand why power cycling my switch seems to fix this.

Nov 20, 2006 9:04 AM in response to MarkRHolbrook

Sorry about the confusion. Please tell me a little more.

Is it possible that someone in your company happens to enter a manual IP of 192.168.168.207?

Normally, when you are in your company, what IP address do you get? I guess it wasn't the same as the one you get at home (192.168.168.207)

When you use manual mode, did you try entering another IP addres? Do you still get the conflict error?

Nov 20, 2006 9:21 AM in response to Jojoman

What I think is happening is like I said we have some "test units" of the machines we make running around the company LAN. There are probably 10 of them.

These machines (test units" consist of a machine, a small server, and a router. Because these machines get installed in companies that are wary about network use we ship them with a small router. The router is configured to give out DHCP addresses ON ITS SMALL LAN PORT ONLY of 192.168.168.100-150. The server on this small router is statically configured to 192.168.168.5.

They plug the WAN port of these routers into the company LAN. The WAN ports are configured to get a DHCP address from whoever they connect to. The router is setup to provide ONLY outgoing rules from the machines on the small LAN to the outside world. No incoming connections are allowed. This is how we make company IT managers feel safe yet we still allow our units to issue outbound connections for diagnostic purposes.

Like I said there are probably 10 of these "setups" running on our LAN a the company and these have been doing so for probably 2 years.

They way they are setup I should not be able to get to the DHCP server in ANY of these small routers because it is setup to only respond to DHCP requests on it's 4 port LAN.

I'm not sure but there may be a way that it can do DHCP over it's WAN port and perhaps some one has futzed with one and it is doing so. That would be strange to say the least.

Anyway my MBP running OS X normally plugs into the company LAN and I get an address of 135.16.0.xxx. This has been working for a very long time. When I take it home the DHCP works there too and gives me an address in the 192.168.168.xxx range. Again for a very long time no issues.

Whether or not someone in the company has issued a manual address of 192.168.168.207 should be meaningless. My MBP is configured to get whatever address the company DHCP server hands out.

When connecting at the company I normally DO NOT get an address in the 192.168.168 range. I always get a company class B I think address of 135.16.0.xxx. As I said this had been working perfectly for MONTHS!

What seems to be happening is somewhere in the company there is a DHCP server that seems to be at 192.168.168.1. When my MBP boots it seems to perfer connecting to this one rather than the company server.

This has never happened before and I can't figure out where in preferences you can set which DHCP server you connect to. I always figured you couldn't have more than one on a LAN.

If you do how does the MBP decide which to use?

Also why does powercycling my switch seem to fix it?

Nov 20, 2006 9:36 AM in response to MarkRHolbrook

If you have 2 DHCP servers in the same LAN, in both Windows PC and Mac the computer will simply pick one, which one? I am not really sure of.

I am not aware of any method to set in MacOSX the prefered DHCP. Because for good practice you shouldn't have 2 DHCP serving in the same subnet. One would do that as a backup DHCP server which will serve different segment of the subnet, for example : one for x.x.x.1~100, the other x.x.x.101~200

I don't think it is possible for the router DHCP to server through its WAN port, since WAN port are setup more like a client in the DHCP network.

Sorry but I don't know the answer to your problem, I would try to locate the DHCP server that is issuing the address iof 135.16.0.x to your mac and do a 'more direct' connection without going through various switches to see if you can pick up the correct ip.

Nov 20, 2006 9:59 AM in response to Jojoman

With 2 DHCP servers in the same network here is the process for getting an address. If your computer has recently gotten an address from one of them, it will try and go back to renew it. If it has gotten an IP from a different server (home router, etc) it will take the first address that is offered to it (i.e proximity, speed of server).

Erik P
MCSE (NT 4.0, 2000,2003)
MCSA (2000,2003)
MCT
MAC convert for speed and stability

MBP C2D 2.16, Toshiba Sat 1.8M Windows XP Pro Waiting for my new MBP C2D :-0

Nov 20, 2006 10:10 AM in response to mcseman

Jojo...

thanks for taking all the time to respond. I appreciate it.

mcseman, I think you are right... it is some how for some reason prefering the DHCP located on 192.168.168.xxx But what still does not make sense is ok so it picks that one. Why does the address it gives me conflict? I guess there could be a manually entered 192.168.168.207 on the lan but I would tend to doubt it.

Strange. I'll go ask IT

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Strange DHCP issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.