I could assign them static addresses, which I'm doing temporarily as a short-term fix, but I need the DHCP to assign addresses for the VM's.
# -*- mode: ruby -*-
# vi: set ft=ruby :
$veh = 1
$vehCount = 2
$vehList ={}
while $veh <= $vehCount do
$vehList["veh#{$veh}"] = "525400" + Array.new(6){[*"A".."F", *"0".."9"].sample}.join
$veh+=1
end
Vagrant.configure("2") do |config|
$vehList.each do |vehName, macADDR|
$name = vehName
$mac = macADDR
config.vm.define vehName do |vmConfig|
vmConfig.vm.box = "dcop"
# dcop.vm.base_mac = nil
vmConfig.vm.network "public_network", bridge: "eno1", :mac => macADDR
end
end
end