diff --git a/lib/vagrant-libvirt/action/create_network_interfaces.rb b/lib/vagrant-libvirt/action/create_network_interfaces.rb index 416358c..b7e7eaf 100644 --- a/lib/vagrant-libvirt/action/create_network_interfaces.rb +++ b/lib/vagrant-libvirt/action/create_network_interfaces.rb @@ -216,6 +216,9 @@ module VagrantPlugins gateway: options[:gateway], route: options[:route] }.merge(network) + if IPAddr.new(options[:ip]).ipv6? + network[:type] = :static6 + end else network[:type] = :dhcp end