Wifi router question
Thread Starter
Joined: Jan 2008
Posts: 3,156
Likes: 113
From: There and here
Wifi router question
I have noticed that with my wifi router the address given to my laptop varies between 192.168.0..1,2,3,4,5 etc. Am I correct in thinking that this depends on how many devices are connected to the local network ? So what controls this address, because surely my device is the 'dominant' one, that is connected to the network for the longest time each day, yet often a box will appear telling me that my address e.g 192.168.0.2 is being given to another device and I now have 192.168.0.3 etc....What causes that ? Also at home there are only ever a maximum of 4 devices connected, yet today my address is 192.168.0.5
Could this indicate that someone else is using the network, even though it's WPA/WPA2-PSK encrypted ? Any advice appreciated.
SHJ
Could this indicate that someone else is using the network, even though it's WPA/WPA2-PSK encrypted ? Any advice appreciated.SHJ
Joined: Aug 2002
Posts: 3,663
Likes: 0
From: Earth
Could this indicate that someone else is using the network, even though it's WPA/WPA2-PSK encrypted ?
However the more likely answer is DHCP.
The router runs a little server process which dishes out IP addresses automatically to devices that request it.
Most DHCP servers will lease the IP to a MAC address for a given lifetime, however it sounds like the DHCP lease time is set very short on your router and hence is why new IPs are being dished out.
Thread Starter
Joined: Jan 2008
Posts: 3,156
Likes: 113
From: There and here
Thankyou mr mixture, can one change the DHCP lease time within the router settings or is it something generally set by the manufacturer ? This one being the French Sagem company btw.
SHJ
SHJ
Joined: Aug 2002
Posts: 3,663
Likes: 0
From: Earth
You should certainly be able to change the lease time.... but you don't often see more advanced settings exposed in home ADSL routers.
Sometimes there's a hidden advanced screen you can access by appending something to the router address in your browser's web bar.
I'll have a dig around re:Sagem, haven't seen many of those.
(By the way, just incase you weren't aware and were wondering, my reference to MAC address earlier was as in Media Access Control address... i.e. the unique identifier of your network card... rather than Mac as in the abbreviation of Macintosh).
Edit to add: Found a somewhat old (2004) Sagem manual which suggest its might be in Settings -> Network. Not sure if the menu structure has changed.
Sometimes there's a hidden advanced screen you can access by appending something to the router address in your browser's web bar.
I'll have a dig around re:Sagem, haven't seen many of those.
(By the way, just incase you weren't aware and were wondering, my reference to MAC address earlier was as in Media Access Control address... i.e. the unique identifier of your network card... rather than Mac as in the abbreviation of Macintosh).
Edit to add: Found a somewhat old (2004) Sagem manual which suggest its might be in Settings -> Network. Not sure if the menu structure has changed.

Joined: Jan 2008
Posts: 1,133
Likes: 0
From: Bracknell, Berks, UK
Given that this was my pet subject for several years as elucidated in previous threads, I can state the following:
- MS O/Ss do not (or at least in the early 2000s *did* not) follow the RFC as regards lease times for DHCP.
- Many consumer router DHCP daemons do not lease the same address to the same client
If you want the same address giving to the same client, your best bet is by static allocation over DHCP - this is where you get the MAC address of your device's network card (the address is 6 pairs of hex characters separated by colons and looks akin to this: 09
7:56:b3:2a:cf), and you insert it into the router in a static DHCP allocation table against the IP address you wish to receive. That way, when your device requests an IP address it is always given the one associated to that device.
HTH
- MS O/Ss do not (or at least in the early 2000s *did* not) follow the RFC as regards lease times for DHCP.
- Many consumer router DHCP daemons do not lease the same address to the same client
If you want the same address giving to the same client, your best bet is by static allocation over DHCP - this is where you get the MAC address of your device's network card (the address is 6 pairs of hex characters separated by colons and looks akin to this: 09
7:56:b3:2a:cf), and you insert it into the router in a static DHCP allocation table against the IP address you wish to receive. That way, when your device requests an IP address it is always given the one associated to that device.HTH
Administrator
Joined: Mar 2001
Aviation Qualifications: PPL
Posts: 8,121
Likes: 686
From: Twickenham, home of rugby
As a matter of interest, what's your router address? It's normally either the first available or the last available address in the subnet - e.g. 192.168.0.1 or 192.168.0.254, in your network.
If the router address is itself 192.168.0.1 and you have no more than 4 other devices, then you would not expect to see an address higher than 5.
SD
If the router address is itself 192.168.0.1 and you have no more than 4 other devices, then you would not expect to see an address higher than 5.
SD
Thread Starter
Joined: Jan 2008
Posts: 3,156
Likes: 113
From: There and here
Thanks for all the replies. I did a reboot of the wifi router and my address changed from 192.168.0.5 down to 0.2. I checked the users and there appeared to be just one, me
The router address is 0.1, but I'm sure that my laptop's address has been this many times in the past or is my drug-addled rock star past catching up with me finally ?
I've not found anything that allows me to change the DHCP lease length, but none of you experts have explained to me why my laptop happily using said router is turfed off it's address unceremoniously when any other allowed device connects to the local network ? It doesn't make sense to me as the router could just as easily allocate another address to the newly joined device, or is that too simple ?
SHJ
The router address is 0.1, but I'm sure that my laptop's address has been this many times in the past or is my drug-addled rock star past catching up with me finally ?I've not found anything that allows me to change the DHCP lease length, but none of you experts have explained to me why my laptop happily using said router is turfed off it's address unceremoniously when any other allowed device connects to the local network ? It doesn't make sense to me as the router could just as easily allocate another address to the newly joined device, or is that too simple ?
SHJ
Administrator
Joined: Mar 2001
Aviation Qualifications: PPL
Posts: 8,121
Likes: 686
From: Twickenham, home of rugby
The router address is 0.1, but I'm sure that my laptop's address has been this many times in the past
drug-addled rock star past catching up

