Before this change epair interfaces get a random MAC. This does
not help dhcp/dyndns when an epair gets destroyed/recreated
after restart of a jail.
$ sysctl net.link.epair.ether_gen_addr=0
$ ifconfig epair8 create > /dev/null; ifconfig epair8a | grep ether; ifconfig epair8a destroy # (twice)
ether 02:2d:06:05:7f:0a
ether 02:69:49:fa:c4:0a
$ sysctl net.link.epair.ether_gen_addr=1
$ ifconfig epair8 create > /dev/null; ifconfig epair8a | grep ether; ifconfig epair8a destroy # (twice)
ether 58:9c:fc:10:2b:b4
ether 58:9c:fc:10:2b:b4
A follow up commit will change the default to 1 in main.
When no issues appear within about 2 weeks I would like to
remove the "old" code and the sysctl.
MFC after: 2 weeks
Relnotes: yes