Enable wireless Bearer Network (soft AP) of win7 for network sharing

Source: Internet
Author: User

The wireless hosted network is a new WLAN feature in Windows 7 and Windows Server 2008 R2 with the WLAN service installed.
With this feature, a Windows computer can connect to a hard AP (provided by a physical device) as a client through a physical wireless network adapter, and act as a soft AP, allowing other devices to connect to itself.
In order not to let some people say: "This is a pseudo technique, XP, Vista can also achieve wireless sharing", so I hereby declare that XP, vista uses the traditional temporary Wireless Network (Ad Hoc Mode). The temporary Wireless Network (Ad Hoc Mode) is a point-to-point network, similar to the "dual-machine interconnection" in the Wired Network ", although it can also achieve Internet sharing, it is mainly used for temporary interconnection between two devices, and some devices (such as devices using Android) do not support connection to temporary wireless networks. Another serious problem is that a wireless network card can only be connected to one wireless network. Therefore, if you connect to the Internet through a wireless network card, you cannot use the wireless network card to create a temporary network and share the internet. The working principle of the wireless bearer network is different. It virtualizes a physical Nic to simulate the soft AP function. Therefore, when your physical network adapter is connected to a real wireless route, you can use a simulated soft AP (soft route) for other computers to access the Internet.
I don't dare to hide such a good thing. Let's take a look at how to operate it ~~
First, run as an administratorCommand Prompt (Start Menu -- allProgram-- Attachment, findCommand Prompt,Right-click it, select "Run as administrator", and click "yes" in the pop-up user control window ".)Then enter the command:
Netsh WLAN show drivers
If the "supported network bearer" column is "yes", your network adapter uses the "soft AP" function.

2. Enter the following command,Enable and set the "virtual WiFi nic" Mode:

Netsh WLAN set hostednetwork mode = allow SSID = "shadowhack" Key = 88888888
Where

Mode: whether to enable the virtual Wi-Fi network card. If it is set to disallow, the virtual network card will disappear.

SSID: Specifies the name of the wireless network, preferably in English.

Key: the password of the wireless network. This password is used to encrypt wpa2 securely on the wireless network, which can prevent network attacks.

The preceding three parameters can be used independently. For example, you can disable a virtual Wi-Fi network card by using mode = disallow only.

3.To enable Internet Connection Sharing (ICS), you must first share the network and then start the virtual AP. Otherwise, the two networks will not be in the same network segment and cannot be shared.

To share the connected Internet with other computers or devices, we need to enable the "Internet Connection Sharing" function. Open the "network and network sharing center" window -- "Change adapter Settings", right-click a network connection that has been connected to the Internet, select "properties", and switch to the "share" tab, select the check box, and select the network connection that allows them to share the Internet. Here, our virtual WiFi network adapter is:

4.Enable Wireless Network

Continue to run the following command at the command prompt:

Netsh WLAN start hostednetwork

You can enable the previously set Wireless Network (equivalent to enabling the wireless function of the router. Similarly, change start to stop to disable the wireless network ).

    • A possible problem

After the settings are completed, see:

Later, I found that the Network could not be connected. The specific cause is unknown. I changed to the Wi-Fi network. 3. Set the IP address manually. The result shows that the network can be connected to the Internet.It seems that the IP address of the dial-up Internet is a wired route (192.168.2.1), and then a wireless route (192.168.1.1) is connected to the computer. As a result, the computer cannot obtain an accurate gateway address. The network cannot be shared. In this case, you must manually change it to the default gateway or the same network segment as the default gateway.

 

    • Another possible problem

The cause is that I disconnected the wireless connection to allow the computer to directly connect to the wired route. Because the virtual AP originally specified other network segment IP addresses, the virtual AP must also be set as the actual gateway IP address.

 
Answers found online:
 
Windows 7 wireless sharing: an error occurs when Internet Connection Sharing access is enabled. Internet Connection Sharing cannot be enabled. a lan connection is already configured with the IP address that is required for automatic IP addressing.
 
Nic IP address conflict. Change the IP address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.