--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e02dffbf-f374-4e6d-aff5-61b367d4c4ca%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/QBTe4BoyF1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/bp4c4fhjrq6uvscp2nup0va1ah8ctftemg%404ax.com.
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.
To view this discussion on the web visit
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/435407280.2571493.1581662676293%40mail.yahoo.com.
On Fri, Feb 14, 2020 at 4:19 PM, Kenneth Martin<ken.un...@gmail.com> wrote:
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/QBTe4BoyF1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/20200215201409.94D6E26C0173%40sharky3.deepsoft.com.
On Sat, 15 Feb 2020 15:18:28 -0500, in gmane.comp.hardware.beagleboard.user
Actually what I had to do follows for Internet access. Took some trial and error.
Out of the box the IP addresses 192.168.7.x are only good between two devices.
Example a Laptop and the BBB.
If you want Internet access to do updates or whatever do the following
In /etc/network/interfaces make the following changes
iface usb0 inet static
address 192.168.137.2 <=== 137 was used because Windows insisted on it to do WiFi sharing 7 no go
netmask 255.255.0.0
network 192.168.137.0 <=== 137 was 7 originally
gateway 192.168.137.1 <=== What Windows assigned to the adapter in Windows-10 19.09 64-bit home
dns-nameservers 8.8.8.8 <=== Point to nameserver
post-up route add default gw 192.168.137.1 <== Add default gateway. Auto up.
debian@beaglebone:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.137.1 0.0.0.0 UG 0 0 0 usb0 <== Updated automatic entry
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 usb0
192.168.6.0 0.0.0.0 255.255.255.252 U 0 0 0 usb1
debian@beaglebone:~$
On the Windows side make sure the Network connection for the BBB or Ethernet 2
that the TCP/IP V4 setting is set to the 137 address from above. Save it then bring
up the WiFi settings / Properties / Sharing and allow sharing and choose either BBB
or Ethernet 2. Whichever is the new one added. Save it and exit.
Do a clean startup of the P.C. and the BBB.
It should work fine.
debian@beaglebone:~$ cat /etc/resolv.conf"
should get my the response "
nameserver 8.8.8.8".
But the response I get is "nameserver 127.0.0.1" which is locat host , and I don't why I get this response. And I tried to edit that file manually but it gets overwritten after every reboot.
Any help is appreciated. Thank you for your time . :)
iface usb0 inet static
address 192.168.137.2
netmask 255.255.0.0
network 192.168.137.0
gateway 192.168.137.1dns-nameservers 8.8.8.8
post-up route add default gw 192.168.137.1
I have installed the latest debian image on my BBB. And I don't know how to proceed with getting the internet to work via USB .Does making the following changes in /etc/default/bb-boot get you a internet connection ? (I mean via Wifi as a gateway BBB via USB<-->UBUNTU<-> Wifi )
sudo iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
sudo iptables --append FORWARD --in-interface eth1 -j ACCEPT
I would want to use my wifi id instead of eth0 if I want the internet to go through PC Host wifi , right ?And my eth0 is 192.168.7.1 & eth1 is 192.168.6.1. Is it encouraged to use eth1 for BBB on Linux instead of 192.168.7.1 ?
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/68dfb039-f96d-4a87-b1db-d107c8dd5939%40googlegroups.com.
sudo ip addr flush dev usb0 sudo dhclient usb0
root@sp3:~# grep forward /etc/sysctl.conf # Uncomment the next line to enable packet forwarding for IPv4 net.ipv4.ip_forward=1 # Uncomment the next line to enable packet forwarding for IPv6
sudo iptables --table nat --append POSTROUTING --out-interface wlp8s0 -j MASQUERADE (wlp8s0 is my PC Wifi )
sudo iptables --append FORWARD --in-interface eth0 -j ACCEPT (eth0 is 192.168.7.2)
Looks to me that all you need is;sudo route add default gw 192.168.7.1
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/0d0b9b06-7a32-42af-8c11-27735b28c869%40googlegroups.com.
root@sp3:~# grep forward /etc/sysctl.conf # Uncomment the next line to enable packet forwarding for IPv4 net.ipv4.ip_forward=1 # Uncomment the next line to enable packet forwarding for IPv6
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/QBTe4BoyF1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAFZwMK%2BiR%2BET9Hoj2_HXiSetURWXm6XU%3D0s1RdU_QUV%3Dwpig_g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/0d0b9b06-7a32-42af-8c11-27735b28c869%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/QBTe4BoyF1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagl...@googlegroups.com.
$ sudo netstat -rnKernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 usb0
192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 usb1
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 SoftAp0Running tcpdump on my Ubuntu system, I can see where the incoming traffic from the BB is reaching the correct IP on the host but does not seem to be getting routed out.
# ping -I usb0 8.8.8.8
It seems that something either on the Ubuntu side or in the network is blocking the traffic.$ sudo tcpdump -nvvi wlan0 'icmp[icmptype] == icmp-echo or icmp[icmptype] == icmp-echoreply'tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes08:55:34.027628 IP (tos 0x0, ttl 115, id 44071, offset 0, flags [DF], proto ICMP (1), length 84)192.168.2.216 > 8.8.8.8: ICMP echo request, id 1402, seq 1, length 6408:55:34.049037 IP (tos 0x20, ttl 52, id 0, offset 0, flags [none], proto ICMP (1), length 84)8.8.8.8 > 192.168.2.216: ICMP echo reply, id 1402, seq 1, length 6408:55:35.049654 IP (tos 0x0, ttl 115, id 44297, offset 0, flags [DF], proto ICMP (1), length 84)192.168.2.216 > 8.8.8.8: ICMP echo request, id 1402, seq 2, length 6408:55:35.067301 IP (tos 0x20, ttl 52, id 0, offset 0, flags [none], proto ICMP (1), length 84)
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/21cc8527-1fd9-4f9f-bd7d-7d6f46f25f58%40googlegroups.com.
$ sudo netstat -rnKernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/QBTe4BoyF1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkr7RGpa_wmvtjbw1JFkHe381xE%3Dn9-pJ0EmuD4W2itMDQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAJXSPs83vAiDHARKiEQ-i-UhvL7Rx3odCLf4BYjUzP5tA1pmAw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkoJwoGQjpHGdybUojycZpAyNifKP3HHwgdZq4UNFfMJ1w%40mail.gmail.com.
sudo iptables -A FORWARD -i wlan0 -o eth1 -j ACCEPT
root@beaglebone:~# ping -I usb0 8.8.8.8PING 8.8.8.8 (8.8.8.8) from 192.168.7.2 usb0: 56(84) bytes of data.64 bytes from 8.8.8.8: icmp_seq=1 ttl=103 time=17.9 ms64 bytes from 8.8.8.8: icmp_seq=2 ttl=103 time=15.8 ms64 bytes from 8.8.8.8: icmp_seq=3 ttl=103 time=15.3 ms64 bytes from 8.8.8.8: icmp_seq=4 ttl=103 time=15.7 m
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/20200516192904.5AE44223E69%40sharky4.deepsoft.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkqk0pq63Bud1ave3D5u15cmPmXaaPvn9pC8Mj-HRHAaLA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAFZwMKJ%3DqAGFrxssxs9QxWu-dqQ%2BK9FagDDiQhWvvo3LvVm5OQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAJXSPs8_1Xsg4rNjBiJ8zQFa3ipNrU2y5i9yuwBLq3db_9RMNA%40mail.gmail.com.
|
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAFZwMKK5K2EyUQa8CynrzmOLUVkkrmV6H8EzmWzigfGbb-8_XA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAJXSPs8nLrfCthjdmWErQg%3DUrufjG_WZfWEtMC%2B90tcWxO34yA%40mail.gmail.com.
|
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAFZwMK%2B2VgTm%3DG3VZFd0%3DD1Hv7k%2BwF99n7fcdL_OgJgGS3iUtw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAJXSPs_m29EohBSBiEiv4VRPhAFUZeT_SRXAJ9zvWG%3DZPtkf2g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAFZwMK%2BcknbiSR7Zp8tgdQFS1CPFZFdgJ02DQfso0GeETVFESQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAJXSPs-9svE2D_znEh01OeK2uw8TOyNEa8kYg05WLjaXyvW6dg%40mail.gmail.com.
|
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAFZwMKJQUOFYrt6veUNUTfueU_7QDpVqzWc5dRfY-WsV%2BjEGZg%40mail.gmail.com.