DHCP No gateway found Error

VPCS> ping 192.168.10.1 IP 192.168.20.2/24

No gateway found

Above error means that DHCP server does not have gateway specified , and which was not provided to the client during DHCP IP assignment process.

Solution :

Corp(config)#ip dhcp pool LA_LAN
Corp(dhcp-config)#default-router 192.168.20.1
Corp(dhcp-config)#end

Re-run the DHCP get process on client , and the gateway will be updated automatically

VPCS> ip dhcp          

DORA IP 192.168.20.2/24 GW 192.168.20.1