PDA

View Full Version : Dhcp questions.


finncapt
16th Feb 2015, 08:12
Finncapt mansions has a 4 port adsl modem/router.

To these 4 ports are connected 2 x 8 port switches and 2 wireless routers in access point mode (at opposite ends of the house).

Currently all DHCP requests are handled by the modem.

I now require static ip to an ip camera, a NVR server and 2 raspberry pis which are attached to the 8 port switches.

I can set up the modem to use static ip but I am unsure how to handle tablets etc. which connect to the wireless routers - particularly as my cat sitters brings their own tablets when they come to stay.

Should I enable router mode on each of the wireless routers but give each wireless router a static ip address on the modem?

Will the wireless routers then allocate DHCP for connected devices?

The second question.

The ip camera is showing in the modem DHCP table as 192.168.0.103 but I have given it the static address of 192.168.0.195 in the camera software.

To access it with Firefox, I use the .195 address but don't understand what is happening as the modem thinks it is at the DHCP address .103.

Thanks for anyones help.

Bushfiva
16th Feb 2015, 08:31
Since the modem is handling DHCP, there will be a field somewhere showing the range of IP addresses it is managing: for example, x.x.x.2 through x.x.x.64. You simply make sure you assign your fixed IP addresses outside that range. In the above example, 65 and above are freely available to you.


In other words, look at what the router is managing, and you simply assign the rest.

Re the IP camera, look again in a few days and see if it sorted itself out after the lease expires.

Booglebox
16th Feb 2015, 08:46
Should I enable router mode on each of the wireless routers but give each wireless router a static ip address on the modem?

Will the wireless routers then allocate DHCP for connected devices?

No, set your wireless access points to "access point" mode.
Yes, give them a static IP address.
It depends, on how you configure things. I recommend having your wireless access points "pass-through" DHCP requests to your central box that does DHCP.

The ip camera is showing in the modem DHCP table as 192.168.0.103

That's because the lease hasn't expired yet. Ignore it.

finncapt
16th Feb 2015, 08:57
Thanks Bushfiva.

I have read the routers instructions and it says the DHCP pool is xxx.xxx.0.100 to .199.

The router will accept addresses in the range XXX.XXX.0.1 to .253.

So, if I understand correctly, I can assign, say, XXX.XXX.0.210 to a device and this will be a static address as it is outside the DHCP pool.

The instructions imply that you can only use DHCP or not use DHCP but not a combination of both.

I will test it.

Bushfiva
16th Feb 2015, 09:10
Yup, all the other numbers are available to you. I'd suggest above 199, simply because I have no idea why it starts DHCP at 100 without a quick look through your setup. But I'd guess 2 to 99 are available, too.

finncapt
16th Feb 2015, 09:23
BB

The wireless routers are already set up as you suggested.

I have now assigned the ip camera XXX.XXX.0.205 and can contact it on that.

It would be nice if I could find a page in the modem/router setup which indicated static ip addresses but I cant - will look further.

Thanks again

Bushfiva
16th Feb 2015, 09:48
Although the router should list all the IP addresses it's routed recently (along with their MAC addresses), if you want a simple view of the network then something like Softperfect's Netscan will show you what's working at any one time. Mikro Tik's TheDude probably does way more than you want, but is also fun.

finncapt
16th Feb 2015, 10:39
I downloaded netscan and that seems to be telling me what I wanted to know.

Thanks