networking - Share internet through different interface

07
2014-07
  • user2689288

    How to share internet from one interface to another? My pc is connected to WiFi. I created a hosted network using cmd. I've to open Wifi adapter properties and enable sharing to this hosted network. How to do this in command line?

    I tried

    route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
    

    It creates a new hosted network which is showing status as "internet". But it is in the same ssid as that of shared connection!

    Then i changed this command replacing with hosted network's IP as

    route add 169.254.242.205 mask 0.0.0.0 192.168.1.1
    

    Says The route addition failed: The parameter is incorrect. I cannot share internet through hosted network.

    Any command lines or visual basic scripts?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    osx - Can't connect from MacBook to iMac through internet sharing
  • geminiCoder

    I have an iMac and my MacBook Pro is unable to connect to it through internet sharing.

    Is there a way I can check whether my wireless card is working, or diagnose the problem in more depth? I have already tried the usual stuff: from re-creating the connection to wiping the PRAM.

    How do you want to "connect"?

    I want to share my iMacs internet connection.

    What kind of connection are you even creating?

    A straight forward Wifi connection using 128 WEP

    Do you have shared folders that you want to access?

    No

    What IP addresses to the machines have?

    the MacBook Pro is unable to attain an ip from the iMac, though it can see it.

    Can the Macs ping each other via IP?

    No


  • Related Answers
  • taglia

    I would suggest the following:

    • Switch the firewall off on both machines (if it was on) to see if it helps;
    • Try to connect using a different device to the shared connection (another computer, smartphone, iPad, etc.);
    • Use an open connection first (no password), before trying with WEP;
    • Reverse the roles of the two computers (i.e. try sharing the connection from the MBP to the iMac).

    Also, more details might help (OS X version on the machines, whether you are trying to share a wired connection, installed software which might interact with the network connections, etc.)

  • geminiCoder

    Turns out this was an apple bug with the driver, which they fixed in Mountain Lion