I have DHCP server on the central site and branch office is connected via IPVPN link to central site over MPLS cloud of service provider.from the router and switch of the branch office i can ping the DHCP server.Configured one vlan on the switch and given dhcp server ip as the ip helper address.But not getting any IP from the DHCP server for the vlan users.Attached the log of "debug ip dhcp server events".Please give me a solution
Assuming that you already correctly configured the DCHP pool of that network on the DHCP server.
Would you please post the configuration on the branch router? Excluding sensitive information.
Note: Do you have any firewall or security policies applied between both ends?.
DHCP scope is configured on the server and i am getting IP when we connected at the central site.But over the IPVPN link its not getting IP.My doubt is should i give source IP for the DHCP scope as the IPVPN-WAN link IP at the branch office or Interface VLAN Ip for which we configured the scope.Now we have given the INterface VLAn IP as the source IP in the DHCP scope at the server side.
Well, Are you using site-to-site vpn? If yes, Have you allowed the ip address of the vlan interface in the interesting traffic on the ACL?
However If you can provide the configuration, it will be good for us.
Your configuration is good to me.
Don't tell me you have a "no service dhcp " command on your switch. I thought you don't.
Well, Do you have any firewall or ACL applied somewhere on the both ends?
Sorry I just carefully saw your configuration.
Well, I have to ask you a question. Do the users use the switch the be a gateway? If not,then who? the router? Okay Well, What about these commands?
ip address 10.4.5.1 255.255.255.0
ip helper-address 10.1.251.50
Please tell me what's going on
Okay , I got it now. C2960 is just a layer2 switch. You need to add a "ip helper" command on the router.
The ip address on the layer2 switch is to manage the switch. if you want to manage this switch from the HQ site. Please do the following steps.
interface vlan 1
no ip helper-address 10.1.251.50
ip default-gateway 10.4.5.1
Trust me once. (grin)