Thanks, It works now, except that my service created to make it persistent doesn't my net service is:
[Unit] Description=Network interfaces Wants=network.target After=syslog.target network.target [Service] Type=simple ExecStart=/root/StartUSBNetwork [Install] WantedBy=multi-user.target After restart my console shows: Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@beaglebone:~# ping www.google.com connect: Network is unreachable root@beaglebone:~# systemctl restart net.service root@beaglebone:~# ping www.google.com PING www.google.com (216.58.220.132) 56(84) bytes of data. 64 bytes from syd09s01-in-f4.1e100.net (216.58.220.132): icmp_req=1 ttl=56 time= 16.3 ms ... Obviously something wrong with my net.service timing, it works only after restarting. Do you see the problem? Thanks again Jan On Friday, April 10, 2015 at 3:29:08 PM UTC+10, William Hermans wrote: > Check the contents of /etc/resolv.conf > > should read: > > domain localdomain >> search localdomain >> nameserver 192.168.7.1 >> > > > Assuming your Windows machine is 192.168.7.1. Also, what is the contents > of your /etc/network/interfaces file ? You USB interface should be setup > thus > > iface usb0 inet static >> address 192.168.7.2 >> netmask 255.255.255.0 >> network 192.168.7.0 >> gateway 192.168.7.1 >> > > > Lastly, the guy on his page says that you need to set the usb gadget IP to > DHCP. I believe this to be wrong. It should be set to static, 192.168.7.1 > netmask 255.255.255.0, and gateway to 192.168.7.1. Give that a shot. > > On Thu, Apr 9, 2015 at 9:15 PM, <janszyma...@gmail.com <javascript:>> > wrote: > >> Hi >> >> I am using the latest Debian image from here Debian (BeagleBone, >> BeagleBone Black - 4GB SD) 2015-03-01 >> <http://debian.beagleboard.org/images/bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img.xz> >> >> >> root@beaglebone:~# uname -a >> >> Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l >> GNU/Linux >> I am following the instructions from here >> http://lanceme.blogspot.com.au/2013/06/windows-7-internet-sharing-for.html >> >> however unable to ping ping www.google.com >> root@beaglebone:~# ifconfig >> eth0 Link encap:Ethernet HWaddr 7c:66:9d:58:87:70 >> UP BROADCAST MULTICAST MTU:1500 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) >> Interrupt:40 >> >> lo Link encap:Local Loopback >> inet addr:127.0.0.1 Mask:255.0.0.0 >> inet6 addr: ::1/128 Scope:Host >> UP LOOPBACK RUNNING MTU:65536 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) >> >> usb0 Link encap:Ethernet HWaddr ea:a2:3b:46:5d:59 >> inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252 >> inet6 addr: fe80::e8a2:3bff:fe46:5d59/64 Scope:Link >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >> RX packets:483 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:45 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:179805 (175.5 KiB) TX bytes:11212 (10.9 KiB) >> >> root@beaglebone:~# route add default gw 192.168.7.1 >> root@beaglebone:~# echo "nameserver 8.8.8.8" >> /etc/resolv.conf >> root@beaglebone:~# ping www.google.com >> ping: unknown host www.google.com >> root@beaglebone:~# >> >> btw, is the connman running there. When I did >> root@beaglebone:~# systemctl disable connman.service >> Failed to issue method call: No such file or directory >> root@beaglebone:~# >> >> Jan >> >> -- >> 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...@googlegroups.com <javascript:>. >> 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.