A project (Linux based) I am working on requires an IPv6 only network interface which can be accessable via mDNS when connected to a network or when directly connected to another machine. The interface provides some web services and can be used for ssh as well. I have ran into issues when directly connecting with another machine where I cannot connect using the host name provided by Avahi.
I have done some research and it appears the issue is due to the interface only establishing a link local address. I can ssh into the unit by specifying the IPv6 address and interface as address%interface.
My question is, how can I configure an IPv6 interface to auto configure when connected to a router and establish a non link local address when directly connected, or is there a preferred method to support an Avahi IPv6 network that requires no configuration and supports network or direct connection?