Page 1 of 1

Hyper-V SoftEther Vlan

Posted: Sun Jun 28, 2015 1:25 pm
by bmmobili
Hello EveryBody
Here is my topology
i have one site with 3 vlans and a remote site
i want to carry on the vlan functionality to remote site so i can use in the virtual machines there.
however i tried every possible way i can think of but no luck
is softether not compatible with microsoft hyper-v virtual switch drivers ?
or is there another way that i am missing
Thank you in advance
MK

Re: Hyper-V SoftEther Vlan

Posted: Sun Jun 28, 2015 2:45 pm
by kh_tsang
What kind of setup do you want?

1. A virtual hub passing VLAN tags
2. A virtual hub per VLAN

Re: Hyper-V SoftEther Vlan

Posted: Sun Jun 28, 2015 2:53 pm
by bmmobili
I want a Virtual Hub Passing Vlans
thanks

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 2:09 am
by kh_tsang
Can you show your original setup?

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 8:19 am
by bmmobili
Please see attached config files for both locations
thank you very much

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 11:08 am
by kh_tsang
It seems that you are bridging the virtual hub to the Virtual Ethernet adapter of your server. However, I find that it does not pass VLANs(test with Windows 8.1).

I think you should install a client on your server as well.
Assign VLANs to different accounts in the Security Policies in the Softether VPN Server.
Add one connection in the vpn client per VLAN and bridge each connection to the virtual switch.

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 11:12 am
by kh_tsang
Otherwise, you can have two NICs on your server and connect them together outside your server.
One NIC for bridging with the virtual hub and another NIC for the Vritual Switch in Hyper-V.
Finally, assign VLANs to the VMs.

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 11:19 am
by bmmobili
that seems to be a reasonable solution
i will try and let you know
thanks

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 1:12 pm
by bmmobili
Finally made it :)
here are the steps to resolve the issue
softether vpn servers need to be installed under the virtual machines
enable mac address spoofing and both virtual machine networks need to be in trunk mode here is the powershell command
Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList "1,10-..." -VMName "VMName" -NativeVlanId 0
after this just do regular installation and everything should work flawlessly
hope this helps someone with the same issue
Thank you kh_tsang for making me think differently

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 1:23 pm
by kh_tsang
In the documentation, similar command also applies to the management OS.
https://technet.microsoft.com/en-us/lib ... .630).aspx

Therefore, passing VLANs on the virtual Ethernet adapter on the host operating system may also work if the command line tool is used. Have you tried that before?

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 1:33 pm
by kh_tsang
Yes, the following really works so that the VPN server can be installed on the host.

Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList "1,10-..." -ManagementOS -NativeVlanId 0

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 29, 2015 3:06 pm
by bmmobili
kh_tsang;
I confirm it works as well
thank you very much for your time

Re: Hyper-V SoftEther Vlan

Posted: Mon Jun 12, 2017 5:29 pm
by scubawarm
Worked to get me the MAC addresses in the list but don't show up in the IP list...

So close, what did I miss?