Ok thanks, i've made that yesterday. First BeagleBone:
- Use default configuration as 192.168.7.2 as hardcoded ip and standard udhcp configuration that release 192.168.7.1 Second BeagleBone: - I've setted hardcoded default usb0 ip to 192.168.8.2 and udhcp to release 192.168.8.1. In this way i've solved the ip conflict. Wiring (i've attached a scheme): I've connected USB Host Port of BeagleBone 2 to USB mini port of BeagleBone 1. The Main problem is that: If i use hotplug and connect the USB Host after bootup, i can see the new Eth1 interface on Beaglebone 2, in this way i can use ifconfig to set manually the eth1 ip to 192.168.7.1 as like the Beaglebone 2 was the PC. In Coldplug way, with the usb host connected before the boot to usb min i see that only one ip interface is bring up in the BBB where i've connected the USB host. Why? Where i can work to adjust this ? Thanks, in advance Il giorno giovedì 30 gennaio 2014 00:49:50 UTC+1, Brandon I ha scritto: > > Yes it is! > > The beaglebone gets the ip from a hardcoded value and the dev PC gets the > ip from a dhcp server running on the beaglebone. > > The beaglebones usb ip is set and the dhcp server is launched in > the /usr/bin/g-ether-load.sh script, called by the the g-ether-load.service > (run "systemctl status g-ether-load" to view details). At the bottom of > this script you'll see: > /sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252 > /usr/sbin/udhcpd -f -S /etc/udhcpd.conf > > That first line sets the beaglebones ip and subnet mask, the second fires > up the dhcp server using the configuration file /etc/udhcpd.conf, seen here: > start 192.168.7.1 > end 192.168.7.1 > interface usb0 > max_leases 1 > option subnet 255.255.255.252 > > The start and end is the address range the server can assign to the dev > PC. The subnet limits the network to <http://www.subnet-calculator.com/>the > addresses 192.168.7.1 - 192.168.7.2 (with a broadcast address of > 192.168.7.3). > > The problem is, when you attach two beaglebones to the same dev PC, the > dhcp server on each beaglebone assigns an address of 192.168.7.1. Your dev > PC says, "wait, I can't have to interfaces with the same IP" so refuses > it...but, even if more ips were allowed, the dhcp protocol has no way to > handle this crazy network topology, so everything gives up. > > To make two work on the same pc, change the hardcoded beaglebone ip in > /usr/bin/g-ether-load.sh and the dhcp ip range in /etc/udhcpd.conf to a > different subnet. Sticking with the 255.255.255.252 subnet mask, which > allows 2 ips and a broadcast ip, the next subnet starts at 192.168.7.4, so > assign the beaglebone to 192.168.7.5 and the dhcp range to 192.168.7.4 (or > flipping the ips would work too, it's an arbitrary selection). > > -Brandon > > On Wednesday, January 29, 2014 1:32:01 AM UTC-8, Andrea Pola wrote: >> >> It's possible to connect two BeagleBoneBack using the IP over USB. >> One is acting like Dev PC and may have the 192.168.7.1 address and the >> other act as normal BBB using 192.168.7.2 address. >> >> I'm trying to do it, and i'm encountering problem. >> Someone has made anything about this? >> >> Thanks >> > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
<<attachment: Screenshot from 2014-01-30 10:03:56.png>>
