Hi Ken, I used the *grep forward /etc/sysctl.conf *after following drew's post about setting up a USB connection. https://docs.google.com/viewer?a=v&pid=forums&srcid=MTczNzY5MjQ0Njg2MjQ5NDgzODcBMDAwNDQ0MDU5Mzk5ODM4OTQwMTcBSkFWYVlKS3BBZ0FKATAuMQEBdjI
I did delete the default gw and set i back to 192.168.7.2 But it doesn't help. I still see 0.0.0.0 on the left column. All I get is : PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. From 192.168.7.1 icmp_seq=1 Destination Host Unreachable From 192.168.7.1 icmp_seq=2 Destination Host Unreachable From 192.168.7.1 icmp_seq=3 Destination Host Unreachable From 192.168.7.1 icmp_seq=4 Destination Host Unreachable From 192.168.7.1 icmp_seq=5 Destination Host Unreachable Also my /etc/network/interfaces contains following lines : #auto lo #iface lo inet loopback Should I uncomment these lines and save ?Will it make a difference ? The following is my netstat -rn for my Ubuntu Linux host PC: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlp8s0 10.42.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.42.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp8s0 (wlp8s0 is my wifi) And my BBB routing table looks like 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 So I used 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) Any help is appreciated ! Best Raj root@rajeshpc:/home/rajesh# ifconfig On Friday, May 15, 2020 at 8:41:31 AM UTC-7, KenUnix wrote: > > I don't know what you are doing with > > *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 * > > *net.ipv6.conf.all.forwarding=1* > > *followed by this command "**sysctl -a |fgrep .forwarding |grep ^net > |grep ipv4**"* > > Can you upload a copy of the script? > > All I can say about the route add default is your route printout shows a > default route on the BBB > but it's 0.0.0.0 in the left column. Try sudo route delete default gw > 192.168.7.1 then re-enter it as > sudo route add default gw 192.168.7.1 then do the route list again and > see if the 0.0.0.0 in > the first column is replaced by the word default. And if it is try ping > 8.8.8.8 again. > > Let me know. > > > On Fri, May 15, 2020 at 12:27 AM Rajesh Kulkarni <[email protected] > <javascript:>> wrote: > >> @Ken Yep, I already did add the default gateway and the response I get is >> "already exists" . >> >> @Robert, yep I un-commented that part. >> >> *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 * >> >> *net.ipv6.conf.all.forwarding=1* >> >> *followed by this command "**sysctl -a |fgrep .forwarding |grep ^net >> |grep ipv4**"* >> >> But nothing seems to be helping, >> Also should I try using usb1 i.e. 192.68.6.2 ?? As of now the way I am >> trying is to get my 192.168.7.2 requests to forward to my PC wifi >> connection. >> >> 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) >> >> >> >> >> On Thu, May 14, 2020 at 7:33 PM KenUnix <[email protected] <javascript:>> >> wrote: >> >>> 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 [email protected] <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/beagleboard/0d0b9b06-7a32-42af-8c11-27735b28c869%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/beagleboard/0d0b9b06-7a32-42af-8c11-27735b28c869%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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 >> [email protected] <javascript:>. >> 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 >> >> <https://groups.google.com/d/msgid/beagleboard/CAFZwMK%2BiR%2BET9Hoj2_HXiSetURWXm6XU%3D0s1RdU_QUV%3Dwpig_g%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/2c58e807-2424-45c3-869f-9080eec138fd%40googlegroups.com.
