cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1704
Views
2
Helpful
10
Replies

Windows DHCP Virtual Machine does not receive DHCP requests

eczajka99
Level 1
Level 1

Switch: Cisco 2960 (172.16.1.2)
PC1: Client machine requesting DHCP from Hyper-V Server1
PC2: Machine running Hyper-V and hosting Server1. (Static IP: 172.16.1.5)
Server1: Windows virtual machine running on PC2. (Static IP: 172.16.1.7)

All devices are on default VLAN1.

If I set a static IP address for PC1 I am able to ping the switch, PC2 and Server1.

When I change PC1 to obtain an IP address via DHCP it does not return an IP address.
Here are the results from debug ip dhcp server packet:

*Mar 4 00:36:42.808: DHCPD: Reload workspace interface Vlan1 tableid 0.
*Mar 4 00:36:42.808: DHCPD: tableid for 172.16.1.2 on Vlan1 is 0
*Mar 4 00:36:42.808: DHCPD: client's VPN is .
*Mar 4 00:36:42.808: DHCPD: using received relay info.
*Mar 4 00:36:42.808: DHCPD: Looking up binding using address 172.16.1.2
*Mar 4 00:36:42.808: DHCPD: setting giaddr to 172.16.1.2.
*Mar 4 00:36:45.828: DHCPD: BOOTREQUEST from 01f0.1faf.5730.81 forwarded to 172.16.1.7.

Please find the attached config file and network diagram

10 Replies 10

balaji.bandi
Hall of Fame
Hall of Fame

Switch acting as Layer 2 and all default VLAN

PC2: Machine running Hyper-V and hosting Server1   <<--- if the PC hosting Server from Server are you able to ping switch IP address 172.16.1.2?

any FW blocking on PC not standard ports.

I generally don't use Much of Hyper-v

check some fix may be applicable :

https://windowsreport.com/hyper-v-dhcp-not-working/

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

When all devices are assigned static ip's they are all able to ping each other. Additionally, both PC's along with the virtual machine have their FWs completely disabled.

Only remove ip helper from vlan1 and issue will be solve

Issued no ip-helper address command and rebooted switch..same result

can I see 
show mac address table in SW?

switch2960#show mac address-table
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All ffff.ffff.ffff STATIC CPU
1 0015.5db9.6a04 DYNAMIC Fa0/9
1 d4be.d977.f9c3 DYNAMIC Fa0/9
1 f01f.af57.3081 DYNAMIC Fa0/5
Total Mac Addresses for this criterion: 23
switch2960#

*Mar 4 00:36:45.828: DHCPD: BOOTREQUEST from 01f0.1faf.5730.81 forwarded to 172.16.1.7.

After that, what debug log do you see? what is the event log same time on DHCP Server?

what is the gateway for DHCP Server ?

check more debug from the cisco device :

https://www.cisco.com/c/en/us/support/docs/ip/dynamic-address-allocation-resolution/27470-100.html

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

1 0015.5db9.6a04 DYNAMIC Fa0/9 <<- PC hosted or VM DHCP
1 d4be.d977.f9c3 DYNAMIC Fa0/9 <<- PC hosted or VM DHCP
1 f01f.af57.3081 DYNAMIC Fa0/5 <<- PC that have issue to get IP 

this seem to me that the broadcast DHCP request forward to PC hosed not to VM DHCP server 
can you (only for test)
config VLAN 2 and make f0/5 assign to this new VLAN 
and under VLAN2 config IP helper point to VM DHCP 
this will make DHCP request unicast not broadcast. 

Hello
Do you have a dhcp server running, with a dhcp scope active for that specific vlan?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

Yes..I have validated that the DHCP service is running. Also, Get-DHCPServerv4Binding returns the correct IP address for the server (172.16.1.7) along with the BindingState=true

Review Cisco Networking for a $25 gift card