Thursday, June 20, 2013

Windows 7 Internet Sharing for BeagleBone Black

I wish I better understood WHY this was necessary.  

At one point my BBB "just worked".  When it was plugged into my desktop computer via USB (Windows 7 machine) the BBB had internet connectivity just fine.  After working to solve other issues it stopped.  In any case, it works again with the following steps:


On the Windows 7 computer:

  •     Control Panel -> Network and Internet -> Network Connections
  •     Right-click your internet connection, Properties, Sharing Tab
  •     Click "Allow other network users to connect thru this computer's Internet connection"
  •     Select the BeagleBone Black's network connection under "Home networking connection:"
  •     Click OK.

    Here's the trick:  when I did this, Windows assigned a static IP to the BBB connection.  Why?  No idea.  
    You have to go back to that connection and reset it to DHCP.

  •     Control Panel -> Network and Internet -> Network Connections
  •     Right-click the BeagleBone Black's connection, Properties
  •     Click Internet Protocol Version 4 (TCP/IPv4), Click Properties
  •     Click "Optain an IP address automatically"
  •     Click "Obtain DNS server address automatically"
  •     Click OK.  Click CLOSE.

On the BBB:

This makes the BBB route internet traffic thru the host (Windows 7 in this case) and DNS thru Google's DNS Servers (8.8.8.8).  

    route add default gw 192.168.7.1
    echo "nameserver 8.8.8.8" >> /etc/resolv.conf

Try It:

    ping www.google.com

Make it Persistant:

To make this "stick" after a reboot of the BBB, you need to add these commands to the ethernet startup script on the BBB (/usr/bin/g-ether-load.sh).  

NOTE:   You CANNOT simply add these commands to the bottom of that script file.  They must go  before the udhcpd starts.  It does not return control to the script so adding them at the bottom of the file does nothing for you.  My script file now looks like this:

    /sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252
    /sbin/route add default gw 192.168.7.1
    echo 'nameserver 8.8.8.8' >> /etc/resolv.conf


    /usr/sbin/udhcpd -f -S /etc/udhcpd.conf


IT WORKS!


A big thanks to robert@rplural.net who got me moving in the right direction.  Read his description of the parallel steps for a Linux host!

    

