Hyper-V : VM DHCP offer not reaching client in different VLAN

Sven Schoonvliet 21 Reputation points
2022-11-12T14:53:25.45+00:00

I'm trying to setup a virtual lab with a pfsense router, Domain Controller + dhcp server, Client PC
De pfsense router has 2 interfaces configured "hn1" native lan and "hn2" with 2 vlan interface hn2.10 and hn2.20

VM1: DC - VLAN10 - IP 172.16.10.253
VM3:
-WAN: 192.168.2.100 connected to the external network WAN_S1S2
-LAN: 172.16.1.0/24
-VLAN10 (servers): 172.16.10.0/24
-VLAN20 (clients): 172.16.20.0/24

All VLANs have connection to the internet with NAT on the firewall
All lan and vlans can PING each other.

If I put my client PC in the same vlan as my DC the dhcp isnt an issue.
If I put my clinet PC in VLAN20 my client doenst get a dhcp lease

I've set a DHCP relay on interfaces LAN, VLAN20 to 172.16.10.253 on my pfsense firewall

Sniffing on de Client and DC with following result:
Client --> DHCP discover
DC --> DHCP Discover - Source 172.16.10.1 - Dest. 172.16.10.253
DC --> DHCP Offer - Source 172.16.10.253 - Dest. 172.16.20.1
Client --> no response
Capture packets on pfsense interface VLAN20
DHCP Discover - Source 0.0.0.0 - Dest. 255.255.255.255
DHCP Offer - Source 172.16.20.1 - Dest. 172.16.20.10

Everything looks fine but it looks like the virtual switch S1_VLANS doesn't forward it to acces port 20

Everything works fine when I use a fixed IP 172.16.20.10 on the client but can't seem to get dhcp working.

Any ideas?

259828-hyperv-network.png

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-11-12T14:56:51.167+00:00

    I'd try asking for help here with pfsense use and configuration.
    https://forum.netgate.com/category/38/general-pfsense-questions

    --please don't forget to upvote and Accept as answer if the reply is helpful--


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.