Running SAMBA with IPv6 and link-local address
# the link-local address will not be rooted outside the local network
# first you have to determine the inet6 addresses respectively the link-local address:
[root@centos7~] ip -6 addr show
enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 2a02:908:178:3f80:3289:2929:e04d:f149/64 scope global noprefixroute dynamic
valid_lft 6694sec preferred_lft 3094sec
inet6 fe80::f2f4:2306:d83:3bd7/64 scope link noprefixroute
valid_lft forever preferred_lft forever
# use the link-local address
# set up the /etc/samba/smb.conf with ipv6
# use the link-local address followed by the device and the prefix-length:
link-local address: fe80::f2f4:2306:d83:3bd7
device : %enp5s0
prefix-length : /64
/etc/samba/smb.conf
interfaces = fe80::f2f4:2306:d83:3bd7%enp5s0/64 lo
bind interfaces only = yes
name resolve order = wins bcast host
multicast dns register = no
# restart smbd by running 'service smb restart'
# map your drive under windows:
# use the link-local address from the SAMBA-Server,
# replace the colon (:) with hyphen (-),
# followed by ipv6-literal.net
# and the share-name :
net use n: \\fe80--f2f4-2306-d83-3bd7.ipv6-literal.net\data
# Note:
You can also use IPv4 and IPv6 together.