Thanks you for your help!

Vào 10:48:20 UTC+7 Thứ Sáu, ngày 14 tháng 9 năm 2012, Vu Dinh Minh đã viết:
>
> Hi, i 'm successfull with access internet for beaglebone with usb connect
>
> on my BB ubuntu:
>
> #ifconfig usb0 192.168.1.2
> #route add default gw 192.168.1.1
>
> on my PC ubuntu:
>
> #ifconfig usb0 192.168.1.1
>
> // config for ip forwarding...
>
> # iptables --table nat --append POSTROUTING --out-interface wlan0 -j 
> MASQUERADE
> # iptables --append FORWARD --in-interface usb0 -j ACCEPT
> # echo 1 > /proc/sys/net/ipv4/ip_forward
>
>
> after that you can ping them pc-> bb and bb-> pc
>
> to acceess internet from bb you need adding name server addr for 
> beaglebone (8.8.8.8) in file /ect/resolve.conf
>
>
>
> 2012/9/14 Jimit <jimi...@gmail.com <javascript:>>
>
>> I am trying to access internet on the beaglebone with ubuntu-r6, without 
>> the ethernet cable plugged in. That won't happen with this image, right?
>>
>> I tried adding this to the /etc/network/interfaces
>> auto usb0
>> iface usb0 inet static
>>         address 192.168.7.2
>>         netmask 255.255.255.0
>>         network 192.168.7.0
>>         gateway 192.168.7.1
>>
>> That doesn't work for me. I also tried iface usb0 inet dhcp.
>> Further,
>> ifconfig usb0 192.168.7.1 (BB)
>> ifconfig usb0 192.168.7.2 (PC, OS-ubuntu)
>>
>> Didn't work.. was not able to ping www.google.com
>>
>> -Jimit
>>
>>
>> On Wednesday, September 12, 2012 9:54:18 PM UTC-4, RobertCNelson wrote:
>>
>>> On Wed, Sep 12, 2012 at 8:38 PM, Jimit <jimi...@gmail.com> wrote: 
>>> > Was this issue resolved? 
>>> > I am facing the similar problem even with 10th sept's r6 ubuntu 12.04 
>>> image 
>>> > for beaglebone... 
>>>
>>> by "similar" problem, what do you mean? 
>>>
>>> as "only" the usb-eth gadget is built: 
>>> https://github.com/RobertCNelson/linux-dev/blob/
>>> am33x-v3.2/patches/defconfig#L3325 
>>>
>>> So yes, if your expecting a usb mass storage device to show up, well 
>>> that's not going to happen. ;) 
>>>
>>> > 
>>> > On Saturday, January 21, 2012 7:14:18 PM UTC-5, RobertCNelson wrote: 
>>> >> 
>>> >> On Sat, Jan 21, 2012 at 7:02 AM, rino <gennaro...@gmail.com> wrote: 
>>> >> > I am using Beaglebone booted with Ubuntu following the direction 
>>> from: 
>>> >> > 
>>> >> > http://elinux.org/BeagleBoardUbuntu#Demo_Image 
>>> >> > 
>>> >> > I also use Ubuntu on my host PC connected to the Beaglebone  by a 
>>> USB 
>>> >> > cable only (no LAN cable). 
>>> >> > In this configuration USB-to-serial works and I have the very 
>>> useful 
>>> >> > Beaglebone console. 
>>> >> > If I boot with Angstrom  USB-to-Ethernet works. That is done via an 
>>> >> > eth2 interface that appears on my PC and I give it the adress 
>>> >> > 192.168.7.1 (the Beaglebone answer from 192.168.7.2).  The USB-to- 
>>> >> > Ethernet functionality starts disconnecting the Beaglebone-Angstom 
>>> USB 
>>> >> > mass storage (as I red from  the related Beaglebone README.htm). 
>>> But 
>>> >> > when the Beaglebone boots with Ubuntu I have no USB mass storage to 
>>> >> > disconnect and no eth2, or similar, interface appears. 
>>> >> > So please give me some advice in order to solve my problem. 
>>>
>>> Regards, 
>>>
>>> -- 
>>> Robert Nelson 
>>> http://www.rcn-ee.com/ 
>>>
>>  -- 
>>  
>>  
>>
>
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to