Win7 open wireless hotspot by CMD command

Now wireless Internet network has become the means at our usual because of its convenience. When we only have one computer networking we can take open wireless hotspots way, so that more people can connect to the network to the Internet. There are many hot spots open way we are familiar with, such as free hot spot in Tencent open tube computer at home, using 360 portable wifi and other means. So without the help of the software, the operating system can only rely on to solve the problem of open wireless hotspots it? Next, we have to Win7 for example to demo it for you, but also to force the WireShark capture form

First, the configuration, open WIFI

In order to verify that we first open the hotspot network sharing view center adapter as shown below:

Next we open the Run window, type the command and then press Enter

举例说明:在命令行中输入[请以管理员身份运行]
netsh wlan set hostednetwork mode=allow ssid=WireShark_Test key=88888888
其中 ssid是无线网络名称、而key就是密码(密码长度要大于等于8位)”然后回车,等一会就创建好了
netsh wlan set hostedwork mode=allow ssid=[无线名称] key=[无线密码]
以上命令也可以分步来执行:
netsh wlan set hostedwork mode=allow //启用虚拟wifi网卡,及允许托管网络
netsh wlan set hostedwork ssid=WireShark//指定无线网络名称
netsh wlan set hostedwork key=88888888 //指定无线密码
netsh wlan set hostedwork key=88888888 keyusage=persistent/temporary //指定密码有效时间,persistent永久有效,temporary临时有效,该命令与key命令一起执行,否则无效//

Figure prompt appears, indicating the success of the wireless hotspot settings; then, we go back to Network Sharing Center to view the adapter, more of a "wireless connection." Note that the NIC which was Micosoft Virtual WiFi Miniport Adapter (virtual wireless LAN), and in this case, "unconnected" state

¥ ae¿eaea a¾caee¿ °

Enter the Wi-Fi bandwidth of property - "sharing settings WIFI [Allow other network users to connect just select the WIFI configuration]

At this time, we found a local wireless network connection is connected with the "shared" words; return to the command line window, enter the command to open wireless hotspot

netsh wlan start hostednetwork

Check out our wireless hotspots state find its IP address 192.168.137.1, which is the default IP virtual NIC

This way it can monitor WireShark

Second, turn off, disable WIFI

When we do not use wireless hotspots, you can use the command to stop

netsh wlan stop hostednetwork

If you do not want the hot spot, and may prohibit open wireless wifi from the command

netsh wlan set hostedwork mode=disallow

Third, pay attention

microserof virtual wifi miniport adapter network adapter is a hidden feature windows7 virtual wifi; in fact, function as a wireless network card, so when used, please make sure to keep the Wi-Fi enabled. If we are using a local connection, but also shared local connections, wireless connections turned on the line. Driver "virtual Wifi card" Physical network card developed specifically for Windows7 design. Fortunately, just by "Windows7 logo certification" of the wireless network card drivers support this mode, if you can find us directly with the flag in the purchase of the wireless card. If, after running the command mode = allow, virtual wireless LAN network connection does not appear, it shows the real card does not support this feature

Published 35 original articles · won praise 16 · views 190 000 +

Guess you like

Origin blog.csdn.net/qq_38795430/article/details/97612669