Is this a typo? should be 'wifi on' #connmanctl> tether wifi off The 'auto eth0' should not be commented out, unless you are not using a connected ethernet cable # auto eth0 iface eth0 inet static
Also, I don't see a 'wlan0' in your 'route' output, are your trying to connect via wifi or usb0? more info might help I'm using an Edimax wifi dongle and connected Ethernet cable, the image is the same that you posted For 'route' this is what I get debian@beaglebone:~$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.3.1 0.0.0.0 UG 0 0 0 eth0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0 192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.3.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 192.168.6.0 0.0.0.0 255.255.255.252 U 0 0 0 usb1 On Tuesday, September 17, 2019 at 7:52:59 AM UTC-5, [email protected] wrote: > > Hi > > I have a BeagleBone Black with a huge Problem > > I i flashed the image Debian 9.5 2018-10-07 4GB SD IoT > <https://debian.beagleboard.org/images/bone-debian-9.5-iot-armhf-2018-10-07-4gb.img.xz> > > > I have one PC in Network 192.168.144.xxx Gateway 192.168.144.254 > The Beaglebone is in network 192.168.143.xxx Gateway 192.168.143.254 > > My interfaces file: > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > # This file describes the network interfaces available on your system > # and how to activate them. For more information, see interfaces(5). > > # The loopback network interface > auto lo eth0 > iface lo inet loopback > > # The primary network interface > # auto eth0 > iface eth0 inet static > address 192.168.143.207 > netmask 255.255.255.0 > gateway 192.168.143.254 > > # Example to keep MAC address between reboots > #hwaddress ether DE:AD:BE:EF:CA:FE > > ##connman: ethX static config > #connmanctl services > #Using the appropriate ethernet service, tell connman to setup a static IP > address for that service: > #sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> > <gateway> --nameservers <dns_server> > > ##connman: WiFi > # > #connmanctl > #connmanctl> tether wifi off > #connmanctl> enable wifi > #connmanctl> scan wifi > #connmanctl> services > #connmanctl> agent on > #connmanctl> connect wifi_*_managed_psk > #connmanctl> quit > > > > > # Ethernet/RNDIS gadget (g_ether) > # Used by: /opt/scripts/boot/autoconfigure_usb0.sh > iface usb0 inet static > address 192.168.7.2 > netmask 255.255.255.252 > network 192.168.7.0 > gateway 192.168.7.1 > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > I can't ping the BeagleBone from the PC. It is possible to ping the > Gateway in 192.168.143.xxx from PC and Beaglebone. > > After booting the BeagleBone, the "route" command shows: > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > default 0.0.0.0 0.0.0.0 U 0 0 0 > eth0 > default 192.168.143.254 0.0.0.0 UG 0 0 0 > eth0 > link-local 0.0.0.0 255.255.0.0 U 0 0 0 > eth0 > 192.168.6.0 0.0.0.0 255.255.255.252 U 0 0 0 > usb1 > 192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 > usb0 > 192.168.143.0 0.0.0.0 255.255.255.0 U 0 0 0 > eth0 > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > There are two default routes!?!?!?!?! WHY? > > If i restart the network service, the first default route disappears and i > can successfully ping the Beaglebone from the PC in the 192.168.144 network. > What did i wrong? > -- 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/47d8bf20-9c33-4085-aab8-5a415ddbef32%40googlegroups.com.
