How can I create a virtual interface, that connects to the same network as the physical interface? I tried searching around but all I found is loopback. I need the other end of the wire recognizes this as two interface, so loopback won't do it. Hypervisors like VMWare have an option to do exactly this (VM and host are recognized as two devices on router's arp table), but in my situation using a VM is pretty much overkill. I just want another connection, or maybe some apps that can behave as a "virtual switch".
I'm on Windows, and it should be like this.
Seems like I'm not the only one having this problem. Someone here and here have also asked but there's no acceptable answer. My apologize, but it is extremely hard to search for this problem.
Answer
Procedure:
Enable Hyper-V feature in Windows from
optionalfeatures.exe
or with command prompt using the following command as administrator and restart PC.DISM.exe /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V /NoRestart
Open Hyper-V Manager from start menu or with run dialog box, type
virtmgmt.msc
. Go to Virtual Switch Manager > New Virtual Network Switch > Select External type > Create Virtual Switch > OK. It is important to select External type for that virtual network switch. See the article below for further details.
- Open Network Control Panel (
ncpa.cpl
) > Select Virtual Network Interface (withvEthernet
name) > Change it's IP and MAC address. IP can be in same subnet of real NIC and of same default gateway.
No comments:
Post a Comment