Add the gateway to hostonly network interfaces on Debian [GH-990]

This commit is contained in:
Mitchell Hashimoto 2012-06-27 11:18:23 -07:00
parent 134e56db21
commit 0b3e703498
2 changed files with 5 additions and 3 deletions

View File

@ -259,9 +259,10 @@ module Vagrant
def hostonly_network_config(config)
return {
:type => config[:type],
:ip => config[:ip],
:netmask => config[:netmask]
:type => config[:type],
:adapter_ip => config[:adapter_ip],
:ip => config[:ip],
:netmask => config[:netmask]
}
end

View File

@ -4,4 +4,5 @@ auto eth<%= options[:interface] %>
iface eth<%= options[:interface] %> inet static
address <%= options[:ip] %>
netmask <%= options[:netmask] %>
gateway <%= options[:adapter_ip] %>
#VAGRANT-END