08-02-2020 11:29 AM - edited 08-06-2020 05:16 AM
I'm very new to networking and I just can't figure out why my PC isn't able to get DHCP ip address as it works for my Web server.
Any help would really be appreciated.
Solved! Go to Solution.
08-02-2020 07:12 PM
Assuming that Router should not provide IPs to hosts (not be DHCP server), here is what I found so far:
Server PT DHCP has wrong IP address; IP is in vlan 30 but I think it should be in 80, not in 30; Also, i think one or two settings in dhcp network ranges were wrong on Server PT dhcp service tab.
then, if you change IP of Server PT, you will need to correct ip helper-address to point to IP of server, I think it should be 128.1.1.2.
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 128.1.0.1 255.255.255.0
ip helper-address 128.1.1.2
Regards, ML
**Please Rate All Helpful Responses **
08-02-2020 02:51 PM - edited 08-02-2020 02:55 PM
Web server gets IP from DHCP you set up on router, not from server. you can see that with show ip dhcp pool or bindings on router.
if you add dhcp pool for vlan 30 on router, it should work
ip dhcp pool net_30 network 128.1.0.0 255.255.255.0 default-router 128.1.0.1
but, i think, the goal to get IPs via dhcp from Server-PT, not from router, right?
Regards, ML
**Please Rate All Helpful Responses **
08-02-2020 07:12 PM
Assuming that Router should not provide IPs to hosts (not be DHCP server), here is what I found so far:
Server PT DHCP has wrong IP address; IP is in vlan 30 but I think it should be in 80, not in 30; Also, i think one or two settings in dhcp network ranges were wrong on Server PT dhcp service tab.
then, if you change IP of Server PT, you will need to correct ip helper-address to point to IP of server, I think it should be 128.1.1.2.
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 128.1.0.1 255.255.255.0
ip helper-address 128.1.1.2
Regards, ML
**Please Rate All Helpful Responses **
08-02-2020 09:57 PM
Omg, it works! Thank you so much, really appreciate your help :)
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