I’ve been working with VirtualBox’s Host-Only Network interface and noticed that Windows 7 automatically places the Host-Only Network interface under the “Public Network” category with no way to change it. Now this is annoying because each time I need to access my Virtual Machine, I’ll need to drop Windows Firewall on Public Network. Here’s how I fixed it.
It turns out, as a security measure, Windows 7 treats any network interface that doesn’t have a gateway set as an “Unidentified Network”. Consequently, all “Unidentified Networks” are placed in the Public Network. Here’s what you need to do to fix it.
- Open up the Network and Sharing Centre.
- Click on the network interface that you would like to convert to Home/Work. This should bring up the Status window for the said interface.
- Click the Details button. Note that there isn’t a value for IPv4 Default Gateway, though, in my case there is an IP Address for the IPv4 DHCP Server. Mine says 192.168.56.100 – note that because it will be a safe dummy IP address to use.
- Close the Network Connection Details dialog box.
- Back on the network interface status window, click on Properties to bring up the Network Properties window.
- Select Internet Protocol Version 4 (TCP/IPv4) and click *Properties.
- Click on Advanced….
- Under Default gateways, click Add and enter a dummy Gateway IP Address (I used 192.168.56.100 for mine).
- Add, OK, OK, OK and Close.
- A window should pop-up asking what category you would like to place the network interface under.
- Congratulations!
Nope, doesn’t work.
No matter how I play with disabling/enabling/deleting/reinstalling the drivers, the network is always unidentified/public.
And just so you know, following these 11 steps to the letter, which is the first thing I tried, doesn’t do anything either.
So can you be a bit more specific to the exact circumstances needed to get this trick to work?
— Martijn · Sep 6, 07:42 AM · #
Doesn’t work for me either in 2017. while it looks like I can set a gateway, it doesn’t save, “ipconfig” shows it as 0.0.0.0, and IPv4 properties continues to be blank gateway.
I’m trying other things, but this is wrong.
— clint · Jun 27, 05:38 PM · #