On Thu, May 22, 2014 at 7:36 AM, Eric Fort <[email protected]> wrote:
> > > > On Wed, May 21, 2014 at 5:15 AM, Jason Kridner <[email protected]> wrote: > >> >> >> On Wednesday, May 21, 2014, Eric Fort <[email protected]> wrote: >> >>> could someone who has made this work actually describe how to do it? My >>> windows laptop has an internet connection (over wireless). that same >>> laptop (running windows 7) has a network connection over usb to the beagle >>> bone (part of what's auto configured when usb gets connected between the >>> bone and the windows box along with presenting the bone as an external >>> disk). The bone shows up as 192.168.7.2/30 and the laptop as >>> 192.168.7.1/30 (adapter 2). laptop adapter 5 is connected to the >>> internet via the house router which issues it an address on network >>> 192.168.1.0/24. >>> >>> How can I setup Windows ICS such that the beagle connected via adapter 2 >>> (network over usb) can get to the internet connected via adapter 5 on the >>> windows box with windows routing between those networks and thus sharing >>> it's internet connection? when I tried this using ICS I only succeeded in >>> really messing up the routing tables on the laptop which broke the laptop's >>> ability to get to the internet (it thought the beagle was now it's default >>> gateway) without letting the beagle access the internet. (worst possible >>> outcome...) So how can I configure ICS to give the beagle an internet >>> connection when it's usb is plugged in? >>> >> >> I will try giving it a shot today. On my Mac, I enable ICS and then use >> the virtual serial port to issue "dhclient usb0". The routing tables are >> likely not quite right due to some cruft, but it is working for me. I will >> try to look for the steps to switch the board from host to client. >> >> > > I had totally forgot that a virtual serial port now gets set up over usb, > i'd been spoiled by the virtual ethernet network setup over the usb and > using ssh to connect. now at least I can get in when the network is > uncooperative. > > I tried setting up ICS where I share wireless adapter 5 which goes to the > local 192.168.1.1 connected lan over wifi with adapter 2 which us the bone > usb then running dhclient usb0 on the bone and it failed to get an ip > address on the bone. instead it stayed at 192.168.7.2. I then tried > bridging adapter 2 & 5 such that hopefully the beagle would grab an address > from the lan router but that sidn't work either. Ultimately I see this as > a useful configuration for many of us working to get a bone bootstrapped > because one may not have a seperate display, mouse and keyboard to use or > more to the point the prior 2 and a network in the same place.... but if > the windows box can share it's internet connection with the bone then both > now work on the internet. > > So what might I be missing in making this configuration work? > The odd situation I found is that 'ifconfig' still reported the 192.168.7.2 IP address, yet I can get to the world: root@beaglebone:~# ifconfig usb0 usb0 Link encap:Ethernet HWaddr ea:b4:5d:d4:28:45 inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252 inet6 addr: fe80::e8b4:5dff:fed4:2845/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:98298 errors:0 dropped:0 overruns:0 frame:0 TX packets:30735 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:77776462 (74.1 MiB) TX bytes:10469242 (9.9 MiB) root@beaglebone:~# traceroute www.google.com traceroute to www.google.com (173.194.46.114), 30 hops max, 60 byte packets 1 timbird.local (192.168.3.1) 0.470 ms 0.391 ms 0.390 ms 2 * * * 3 * * * 4 * * * 5 te-0-4-0-9-ar01.pontiac.mi.michigan.comcast.net (68.87.190.254) 16.283 ms 15.576 ms 15.530 ms 6 he-4-6-0-0-cr01.350ecermak.il.ibone.comcast.net (68.86.94.241) 24.715 ms 25.293 ms 26.025 ms 7 he-0-11-0-0-pe04.350ecermak.il.ibone.comcast.net (68.86.83.58) 22.856 ms 22.566 ms 22.406 ms 8 as15169-2-c.350ecermak.il.ibone.comcast.net (66.208.233.142) 21.573 ms 22.250 ms 18.334 ms ^C root@beaglebone:~# ping www.google.com PING www.google.com (173.194.46.115) 56(84) bytes of data. 64 bytes from ord08s13-in-f19.1e100.net (173.194.46.115): icmp_req=1 ttl=55 time=19.0 ms 64 bytes from ord08s13-in-f19.1e100.net (173.194.46.115): icmp_req=2 ttl=55 time=19.6 ms ^C --- www.google.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 19.028/19.331/19.634/0.303 ms root@beaglebone:~# arp -a ? (192.168.7.1) at d0:ff:50:e8:7d:7d [ether] on usb0 timbird.local (192.168.3.1) at ac:de:48:3e:02:2f [ether] on usb0 Seems like OS X was nice enough to give me back the IP address that I gave it. Some day, I'll try it with Windows, but too much to do today. > > thanks, > > Eric > >> >> >>> Thanks, >>> >>> Eric >>> >>> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "BeagleBoard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to the Google Groups >> "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
