Return to the CurtPalme.com main site CurtPalme.com Home Theater Forum
A forum with a sense of fun and community for Home Theater enthusiasts!
Products for Sale ] [ FAQ: Hooking it all up ] [ CRT Primer/FAQ ] [ Best/Worst CRT Projectors List ] [ Setup Tips & Manuals ] [ Advanced Procedures ] [ Newsletter ]
 

Blu-ray disc release list and must-have titles. Buy the latest and best Blu-ray titles to show off in your home theater!

 As this forum is rarely used anymore, we've locked it. Feel free to browse and read. Questions? Please reach out to us directly. Cheers! 

DHCP temp IP address question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    CurtPalme.com Forum Index -> CRT Projectors
Author Message
stefuel



Joined: 07 Mar 2006
Posts: 3353
Location: Green Harbor MA USA

Posted: Wed May 18, 2011 10:17 am    Post subject: DHCP temp IP address question

May be off topic but is HT related anyway Wink
I'm trying to add another device to my LAN. It's a Escient server to control a Sony disc changer. It's trying to connect using the same IP address as something else on my network. How does DHCP using temp IP address allocation work?
Does everything on the network have to be connected and turned on and then re-boot the router for this to work?
I was trying to do this last night but did not want to disturb the kids sleep by going in and turning on their PC's.
Thanks,

_________________
Chip
A Barco is only a AmPro with training wheels

Card carrying member of the AVS chain gang.
Back to top
km987654



Joined: 25 Jul 2007
Posts: 2874
Location: Australia

TV/Projector: Barco BG809s

Posted: Wed May 18, 2011 11:09 am    Post subject:

If the other devices are PCs then perhaps a solution would be to release the IPs on the PCs or even just the one that is conflicting.
Back to top
MikeEby



Joined: 24 Jun 2007
Posts: 5237
Location: Osceola, Indiana

Posted: Wed May 18, 2011 11:50 am    Post subject: Re: DHCP temp IP address question

Most devices allow you to hard code a static address in them. That way you can be sure it's always where it should be. Also most router only allocate a range in the subnet to DHCP. The one I have uses 192.168.1.50 - 192.168.1.100 by default so just set the ip address on your server to an address that's free and outside of that range.

The router should also have a table that display all the devices that have ip address that were allocated by the DHCP in the router.

There should be no reason to reboot any devices on the network unless you change the subnet. Rebooting the router may not clear all addresss even with the computers shut off. If that's the case then you must do what KM suggests. Is the problem the Server has the same address as another device on the network?


Mike

_________________
Doing HD since the last century!
Back to top
stefuel



Joined: 07 Mar 2006
Posts: 3353
Location: Green Harbor MA USA

Posted: Wed May 18, 2011 12:04 pm    Post subject:

I will have to wait until tomorrow night to look at this again as I'm doing a double today and a regular shift tomorrow. I think the Escient is trying to use the same IP as my Sony BD changer. I'm trying to get this Escient and DVP-CX777ES to play nice so that I can take the std def DVD's out of the BD changer and free up space for BD's only.
The Escient and the 777ES are communicating fine via RS232, it's just this conflict in IP address that's screwing things up.

_________________
Chip
A Barco is only a AmPro with training wheels

Card carrying member of the AVS chain gang.
Back to top
TheVerge



Joined: 19 Jul 2009
Posts: 928


Posted: Wed May 18, 2011 1:49 pm    Post subject:

DHCP by design won't give 2 things the same address. Sounds one of the two devices has a static IP address.
Back to top
zaphod



Joined: 16 Jun 2006
Posts: 2002
Location: Cloverdale

Posted: Wed May 18, 2011 3:24 pm    Post subject:

DHCP works works to give out IP addresses and supporting information (thatis, router/gateway, DNS servers, domain name and so on).

every network device built has a unique physical hexadecimal address of the form XX:XX:XX:XX:XX:XX where "X" is a digit from 0 to F called an ethernet or MAC address.

When a network interface is started up, the IP address that it uses is going to be either defined explicitly (called a static definition) or is retrieved from a server via one of any number of mechanisms, DHCP being one of them.

essentially it works like this.

    the machine (client) puts out a broadcast message saying "hey - my MAC is XX:XX:XX:XX:XX:XX, does anyone have an IP for me?".
    the DHCP server responds with "This is your IP"
    the client returns "cool, i'll take it", and uses it


there is a lot more handshaking, but that's the crux.

The IP addresses given out by the server are defined in the configuration as either static or dynamic. static means that the DHCP server will give out the same address every time to the same MAC address. This is how i have the computers on my home network defined. Static addresses served by DHCP.

But if someone comes by with a computer, I don't know their MAC, don't want to bother getting it and putting it into the DHCP config, so i have defined a range of 10 or so dynamic addresses. This means that when the DHCP server sees a request from a MAC address for which it does not have a static address defined, it hands out one from the dynamic range.

Each and every IP address given by a DHCP server comes with a lease. when the lease expires on the client, it asks for a new address. in most cases it gets the same IP address again. When the lease expires on the server it is marked available and will be handed out at the next request for a dynamic IP.

Since the client and server leases timeout at the same time, the same address is usually given to the client. But if the client is turned off, and the server expires the lease, the IP could very well go to another machine requesting a dynamic IP number. In the case of static DHCP addresses, the same IP is always returned with the lease expires - that is why they are static.


Leases stop the DHCP from getting the same IP address. If you have two devices with the same IP address then you have a wonked out DHCP configuration - or one device is not listening to the DHCP server. while it may have an entry in the DHCP configuration, there is a good chance that the machine (client) is not configured to get it's IP from DHCP.