54 comments:

  1. Amazing!!! I was stuck with this for a long time! Thanks a ton for sharing this!!!

    ReplyDelete
    Replies
    1. @sneha: hii .. are you using the BBB board ??

      Delete

    2. windows 10 product key , office 2016 product key , windows 10 product key crack , license key win 7 payment via cc , windows 10 serial keys product key torrent , windows 10 serial key how to find , microsoft office project standard 2007 activation key , windows 10 serial key enterprise , lMVPPi

      windows server 2012 r2 buy

      office 2013 key sale

      cheap rosetta stone french

      Delete

    3. MSofficialstore.com
      Windows 10 Product Key
      I must express my thanks and appreciation to the online product key vendor http://www.MSofficialstore.com/. The guys of the technical department answer my questions and provide the instructions soooooooo professional and patient. The genuine product key I bought is sooooooooocheap and the after-sell service is soooooooo high standard. The best product key vendor I know so far.

      Delete
  2. Can we do this on Windows vista.?
    I have USB 3G connection & Vista / Ubuntu 12. Please post procedure to share connection in either OS.

    ReplyDelete
    Replies
    1. I am sorry but I do not have nor do I know Windows Vista.

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. THANK YOU!! I looked everywhere to get this to work, I tried bridging the connections, but that flopped. I didn't think of doing it this way. Thanks for saving me hours of trolling through the internet!

    ReplyDelete
  5. this worked fine for angstrom but it didn't work for ubuntu 13.10 . please help !!

    ReplyDelete
  6. Hi, I'm running Ubuntu in my BBB and there is no /usr/bin/g-ether-load.sh in Ubuntu, could you help me?

    ReplyDelete
    Replies
    1. I'm running Debian on my BBB and I didn't find the /usr/bin/g-ether-load.sh file either. I was able to get it to work by editing the /opt/scripts/boot/am335x_evm.sh file.

      Look for the following lines towards the bottom of that file:

      /sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252
      /usr/sbin/udhcpd -S /etc/udhcpd.conf

      Immediately after those lines, add the following line:

      /sbin/route add default gw 192.168.7.1

      That worked for me.

      Delete
  7. Ita a really a nice blog. This blog help you for solve your windows 7 related problem ,and its fix you error . please visit this link .
    windows 7 problems
    Thank you
    Aalia lyon

    ReplyDelete
  8. Just tried this on a bbb running ubuntu 13.04 linked to a win7 pc. Works great. Many thanks!

    ReplyDelete
  9. Interesting blog. This is one of my favorite blog also I want you to update more post like this. Thanks for sharing this article.
    Internet Center in Chennai

    ReplyDelete
  10. Really Nice Information,Thank You Very Much For Sharing.Wordpress Development Company

    ReplyDelete
  11. Discovered this little type and was easy to solve, Otherwise thanks a lot for the post, just hope it really sticks because I don't have time to do this all the time.

    root@beaglebone:~# /usr/sbin/udhcpd -f -s /etc/udhcpd.conf
    /usr/sbin/udhcpd: invalid option -- 's'
    BusyBox v1.20.2 (2013-04-03 21:07:04 CEST) multi-call binary.

    Usage: udhcpd [-fS] [CONFFILE]

    root@beaglebone:~# /usr/sbin/udhcpd -fS /etc/udhcpd.conf
    udhcpd (v1.20.2) started

    ReplyDelete
  12. I want to thank Sara here, she has won my business and I'll be posting my experience to you and others.
    My old computer crashed days ago. I had to buy a new computer. It costed me much.
    My budget was not much. To purchase a windows 7 product key from MS was not enough. Then I went to Tomshardware, and one guy recommended WindowsKeysale.com to me. Their price did attract me. So I decided to try after several emails to Sara. She was very patient and answered clearly to all my questions. I receved the key immediately after I sent 35 bucks. It worked perfectly. I was very very satisfied.
    I'll be buying from WindowsKeysale.com from now on as well.

    ReplyDelete
  13. Bonjour à tous ! sur mon site vous trouverez des codes Free Wifi privé et qui ne ce désactive jamais ou du moin pour longtemps !

    ︻̷̿┻̿═━一 Code Wifi Orange

    ReplyDelete
  14. Bonjour, à tous j'offre et partage des codes Free Wifi Code Orange et SFR chaque semaine pour vous connecté a internet dans toutes la france

    Mon site de partage ▄︻̷̿┻̿═━一 http://caribbeansunshine.co/


    internet gratuit wifi code

    ReplyDelete
  15. Bonjour, à tous j'offre et partage des codes Free Wifi Code Orange et SFR chaque semaine pour vous connecté a internet dans toutes la france

    Mon site de partage ▄︻̷̿┻̿═━一 http://caribbeansunshine.co/


    piratage wifi gratuit

    ReplyDelete
  16. I just got a product key from www.vinhugo.com. it worked perfectly. I'm so excited to share my experience here.their customer service is 1st class and I will definitely be recommending the site and I will be using the site again.

    ReplyDelete
  17. technogics sorgt für beste Qualität und Web-Entwicklung Dienstleistungen in Deutschland. Wir bieten derzeit Web und mobile Anwendung Entwicklungsdienstleistungen in Deutschland.http://www.accuratesolutionsltd.com/web-entwicklung/

    ReplyDelete

  18. I got windows 7 ultimate sp1 shop for my Sony Vaio Pcg-r505elkit laptop from http://www.MicrosoftStoreinc.com about 17 weeks ago, you could try.

    Software arrived fast & exactly what I ordered and I saved $30 compared to everywhere else! sharepoint server 2010 enterprise key windows 8 key would buy again from. This was the third time I have purchased something from them and they have quickly become the first first place I look for buying what I need! Provided a shipping number that never worked in shipper's database. Shipment arrived later than predicted date. When I queried about the shipment, I received two e-mails, one saying it shipped via USPS (wrong), and DHL (right). They had what I needed at a good price. The purchase went smoothly and the delivery worked as promised (eMail & download). The product installed and works as expected. This is about as good as anyone could expect from a Vendor. 2VlV1

    ReplyDelete
  19. Schöner Artikel. Ich denke, es ist sinnvoll und einzigartige Artikel ist. Ich liebe diese Art von Artikel und diese Art von Blog. Ich habe es sehr genossen. Vielen Dank für Ihre Website. Es wird für Webentwicklung Hannover .

    ReplyDelete

  20. WINDOWS 10 KEY SALE

    Visit the site http://www.Msofficialstore.com/ . I believe you will get what you want on the site. Besides, keep in mind that you also can communicate with them about the technicalproblem. They can help you with patient explanation and warm service.

    ReplyDelete

  21. WINDOWS 10 PRODUCT KEY

    Just like me, not a master of the computer, I believe many of us may get stuck with the computer problem. Take this question for example, based on my previous experience, I think you have to get a product key to activate your Windows 10 key. Just go to the site http://www.microsoftkeyshops.com/ and place your order to buy one. When you pay for it successfully, the genuine product key will be sent to you timely. You can activate your Windows 10 key in several minutes.

    ReplyDelete
  22. Windows 10 Key Sale Store (http://www.windows10keysale.com)

    Go the online store Windows 10 Key Sale Store (http://www.windows10keysale.com) . You even don't need to spend a lot of time but only need to place the order and finish the payment in several minutes. The product key will be sent to you via email in short time. Very efficient!

    Windows 10 Key Sale Store (http://www.windows10keysale.com)

    ReplyDelete
  23. Guys who wanna windows key go site www.vanskeys.com to get. It's great works and genuine.

    ReplyDelete
  24. Windows 10 Key Sale Store (http://www.windows10keysale.com)

    I never found such a professional onsite shop about product key as the site Windows 10 Key Sale Store (http://www.windows10keysale.com) before! Recommended by a friend, then I bought the product there. I think I must share this good site with you. Genuine product and low price! Really help me a lot!

    Windows 10 Key Sale Store (http://www.windows10keysale.com)

    ReplyDelete
  25. OFFICE 2016 PRODUCT KEY

    My new laptop arrived several days ago and the operating system is windows 8. When I was trying to install the system, I was required to enter the product key. At that time, I was a totally confused and didn't know how to proceed. Then I had no idea just asked help via yahoo. I searched the answer and got that I only need to buy one from the site http://www.Microsoftkeysales.com/ . I had no other solution but just to have a try. Surprise happened! Within the 20 minutes after I placed the order, the email with the genuine product key was sent to me. I immediately had my system activated! The whole process is much easier and more convenient than I thought before.

    ReplyDelete
  26. WINDOWS 10 KEY SALE

    You can buy it in the US store or place the order online. If you want to save time and money and have your system activated efficiently, then you just buy it from the online store http://www.Msofficialstore.com/ . Genuine product, effective reply and good customer service.

    ReplyDelete
  27. Share with you a good site that you can get cheap product keys from there: www.vanskeys.com, all versions of windows keys and office keys can be found in that site.

    ReplyDelete
  28. Very interesting website. Lagged my laptop because of how much data there is, lol! Really interesting concept, thank you very much!

    web design india

    ReplyDelete
  29. This is awesome post.Thank you for sharing with us.Cheers to you.

    fastest internet connections

    ReplyDelete

  30. Windows 10 Product Keys >


    I want to thank Windows 10 Product Keys here, she has won my business and I'll be posting my experience to you and others.
    My old computer crashed days ago. I had to buy a new computer. It costed me much.
    My budget was not much. To purchase a Windows 10 Product Keys from MS was not enough. Then I went to Tomshardware, and one guy recommended http://www.windows10keysale.com to me. Their price did attract me. So I decided to try after several emails to Windows 10 Product Keys. She was very patient and answered clearly to all my questions. I receved the key immediately after I sent {price} bucks. It worked perfectly. I was very very satisfied.
    I'll be buying from http://www.windows10keysale.com from now on as well.

    Windows 10 Product Keys >

    ReplyDelete

  31. WINDOWS 10 PRODUCT KEY


    of course, the best place to buy a key is ms. i purchased years from ms online store. however, this time, i'd like to share one special experience on http://www.microsoftkeyshops.com/ .
    i visit my forum everyday. one day, i found a piece of recommendation from another guy. so i visited this site.
    at the beginning, i'm quite skeptical at them. the price is too low.
    then i sent many questions to them.
    out of my expectation, they replied to me very soon. each question was answered.
    at that time, i planned to try the new Windows 10 key.
    long story short, i purchased a key from them, received it and download links(32bit&64bit) in about one hour. i need 64. and, more important, the key works at the first try.
    i sent much feedback to them. in one word, i'm very satisfied with this purchase, and i think, i should pass words to you.

    ReplyDelete

  32. Office 2016 Product Key

    Hi, if you want to activate Windows 10 Education Product Key, you need to have a product key. Don't worry if you don't have. It's very simple and convenient to search a product key on the professional site http://www.Microsoftkeyoffsale.com/ . Get the product key and then activate your OS step by step. Hope this can help you.

    ReplyDelete
  33. www.Gastonfiore.com


    there is also the site www.Gastonfiore.com that simply sell licenses only, Windows 10 key is 35.
    I bought my Windows 10 key license on earlier this year and I have not had an activating problem.
    should just find the iso operating system (I have downloaded from the Microsoft site, I do not know if is also easy for Windows 10 key), the site provides links but I think probably not in French.

    ReplyDelete

  34. www.Msofficialstore.com

    I'd like to give a strong recommendation for www.Msofficialstore.com ( www.Msofficialstore.com ) for Microsoft keys and software.
    I was looking for a Windows 10 key copy, and from experience I've come to understand that buying online is actually a lot cheaper than for instance in my local store.. So I somehow ended up on san-kom but it seemed a bit, well, not reliable?.. So I made much reaseach on this site. No negitive feedback.
    I decided to give it a try, found the cheapest ever copy, put the copy in cart and started the checkout. From here on it actually went alot easier, I paid with paypal and about 1hrs i recieved my key in email, and about 5 mins later a download link for the ISO file. The key worked perfectly! surprise surprise, its legit!..I sent the customer support a thank you message, and they responded immediatly. Kudos!
    I will definitely come back to their website again!

    ReplyDelete
  35. www.Msofficialstore.com

    I am afraid that you are unable to activate your Windows 10 key without a product key. You can just order one from the online site www.Msofficialstore.com cooperated with Microsoft. All the product keys are legitimate and official. Then just activate your Windows 10 key with the purchased product key. The activation process is simple and easy to operate.

    ReplyDelete
  36. Windows 10 Product Key

    To buy a genuine product key, go to the site http://www.Ms4Key.com// . This is definitely not like some sites which will make you worry about the purchasing safety. The payment process is confidential and guaranteed. More importantly, the product is genuine and with attractive price.

    Windows 10 Product Key

    ReplyDelete
  37. WINDOWS 10 PRODUCT KEY


    there is also the site http://www.MSKEYSALE.com/ that simply sell licenses only, Windows 10 key is 35.
    I bought my Windows 10 key license on earlier this year and I have not had an activating problem.
    should just find the iso operating system (I have downloaded from the Microsoft site, I do not know if is also easy for Windows 10 key), the site provides links but I think probably not in French.

    ReplyDelete

  38. KeysforVIP.com
    windows 10 product key http://www.KeysforVIP.com/
    I am afraid that you are unable to activate your windows 10 product key without a product key. You can just order one from the online site http://www.KeysforVIP.com/ cooperated with Microsoft. All the product keys are legitimate and official. Then just activate your windows 10 product key with the purchased product key. The activation process is simple and easy to operate.

    ReplyDelete
  39. Windows 10 Product Key


    I want to thank Windows 7 product key here, she has won my business and I'll be posting my experience to you and others.
    My old computer crashed days ago. I had to buy a new computer. It costed me much.
    My budget was not much. To purchase a Windows 7 product key from MS was not enough. Then I went to Tomshardware, and one guy recommended http://www.Ms4Key.com// to me. Their price did attract me. So I decided to try after several emails to Windows 7 product key. She was very patient and answered clearly to all my questions. I receved the key immediately after I sent {price} bucks. It worked perfectly. I was very very satisfied.
    I'll be buying from http://www.Ms4Key.com// from now on as well.

    Windows 10 Product Key

    ReplyDelete
  40. WINDOWS 10 PRODUCT KEY


    I want to thank Sara here, she has won my business and I'll be posting my experience to you and others.
    My old computer crashed days ago. I had to buy a new computer. It costed me much.
    My budget was not much. To purchase a Windows 10 key from MS was not enough. Then I went to Tomshardware, and one guy recommended http://www.KeyOffSale.com/ to me. Their price did attract me. So I decided to try after several emails to Sara. She was very patient and answered clearly to all my questions. I receved the key immediately after I sent 35 bucks. It worked perfectly. I was very very satisfied.
    I'll be buying from http://www.KeyOffSale.com/ from now on as well.

    ReplyDelete