Win7 system virtual Wifi becomes wireless routing

  
The function of the Windows 7 system virtual network card to change the wireless router is a technical point that many Windows 7 system notebook users want to learn. Today, the system home Xiaobian specially made this "win7 wireless network card changed wireless router" tutorial for everyone. .
The traditional temporary wireless network (Ad Hoc mode) is a peer-to-peer network, similar to the "two-machine interconnection" in the wired network. Although it can also achieve Internet sharing, it is mainly used for temporary interconnection of two devices. And some devices (such as devices with Android) do not support connecting to a temporary wireless network. There is also a serious problem. Since a wireless network card can only be connected to a wireless network, if you connect to the Internet through a wireless network card, you can no longer use this wireless network card to establish a temporary network and share the Internet. The virtual Wifi function in Windows7 can virtualize a network card based on a real wireless network card to implement the AP function of the wireless router and solve all problems of the temporary network.
Next, let's take a look at how to program the wireless router under the win7 system:
1. Because the steps in this tutorial must be run under administrator privileges, you need to run the command prompt as an administrator.
The first method: we find the “command prompt> from the start menu —>all programs—> attachments, or type cmd to search quickly, right click on it, select “ Run as administrator and click on “ is ” in the pop-up user control window.

The second method: Another way is to hold down the Ctrl and Shift keys and click the shortcut directly, which is even simpler.

2. Next we need to: enable and set the "Virtual Wifi NIC" mode
Run the following command to enable the virtual wireless network card (equivalent to open the router):
netsh wlan set hostednetwork mode =allow ssid=”xp510” key=xp510.com
There are three parameters in this command:
Mode: Whether to enable the virtual Wifi NIC, disable to disallow, the virtual NIC will disappear.
Ssid: Specify the name of the wireless network, preferably in English.
Key: Specify the password for the wireless network. This password is used for secure WPA2 encryption of the wireless network, which can prevent the network from being blocked.
The above three parameters can be used separately. For example, only mode=disallow can be used to directly disable the virtual Wifi NIC.

3. Enable “Internet Connection Sharing (ICS)” function is mainly to share the connected Internet with other computers or devices
a, from the start menu —> control panel to play — >Network and Internet—>Network and Sharing Center—> Steps to Open Adapter Settings Open “Network Connections

b, right click on the network connection connected to the Internet, select “Properties", switch to the "share" tab, select the checkbox in it, and select the network connection that allows it to share the Internet. Here is our virtual Wifi NIC:

After ok, A shared NIC icon will appear next to the “Shared” flag, indicating that "Internet Connection Sharing" is opened to the virtual wireless network card:
4. Turn on the wireless network
Continue to run the following at the command prompt Command:
netsh wlan start hostednetwork
You can open the wireless network that we set up before (equivalent to open the wireless function of the router. Similarly, turn start to stop to close the wireless network).

It can be seen that the virtual wireless network card has already opened the wireless network we have designated, and its IP address and other attributes are allocated by the "Internet Connection Sharing" service, so it is special:
Everything is ready Ready, in the end, just connect to the wireless network on a computer or mobile phone that needs to be connected to the Internet. Xiaobian has something to say:
“Virtual Wifi NIC” Drivers that need real NICs are specifically designed for Windows7. Fortunately, as long as the wireless network card driver of the "Windows7 Logo Certification" is supported by this mode, we can directly find whether to bring the logo when purchasing the wireless network card. If the virtual wireless network card does not appear in the network connection after running the mode=allow command, the real network card does not support this function. You can upgrade your NIC driver to the latest Windows 7 version.
In addition to using the command to set the virtual WIFI function, Microsoft also revealed its programming interface, which provides the possibility to develop a graphical setup program. For example, the free small software Connectify can intuitively set the virtual Wifi function.

Copyright © Windows knowledge All Rights Reserved