If you set your default gateway for the port from USB, then you can delete that and add the gateway for the eth0 port. This should direct traffic to the eth0 port.
You can verify this with 'ip route". The other option is to use ifmetric and set the ports accordingly. Ex: 'metric 0' - for eth0 'metric 1' - for usb https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_ifmetric_package Jon On Fri, Sep 18, 2020 at 3:20 PM Dennis Lee Bieber <dennis.l.bie...@gmail.com> wrote: > On Fri, 18 Sep 2020 11:59:05 -0700 (PDT), in > gmane.comp.hardware.beagleboard.user > "myis300-pkbjnfxxiarbdgjk7y7...@public.gmane.org" > <myis300-pkbjnfxxiarbdgjk7y7...@public.gmane.org> wrote: > > >Hello, I was wondering if someone knows the command to set the physical > >eth0 connection as the default to always use? Right now it seems to > default > >to USB connection so i cannot get an internet connection. > > <BLINK><BLINK> > > I've never had to do anything different. If a live cable is > connected > from the Beagle to a (DHCP) router/switch the Beagle goes through the cable > to reach the Internet. > > I am a tad disappointed that PuTTY to the Beagle tends to follow > the > USB link (which is what I use for routine power) and not up to the router > and back down. If I power it using a 5V wall-wart and remove the USB, then > it does find it via my router. > > debian@beaglebone:~$ route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > default dsldevice.attlo 0.0.0.0 UG 0 0 0 > eth0 > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 > eth0 > dsldevice.attlo 0.0.0.0 255.255.255.255 UH 0 0 0 > eth0 > 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 > debian@beaglebone:~$ > > debian@beaglebone:~$ ifconfig > eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 > inet 192.168.1.69 netmask 255.255.255.0 broadcast 192.168.1.255 > inet6 2600:1700:e630:890:d239:72ff:fe18:3ee5 prefixlen 64 scopeid > 0x0<global> > inet6 fe80::d239:72ff:fe18:3ee5 prefixlen 64 scopeid 0x20<link> > inet6 2600:1700:e630:890::31 prefixlen 64 scopeid 0x0<global> > ether d0:39:72:18:3e:e5 txqueuelen 1000 (Ethernet) > RX packets 446 bytes 34483 (33.6 KiB) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 119 bytes 16981 (16.5 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > device interrupt 55 > > debian@beaglebone:~$ traceroute 8.8.8.8 > traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets > 1 dsldevice.attlocal.net (192.168.1.254) 0.775 ms 0.727 ms 0.773 ms > 2 76-255-152-1.lightspeed.gdrpmi.sbcglobal.net (76.255.152.1) 19.067 ms > 19.142 ms 19.717 ms > 3 71.152.176.29 (71.152.176.29) 21.763 ms 21.616 ms 22.406 ms > 4 cr2.cgcil.ip.att.net (12.123.7.142) 34.209 ms 29.973 ms 30.033 ms > 5 gar10.cgcil.ip.att.net (12.122.133.45) 28.449 ms 29.448 ms 29.848 > ms > 6 12.255.10.56 (12.255.10.56) 29.916 ms 12.255.10.44 (12.255.10.44) > 22.324 ms 12.255.10.54 (12.255.10.54) 23.330 ms > 7 10.23.207.158 (10.23.207.158) 24.736 ms * * > 8 dns.google (8.8.8.8) 24.353 ms 22.834 ms 23.743 ms > debian@beaglebone:~$ > > > > > > C:\Users\Wulfraed>tracert -4 beaglebone.local > > Tracing route to beaglebone.local [192.168.7.2] > over a maximum of 30 hops: > > 1 <1 ms <1 ms <1 ms 192.168.7.2 > > Trace complete. > > C:\Users\Wulfraed>tracert -4 192.168.1.69 > > Tracing route to beaglebone.attlocal.net [192.168.1.69] > over a maximum of 30 hops: > > 1 <1 ms <1 ms <1 ms beaglebone.attlocal.net [192.168.1.69] > > Trace complete. > > C:\Users\Wulfraed> > > > > > -- > Dennis L Bieber > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/6qbamfthqu5quot8u18hkcseh1ceurm92s%404ax.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. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkoGaK2EDRx-01zvWK3OOuXKY_gtiNa9WyofembdwSKuog%40mail.gmail.com.