I have a Win7 embedded system that has a Ubuntu 16.04 peripheral. They are connected by an ethernet cable and the Ubuntu host can't be allowed to connect to anything but the Win7 host. The Win7 host is multihomed, with an Internet connection through customer firewalls. There is a history of problems using static IPv4 addresses colliding with the netmasks of customer subnets. If we use link-local IPv6 addresses between Win7 and Ubuntu we might have zero problems in our customer subnets. However, I'd like the addresses to be unique and automatically discovered, so that the Ubuntu unit can be plugged into the Win7 host and just work. Also I'd like to use the host files to be DNS-like to associate hostname and IP I'd like scripts to use a known non-unique hostname. An init script could be used to configure the host file, or some better simple way could be used.
We need to be able to clone these systems from an image. Hence the non-unique host names. But maybe theres a better way to provide programmatic connections?
(edit-add) Perhaps dnsmasq on the linux side could provide both hosts with pre-set dns names and unique link-local addresses?
Whats a good way to solve this problem?
0 Answers