Enable setting the IP address on DHCP based private network
This commit is contained in:
parent
6d26c86c4c
commit
28e7ae1d05
|
@ -220,7 +220,7 @@ module VagrantPlugins
|
|||
options[:type] = options[:type].to_sym
|
||||
|
||||
# Default IP is in the 20-bit private network block for DHCP based networks
|
||||
options[:ip] = "172.28.128.1" if options[:type] == :dhcp
|
||||
options[:ip] = "172.28.128.1" if options[:type] == :dhcp && options[:ip].nil?
|
||||
|
||||
# Calculate our network address for the given IP/netmask
|
||||
netaddr = network_address(options[:ip], options[:netmask])
|
||||
|
|
Loading…
Reference in New Issue