Scenario:
- Machine A on a network with RFC 1918 site-local IPv4 and old-style site-local IPv6 addresses (yes they are deprecated).
- The machine also serves as NFS server.
- For use with bhyve I modified rc.conf to always create a bridge0 and attach the physical network interface to it.
With this modification, a
Before inserting the bridge, this worked fine.
A few relevant lines from rc.conf (before the modification, the ifconfig lines were done directly for em0):
/etc/hosts is properly populated for both IPv4 and IPv6, so the addresses get assigned correctly.
Running ifconfig gives:
Note that ssh -6, ping6 etc. from another machine to A work fine.
Working neither is a direct mount command from another machine:
Any ideas about how to get this going?
-- Martin
p.s. The motivation to finally get this going is this commit. Previously the addresses stayed with em0 even if I created a bridge0 for use with bhyve. Interestingly, that was (still) working, except that NDP always took an initial prodding to learn the destination MACs.
- Machine A on a network with RFC 1918 site-local IPv4 and old-style site-local IPv6 addresses (yes they are deprecated).
- The machine also serves as NFS server.
- For use with bhyve I modified rc.conf to always create a bridge0 and attach the physical network interface to it.
With this modification, a
showmount -e machine_A on another machine hangs. Specifically, it hangs when using machine_A's hostname, and it turns out that in this case it tries the IPv6 address. Using the IPv4 address directly instead of the hostname works; using the IPv6 address hangs.Before inserting the bridge, this worked fine.
A few relevant lines from rc.conf (before the modification, the ifconfig lines were done directly for em0):
Code:
cloned_interfaces="bridge0"
create_args_bridge0="ether 42:00:01:00:13:01 addm em0 up"
ifconfig_bridge0="inet hostname_A netmask 255.255.255.0"
ifconfig_bridge0_ipv6="inet6 accept_rtadv hostname_A prefixlen 64"
/etc/hosts is properly populated for both IPv4 and IPv6, so the addresses get assigned correctly.
Running ifconfig gives:
Code:
[0]# ifconfig bridge0
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=0
ether 42:00:01:00:13:01
inet 192.168.1.19 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fec0:0:0:4d42::13 prefixlen 64
id f0:de:f1:98:86:a9 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id f0:de:f1:98:86:a9 priority 32768 ifcost 0 port 0
member: em0 flags=1c7<LEARNING,DISCOVER,STP,AUTOEDGE,PTP,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000000 proto rstp
role designated state discarding
groups: bridge
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
[0]#
Note that ssh -6, ping6 etc. from another machine to A work fine.
Working neither is a direct mount command from another machine:
mount fec0:0:0:4d42::13:/z/users/martin /mnt does not work, using the IPv4 address instead does.Any ideas about how to get this going?
-- Martin
p.s. The motivation to finally get this going is this commit. Previously the addresses stayed with em0 even if I created a bridge0 for use with bhyve. Interestingly, that was (still) working, except that NDP always took an initial prodding to learn the destination MACs.