another, more complex possibility is that there are two DHCP servers on your network, and they are colliding in the addresses they give out (i've seen that before).

_________________
walk gently. leave a good impression.
Back to top
km987654



Joined: 25 Jul 2007
Posts: 2874
Location: Australia

TV/Projector: Barco BG809s

Posted: Thu May 19, 2011 2:37 am    Post subject:

TheVerge wrote:
DHCP by design won't give 2 things the same address. Sounds one of the two devices has a static IP address.


That is correct in principle but in practise if the device has a been given a fixed IP and that IP is not reserved in DHCP (or beyond the scope) then DHCP may well assign the same IP to another device causing the conflict.
Back to top
stefuel



Joined: 07 Mar 2006
Posts: 3353
Location: Green Harbor MA USA

Posted: Thu May 19, 2011 11:31 pm    Post subject:

km987654 wrote:
TheVerge wrote:
DHCP by design won't give 2 things the same address. Sounds one of the two devices has a static IP address.


That is correct in principle but in practise if the device has a been given a fixed IP and that IP is not reserved in DHCP (or beyond the scope) then DHCP may well assign the same IP to another device causing the conflict.


"given a fixed IP and that IP is not reserved in DHCP"

Is this worded correctly? Don't you mean a fixed IP (static) that is reserved in DHCP???


I do have one static address that does fall within the range of DHCP but it's way in the upper range. My Fios router is spitting out dynamic IP's starting from the first lowest available and working it's way up, starting at 1.2

_________________
Chip
A Barco is only a AmPro with training wheels

Card carrying member of the AVS chain gang.
Back to top
km987654



Joined: 25 Jul 2007
Posts: 2874
Location: Australia

TV/Projector: Barco BG809s

Posted: Thu May 19, 2011 11:55 pm    Post subject:

stefuel wrote:
km987654 wrote:
TheVerge wrote:
DHCP by design won't give 2 things the same address. Sounds one of the two devices has a static IP address.


That is correct in principle but in practise if the device has a been given a fixed IP and that IP is not reserved in DHCP (or beyond the scope) then DHCP may well assign the same IP to another device causing the conflict.


"given a fixed IP and that IP is not reserved in DHCP"

Is this worded correctly? Don't you mean a fixed IP (static) that is reserved in DHCP???


I do have one static address that does fall within the range of DHCP but it's way in the upper range. My Fios router is spitting out dynamic IP's starting from the first lowest available and working it's way up, starting at 1.2


Yes in this case "fixed" means "static". That IP that does fall within the range should be reserved because there is no guarantee that DHCP will not issue that IP to another device at some future time causing this same problem, unless you reserve a static IP DHCP doesn't know it exists. If the current conflicting IP has not been issued by DHCP then its likely that there are two devices with the same static IP you will need to manually locate and correct that problem.
Back to top
stefuel



Joined: 07 Mar 2006
Posts: 3353
Location: Green Harbor MA USA

Posted: Fri May 20, 2011 12:57 am    Post subject:

I think I may have found one problem. I started with a Fios 4 port router. I quickly ran out of ports so I bought a
Netgear 8 port gigabit switch. Right now I'm using 8 or 9 of the 12 available ports. I was just logged into my router and I found under system settings "Configure the number of concurrent users that can be logged into the router. That is set to 5. If I have 12 ports available shouldn't I set that to 12 or more as I also have wireless devices like Wii.

_________________
Chip
A Barco is only a AmPro with training wheels

Card carrying member of the AVS chain gang.
Back to top
TheVerge



Joined: 19 Jul 2009
Posts: 928


Posted: Fri May 20, 2011 2:34 pm    Post subject:

I don't know how those FIOS jobbies work, but with a regular router, there should be no changes necessary for dhcp.


If you are really bored, install Wireshark on a computer and turn both of those devices on, you can see the dhcp traffic in real time and diagnose the problem. I suspect one of them will not be asking for an IP address though.
Back to top
ChrisWiggles
Opinionated SOB


Joined: 12 Mar 2006
Posts: 2529
Location: Seattle

Posted: Sat May 21, 2011 9:39 pm    Post subject:

stefuel wrote:
km987654 wrote:
TheVerge wrote:
DHCP by design won't give 2 things the same address. Sounds one of the two devices has a static IP address.


That is correct in principle but in practise if the device has a been given a fixed IP and that IP is not reserved in DHCP (or beyond the scope) then DHCP may well assign the same IP to another device causing the conflict.


"given a fixed IP and that IP is not reserved in DHCP"

Is this worded correctly? Don't you mean a fixed IP (static) that is reserved in DHCP???


I do have one static address that does fall within the range of DHCP but it's way in the upper range. My Fios router is spitting out dynamic IP's starting from the first lowest available and working it's way up, starting at 1.2


You should always assign any static IP addresses at the devices to use an IP outisde the DHCP range so you don't have this conflict problem.

So for instance, my router's default DHCP range starts at x.x.x.100 through x.x.x.199. That allows for plenty of devices to use DHCP. Then I assign manual static IPs to some devices starting at x.x.x.200. This way the router will never assign a DHCP ip address to anything that will overlap with something else I have set manually. If your network is big and you are assigning things manually, you should design it this way, and have a document somewhere with everything written down so you know what is what and don't overlap anywhere and cause problems.

Some people like to control static IPs at the router, other at the device manually, just depends on the situation.
Back to top
stefuel



Joined: 07 Mar 2006
Posts: 3353
Location: Green Harbor MA USA

Posted: Tue May 24, 2011 10:04 pm    Post subject:

I was busy and just ignored it for a couple of days and it seems to have sorted it's self out. Laughing
_________________
Chip
A Barco is only a AmPro with training wheels

Card carrying member of the AVS chain gang.
Back to top
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    CurtPalme.com Forum Index -> CRT Projectors All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum