03-19-2013 07:44 PM - edited 03-07-2019 12:21 PM
Hello All
I'm implementing my first Cisco network and needed a little guidance. Here's the scenario and how I would like for it to function:
- I have to run DHCP on core switch, only on network 172.16.0.0/16 default Vlan 1 so my IP cameras can obtain an IP.
ip dhcp pool cameras
network 172.16.0.0 255.255.0.0
default-router 172.16.0.1
- On the PoE IP camera and POS station ports I'm thinking of configuring the following:
switchport mode access
spanning-tree portfast
Let me know what you guys think. I have a few weeks before these have to go to production. Any help and direction will be greatly appreciated!
I will be checking thread periodically and posting updates.
Solved! Go to Solution.
03-27-2013 07:07 AM
Cool thanks.
Do I need to type a command for lease length on dhcp scope?
Create the DHCP scope for vlan 1:
Ip dhcp pool CAMERAS
network 172.16.16.0 255.255.240.0
default-router 172.16.31.254
03-27-2013 09:13 AM
You can configure the lease like this:
Router(dhcp-config)# lease {days [hours][minutes] | infinite}
Sorry I forgot to mention this before
Sent from Cisco Technical Support iPhone App
03-27-2013 01:47 PM
No worries I had researched that and here is the commands I'm thinking of implementing.
ip dhcp pool CAMERAS
network 172.16.16.0 255.255.240.0
default-router 172.16.31.254
lease infinite
Thanks
03-27-2013 02:11 PM
Hey,
If you have ample address space then I guess its okay to use infinite lease time, but personally I wouldn't use this option myself.
Reason being, there may in the future, come a time where all the addresses have been given out and you wont have any more addresses left to give out from your pool!
This will be because your addresses have been permanently given out and you will not get this ip address back in your pool if the device was to go offline.
Since camera's dont move around a lot (assuming they will be pretty static), I'd probably configure a lease time of around 30 days.
But of course this is just my view on this subject, but you do have options
03-27-2013 06:16 PM
I have 4094 host and I'm only going to be using approximately 475 IP addresses, I think that'll be okay.
What happens to the assigned addresses if I create a lease time of 30 days and that time period ends?
Thanks!
03-28-2013 02:12 AM
If you have a lease time of 30 days, your hosts (camera's) will renew their IP address every 30 days. Hosts normally request to keep their IP addresses if it's available and the DHCP gives the same IP in that case. This way you have more control on giving out addresses.
Hope this helps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide