Enable setting the IP address on DHCP based private network

This commit is contained in:
Antek Baranski 2013-07-12 17:18:38 -07:00
parent 6d26c86c4c
commit 28e7ae1d05
1 changed files with 1 additions and 1 deletions

View File

@ -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])