1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Command to share Internet connection between adapters in Windows 7

Discussion in 'Networking (Hardware & Software)' started by mtmaster, 2011/08/08.

  1. 2011/08/08
    mtmaster

    mtmaster Inactive Thread Starter

    Joined:
    2011/08/08
    Messages:
    4
    Likes Received:
    0
    Hi,
    I want to make a .bat file that enable Internet Connection Sharing from "Local Area Connection" interface to "Wireless Network Connection 2 ".
    In Windows UI, I can do it just like this image: [​IMG]

    The "Wireless Network Connection 2 ", which is a Virtual Wifi Adapter, is not allowed to be added to Bridge. So, I can only share the Internet connection from "Local Area Connection" to it by the above (image) way.

    How to do that using the command prompt in Windows 7, please?
    I try "netsh routing" but Windows 7 not support "routing" keyword.

    Thank you!
     
  2. 2011/08/08
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,068
    Likes Received:
    396

  3. to hide this advert.

  4. 2011/08/08
    mtmaster

    mtmaster Inactive Thread Starter

    Joined:
    2011/08/08
    Messages:
    4
    Likes Received:
    0
    Thank you for your reply, TonyT.
    I've checked your links but I still not find out how to do...
    First, the command "show adapter" returns that no adapter has been added to my Bridge. I can add the "Local Area Connection" using the right click context menu but I can't do that with the "Wireless Network Connection 2" (because it's a Microsoft Virtual WiFi Miniport Adapter), the right click context menu doesn't have "Add to Bridge" for this adapter. I think I have to use something like ICS (I'm not sure).
    Second, I would like to do all the work using Command Prompt (I'm planning to write a small program/or just a .bat file) so the right click context menu would not help.

    So, my question is how to share internet connection from Local Area Connection (the wired adapter) with "Wireless Network Connection 2" (the Virtual Wifi adapter that can't be added to Bridge) using only Command Prompt.
     
  5. 2011/08/08
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,068
    Likes Received:
    396
  6. 2011/08/08
    mtmaster

    mtmaster Inactive Thread Starter

    Joined:
    2011/08/08
    Messages:
    4
    Likes Received:
    0
    Yes, Creating a wireless hosted network is exactly what I'm trying to do.
    All steps was fine done on Command Prompt except the one that enable ICS.
     
  7. 2011/08/08
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,068
    Likes Received:
    396
  8. 2011/08/09
    mtmaster

    mtmaster Inactive Thread Starter

    Joined:
    2011/08/08
    Messages:
    4
    Likes Received:
    0
    Thank you very much, TonyT. That's what I need :D
     
  9. 2011/08/09
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,068
    Likes Received:
    396
    Please mark this thread as resolved.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.