Setup A Wifi Router using a Laptop Running Windows 7

In work, I need to connect to LAN using Windows OS (running some CISCO NAC software).  However, all developers are using Linux laptops.  Running virtual machines in Linux with Windows 7 OS, failed to connect to the LAN with the CISCO NAC software.  So I tried to set up a Windows 7 laptop which can connect to the LAN (with this CISCO NAC software), and turn the laptop wifi into hosted mode, so that all Linux laptop can connect to it and use the LAN interface to access the network.  Initially, I set up the ad-hoc network, but no machines (linux and windows) can connect to it.  Android cannot even see it.  Then I read about the the windows miniport setup, which is able to turn the laptop wifi into an access point with hosted mode instead of just an ad-hoc network.  This is great for it should work with all laptops as well as android phones.  This is how to do it:

Step 1: Press start and type cmd and right click on it click on “Run as Administrator”
Step 2: Type netsh wlan stop hostednetwork and press enter.
Step 3: Type netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD keyUsage=persistent and press enter.
Step 4: Type netsh wlan start hostednetwork and press enter.

That’s it!  You can now scan the network with laptop or android phones and connect to it.  To share the network, modify the properties of the LAN interface to allow internet sharing through the newly created miniport adapter.

Details explanation can be found here:

In one of the setup, the network is created, devices are able to connect to the network but IP addresses cannot be obtained (stuck at obtaining IP addresses…).  To fix it, modify the miniport adapter properties by removing all ticks except the TCP/IPv4.  Then, repeat step 1 to step 4.

More posts here: and here:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: