Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hyper-V and pfsense keeps losing connection

    Scheduled Pinned Locked Moved Virtualization
    5 Posts 1 Posters 760 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CCNAtechSupport
      last edited by

      Re: Hyper-V and pfsense keeps losing connection

      Hello,
      anyone had this issue and has resolution ?

      1 Reply Last reply Reply Quote 0
      • C
        CCNAtechSupport
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • C
          CCNAtechSupport
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • C
            CCNAtechSupport
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • C
              CCNAtechSupport
              last edited by

              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.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.