why my laptop happily using said router is turfed off it's address unceremoniously when any other allowed device connects to the local network
SD
Thread Starter
Joined: Jan 2008
Posts: 3,156
Likes: 113
From: There and here
I'm not sure exactly what you mean - do you mean you lose network connectivity when another device connects, or just that you don't get the same IP address every time you power up your laptop?
SHJ

Joined: Jan 2008
Posts: 1,133
Likes: 0
From: Bracknell, Berks, UK
As a matter of interest, what's your router address? It's normally either the first available or the last available address in the subnet - e.g. 192.168.0.1 or 192.168.0.254, in your network.
If the router address is itself 192.168.0.1 and you have no more than 4 other devices, then you would not expect to see an address higher than 5.
SD
If the router address is itself 192.168.0.1 and you have no more than 4 other devices, then you would not expect to see an address higher than 5.
SD

Joined: Jan 2008
Posts: 1,133
Likes: 0
From: Bracknell, Berks, UK
So.....I'm on pprune (of course!) happily connected and surfing the future and as soon as someone else comes home, their device(s) seem to command priority from the router and a little box pops up on the screen telling me, as it's already a 'fait accompli' , that my address has been changed to (e.g from ...0.2 to ...0.3 etc) and that's that. If I recall correctly I cannot continue using the router until I click the azure blue 'agree' button. Why should my device be of less priority and the others more ? I know my place, but really!
SHJ
SHJ
Joined: Jan 2007
Posts: 729
Likes: 1
From: San Jose
My guess is that the client device connects, gets given 0.2 but then fails to renew the lease before expiry. Something else comes along and the DHCP implementation in the router gives it the lowest currently-free address. Your client then detects the clash and asks for another IP address. Some DHCP implementations will attempt to reserve an IP address for a particular MAC and will only re-use one if it runs out of spare addresses.
I hardwire my DHCP to dish out known fixed addresses to the known devices on the network and have a small dynamic pool for new devices. A quick check shows that my home network has accumulated 50 different known devices, although some of those are now defunct and some are virtual machines.
I hardwire my DHCP to dish out known fixed addresses to the known devices on the network and have a small dynamic pool for new devices. A quick check shows that my home network has accumulated 50 different known devices, although some of those are now defunct and some are virtual machines.
Thread Starter
Joined: Jan 2008
Posts: 3,156
Likes: 113
From: There and here
Can you further describe the azure dialog box? as this isn't consistent with the expected operation of DHCP and is either an address conflict as suggested by SD or the function of some third party s/w.
Just to be clear (using OS X in case that wasn't) a typically 'Apple' styled info box pops up in the middle of the screen telling me that my address has been changed and that I'm no longer connected, and I either press the white cancel/decline button OR the azure blue accept/change button to continue online. My curiosity is why, why has another device priority over another seemingly and why couldn't the router just leave me alone and give one of the other addresses to the other device(s) allowed on the network ?
When I am referring to my address changing it's NOT the Mac address, but the IPv4 address if that helps

SHJ

Joined: Jan 2008
Posts: 1,133
Likes: 0
From: Bracknell, Berks, UK
My guess is that the client device connects, gets given 0.2 but then fails to renew the lease before expiry. Something else comes along and the DHCP implementation in the router gives it the lowest currently-free address. Your client then detects the clash and asks for another IP address. Some DHCP implementations will attempt to reserve an IP address for a particular MAC and will only re-use one if it runs out of spare addresses.

Joined: Jan 2008
Posts: 1,133
Likes: 0
From: Bracknell, Berks, UK
Just to be clear (using OS X in case that wasn't) a typically 'Apple' styled info box pops up in the middle of the screen telling me that my address has been changed and that I'm no longer connected, and I either press the white cancel/decline button OR the azure blue accept/change button to continue online. My curiosity is why, why has another device priority over another seemingly and why couldn't the router just leave me alone and give one of the other addresses to the other device(s) allowed on the network ?
When I am referring to my address changing it's NOT the Mac address, but the IPv4 address if that helps
SHJ
When I am referring to my address changing it's NOT the Mac address, but the IPv4 address if that helps

SHJ
It does indeed sound like your router might be at fault though if it's a standard Apple dialog box you're clicking on. Why don't you attempt to update the firmware on the router and see if that fixes things? routers are known to undergo many iterations of firmware throughout their lives, and you might get several other benefits as well.
Thread Starter
Joined: Jan 2008
Posts: 3,156
Likes: 113
From: There and here
Thanks MB. The router is a SKY Sagem router and apparently it is updated automatically in the dead of night on a regular basis and according to SKY I have the latest firmware that came out 2 weeks ago. As I haven't experienced this being turfed out of my IPv4 address for a few weeks (but many times before) perhaps it will not now happen again ?
SHJ
SHJ

Joined: Jan 2008
Posts: 1,133
Likes: 0
From: Bracknell, Berks, UK
Thanks MB. The router is a SKY Sagem router and apparently it is updated automatically in the dead of night on a regular basis and according to SKY I have the latest firmware that came out 2 weeks ago. As I haven't experienced this being turfed out of my IPv4 address for a few weeks (but many times before) perhaps it will not now happen again ?
SHJ
SHJ
Take 2 aspirin and see me in the morning
Joined: Jan 2007
Posts: 729
Likes: 1
From: San Jose
Of course, a "polite" DHCP server will attempt to ping the IP address it's about to assign and if it doesn't like what happens next, will choose a different one and try that instead. I don't think that's a requirement though, merely an example of defensive programming.

Joined: Aug 2006
Posts: 1,761
Likes: 6
From: Lemonia. Best Greek in the world
Big Hammer??
I just about managed to follow the conversation above.
It convinces me that the only proper way of solving IT problems is by the injudicious use of a very large hammer. Then, go and listen to the hi-fi instead.
My Rega Planar 3 is 100 years old and still works perfectly, not requiring any XP type updates, and the NADs and the great big NEF Q's do not need an update on the first Tuesday of each month......
It convinces me that the only proper way of solving IT problems is by the injudicious use of a very large hammer. Then, go and listen to the hi-fi instead.
My Rega Planar 3 is 100 years old and still works perfectly, not requiring any XP type updates, and the NADs and the great big NEF Q's do not need an update on the first Tuesday of each month......



