How to use virtual wifi to realize the network sharing function of wireless network card under win7

  
                                                                                                                                                                                         

Network
The microserof virtual wifi miniport adapter in the adapter is a hidden feature of windows
7, virtual wifi. The traditional temporary wireless network (Ad Hoc mode) is a point-to-point network
, similar to the "two-machine interconnection" in the wired network, although it can also achieve Internet sharing, but mainly used for two Devices are temporarily interconnected, 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 the temporary network. All the questions.

Related reading: How to use the cmd command line to open wifi sharing under Windows7Computer
Transformed wireless router

So tempting function, now teach everyone:< Br>

1. Run the command prompt as an administrator

Since the following steps must be run under administrator privileges, we can find the “Command Prompt” from the Start menu, or type directly Cmd quick search, right click on it, select “run as administrator", click “ is ” in the pop-up user control window. Another way is to hold down the Ctrl and Shift keys and click the shortcut directly, which is even simpler.

2. Enable and set the “Virtual Wifi NIC” mode

Run the following command to enable the virtual wireless NIC (equivalent to open the router):

netsh wlan set hostednetwork Mode=allow

netsh wlan set hostednetwork ssid=DEMO_AP

netsh wlan set hostednetwork key=PASSWORD keyusage=persistent

Note: The red part is replaceable with what you need.

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.

Keyusage: Specify whether the password is a long-term or temporary password.

The above three parameters can be used separately. For example, only mode=disallow can be used to disable the virtual Wifi card.

3. Enable <;Internet Connection Sharing (ICS)"

In order to share connected Internet with other
computers or devices, we need to enable <;Internet connection Share & rdquo; function. Open the “Network Connections” window, right-click on the network connection that is connected to the Internet, select “Properties”, switch to the “Share” tab, select the checkbox in it, and select Allow it to share the Internet. The network connection is here our virtual Wifi NIC:

After the confirmation, the shared NIC icon will appear next to the “Shared” flag, indicating “Internet Connection Sharing” is opened to the virtual wireless network card. :

4. Turn on the wireless network

Continue to run the following command at the command prompt:

netsh wlan start hostednetwork

Set up a good wireless network (equivalent to open the wireless function of the router. Similarly, turn start to stop to turn off the wireless network).

It can be seen that the virtual wireless network card has already opened the wireless network we specified, and its IP address and other attributes are allocated by the "Internet Connection Sharing" service, so it is special:

Everything is ready, and finally you can connect to the Internet directly on a computer or mobile phone that needs to be connected to the Internet:

Need to say a little more, "Virtual Wifi NIC" needs The real network card driver is specifically designed for Windows 7 design development. 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.



Copyright © Windows knowledge All Rights Reserved