Hyper-V and pfsense keeps losing connection



  • Re: Hyper-V and pfsense keeps losing connection

    Hello,
    anyone had this issue and has resolution ?



  • http://www.aidanfinn.com/?p=16876

    This link has some information about upgrading broadcom netExtreme gigabit ethernet driver but it does not work. I already upgrade to version 20.1 with my Dell R740xd server.

    When I delete virtual pFsense and reinstall new one, it'll work for an hour may be then LAN adapter will be unreachable, no ping etc....

    Even if I do factory defaults it does not work.



  • I just noticed that I'm losing connection after I set LAN port as Trunk with this command in windows power shell:

    Get-VMNetworkAdapter -VMName "vmname" | Where-Object {$_.MacAddress -eq "XXXXXXXXXXXX"} | Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList "1-1000" -NativeVlanId 1

    It works for 20, 30 minutes then I lose connection forever. doing ifconfig hn0 down and up does not work.
    I just cannot reach pfsense even if I factory default settings. It only works if I reinstall a new virtual Pfsense.

    I made sure to disable VMQ in hyper V and in adapter settings.

    Any help is greatly appreciated.

    Thank you.



  • and other thing I noticed is the MAC id of pfsense LAN and WAN are set to dynamic and adapter keeps increasing after each restart.



  • just figured out the issue,
    I had to set nativeVlanID to 0 in order not to lose my lan adapter connection:

    but in the original command it has native vlan ID 1
    Get-VMNetworkAdapter -VMName "vmname" | Where-Object {$_.MacAddress -eq "XXXXXXXXXXXX"} | Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList "1-1000" -NativeVlanId 1

    I found it in this instruction https://schimpie.net/2017/03/03/pfsense-vlan-with-hyper-v/

    Even though setting native vlan ID to 0, it worked, but it does not make sense.


Log in to reply