diff --git a/plugins/guests/freebsd/cap/configure_networks.rb b/plugins/guests/freebsd/cap/configure_networks.rb index aa299c4aa..aa2daa9fe 100644 --- a/plugins/guests/freebsd/cap/configure_networks.rb +++ b/plugins/guests/freebsd/cap/configure_networks.rb @@ -19,8 +19,8 @@ module VagrantPlugins ifname = "" machine.communicate.execute(command) do |type, data| result << data if type == :stdout - if result.split(/\n/).any?{|i| i.match(/vio*/)} - ifname = "vio#{network[:interface]}" + if result.split(/\n/).any?{|i| i.match(/vtnet*/)} + ifname = "vtnet#{network[:interface]}" else ifname = "em#{network[:interface]}" end