Re: [beagleboard] setting priority of two ethernet connections
0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 eth0 This mean all package out from 192.168.0.1 Try route delete 0.0.0.0 once Make sure only have 0.0.0.0 192.168.1.1 0.0.0.0 UG10 00 eth1 When only usb dongle connect . Or try ifconfig eth0 0.0.0.0 when eth0 down 2014-07-20 18:43 GMT+08:00 nebius nevi...@gmail.com: Hi, here Nevio, from Italy. I'm new in the forum. I'm playing with a BeagleBone Black C with debian 7.5 2014-07-06 version. The BBB is connected to the local network with internet access, and I run it with ssh. I have connected also a usb internet-key (Huawei E3131) that work out of the box. This internet key is different from the others because it is seen as an ethernet device, not usb device. I am having trouble with configuring which internet connection the system has to use. In particular I would like the BBB use the internet connection via LAN if the internet via LAN is up, else the other connection (via usb internet key). I have configured the two eth connections with different priorities (/etc/network/interfaces), however if the LAN has no internet connection the system don't use the usb-key. I post my config file. eth0 = wired connection, gateway 192.168.0.1 eth1 = via usb internet key, gateway 192.168.1.1 debian@arm:~$ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. From 192.168.0.1 icmp_seq=1 Destination Net Unreachable From 192.168.0.1 icmp_seq=2 Destination Net Unreachable From 192.168.0.1 icmp_seq=3 Destination Net Unreachable From 192.168.0.1 icmp_seq=4 Destination Net Unreachable From 192.168.0.1 icmp_seq=5 Destination Net Unreachable ^C --- 8.8.8.8 ping statistics --- 9 packets transmitted, 0 received, +9 errors, 100% packet loss, time 8012ms debian@arm:~$ ping -I eth1 8.8.8.8 PING 8.8.8.8 (8.8.8.8) from 192.168.0.14 eth1: 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=3 ttl=43 time=658 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=1687 ms 64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=2687 ms 64 bytes from 8.8.8.8: icmp_req=4 ttl=43 time=47.6 ms ^C --- 8.8.8.8 ping statistics --- 8 packets transmitted, 7 received, 12% packet loss, time 7003ms rtt min/avg/max/mdev = 47.670/899.876/2687.464/921.850 ms, pipe 3 debian@arm:~$ sudo route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG10 00 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 00 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 00 eth1 192.168.7.0 0.0.0.0 255.255.255.252 U 0 00 usb0 debian@arm:~$ nano /etc/network/interfaces # 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 iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.14 netmask 255.255.255.0 gateway 192.168.0.1 # Example to keep MAC address between reboots #hwaddress ether DE:AD:BE:EF:CA:FE # The secondary network interface auto eth1 allow-hotplug eth1 #allow-auto eth1 iface eth1 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.1 metric 10 # WiFi Example #auto wlan0 #iface wlan0 inet dhcp #wpa-ssid essid #wpa-psk password # Ethernet/RNDIS gadget (g_ether) # ... or on host side, usbnet and random hwaddr # Note on some boards, usb0 is automaticly setup with an init script iface usb0 inet static address 192.168.7.2 netmask 255.255.255.0 network 192.168.7.0 gateway 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+unsubscr...@googlegroups.com. 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.
Re: [beagleboard] setting priority of two ethernet connections
Hi Nevio, 2014-07-20 7:43 GMT-03:00 nebius nevi...@gmail.com: Hi, here Nevio, from Italy. I'm new in the forum. I'm playing with a BeagleBone Black C with debian 7.5 2014-07-06 version. The BBB is connected to the local network with internet access, and I run it with ssh. I have connected also a usb internet-key (Huawei E3131) that work out of the box. This internet key is different from the others because it is seen as an ethernet device, not usb device. Sorry if this is not the focus of your question, but can you tell how you make this modem work like an ethernet device? Plug'n play or did you do some kind of configuration? I've recently have some problems on make this modem work in ofono, but if the modem can work it would be nice. I am having trouble with configuring which internet connection the system has to use. In particular I would like the BBB use the internet connection via LAN if the internet via LAN is up, else the other connection (via usb internet key). I have configured the two eth connections with different priorities (/etc/network/interfaces), however if the LAN has no internet connection the system don't use the usb-key. I post my config file. eth0 = wired connection, gateway 192.168.0.1 eth1 = via usb internet key, gateway 192.168.1.1 I believe Debian default network connection manager is Wicd, I never used. I'm currently using Connman to manage connections and default route. You can check some documentation here: http://git.kernel.org/cgit/network/connman/connman.git/tree/doc/overview-api.txt debian@arm:~$ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. From 192.168.0.1 icmp_seq=1 Destination Net Unreachable From 192.168.0.1 icmp_seq=2 Destination Net Unreachable From 192.168.0.1 icmp_seq=3 Destination Net Unreachable From 192.168.0.1 icmp_seq=4 Destination Net Unreachable From 192.168.0.1 icmp_seq=5 Destination Net Unreachable ^C --- 8.8.8.8 ping statistics --- 9 packets transmitted, 0 received, +9 errors, 100% packet loss, time 8012ms debian@arm:~$ ping -I eth1 8.8.8.8 PING 8.8.8.8 (8.8.8.8) from 192.168.0.14 eth1: 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=3 ttl=43 time=658 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=1687 ms 64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=2687 ms 64 bytes from 8.8.8.8: icmp_req=4 ttl=43 time=47.6 ms ^C --- 8.8.8.8 ping statistics --- 8 packets transmitted, 7 received, 12% packet loss, time 7003ms rtt min/avg/max/mdev = 47.670/899.876/2687.464/921.850 ms, pipe 3 debian@arm:~$ sudo route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG10 00 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 00 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 00 eth1 192.168.7.0 0.0.0.0 255.255.255.252 U 0 00 usb0 debian@arm:~$ nano /etc/network/interfaces # 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 iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.14 netmask 255.255.255.0 gateway 192.168.0.1 # Example to keep MAC address between reboots #hwaddress ether DE:AD:BE:EF:CA:FE # The secondary network interface auto eth1 allow-hotplug eth1 #allow-auto eth1 iface eth1 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.1 metric 10 # WiFi Example #auto wlan0 #iface wlan0 inet dhcp #wpa-ssid essid #wpa-psk password # Ethernet/RNDIS gadget (g_ether) # ... or on host side, usbnet and random hwaddr # Note on some boards, usb0 is automaticly setup with an init script iface usb0 inet static address 192.168.7.2 netmask 255.255.255.0 network 192.168.7.0 gateway 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+unsubscr...@googlegroups.com. 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.
[beagleboard] setting priority of two ethernet connections
Hi, here Nevio, from Italy. I'm new in the forum. I'm playing with a BeagleBone Black C with debian 7.5 2014-07-06 version. The BBB is connected to the local network with internet access, and I run it with ssh. I have connected also a usb internet-key (Huawei E3131) that work out of the box. This internet key is different from the others because it is seen as an ethernet device, not usb device. I am having trouble with configuring which internet connection the system has to use. In particular I would like the BBB use the internet connection via LAN if the internet via LAN is up, else the other connection (via usb internet key). I have configured the two eth connections with different priorities (/etc/network/interfaces), however if the LAN has no internet connection the system don't use the usb-key. I post my config file. eth0 = wired connection, gateway 192.168.0.1 eth1 = via usb internet key, gateway 192.168.1.1 debian@arm:~$ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. From 192.168.0.1 icmp_seq=1 Destination Net Unreachable From 192.168.0.1 icmp_seq=2 Destination Net Unreachable From 192.168.0.1 icmp_seq=3 Destination Net Unreachable From 192.168.0.1 icmp_seq=4 Destination Net Unreachable From 192.168.0.1 icmp_seq=5 Destination Net Unreachable ^C --- 8.8.8.8 ping statistics --- 9 packets transmitted, 0 received, +9 errors, 100% packet loss, time 8012ms debian@arm:~$ ping -I eth1 8.8.8.8 PING 8.8.8.8 (8.8.8.8) from 192.168.0.14 eth1: 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=3 ttl=43 time=658 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=1687 ms 64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=2687 ms 64 bytes from 8.8.8.8: icmp_req=4 ttl=43 time=47.6 ms ^C --- 8.8.8.8 ping statistics --- 8 packets transmitted, 7 received, 12% packet loss, time 7003ms rtt min/avg/max/mdev = 47.670/899.876/2687.464/921.850 ms, pipe 3 debian@arm:~$ sudo route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG10 00 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 00 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 00 eth1 192.168.7.0 0.0.0.0 255.255.255.252 U 0 00 usb0 debian@arm:~$ nano /etc/network/interfaces # 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 iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.14 netmask 255.255.255.0 gateway 192.168.0.1 # Example to keep MAC address between reboots #hwaddress ether DE:AD:BE:EF:CA:FE # The secondary network interface auto eth1 allow-hotplug eth1 #allow-auto eth1 iface eth1 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.1 metric 10 # WiFi Example #auto wlan0 #iface wlan0 inet dhcp #wpa-ssid essid #wpa-psk password # Ethernet/RNDIS gadget (g_ether) # ... or on host side, usbnet and random hwaddr # Note on some boards, usb0 is automaticly setup with an init script iface usb0 inet static address 192.168.7.2 netmask 255.255.255.0 network 192.168.7.0 gateway 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.