Add the gateway to hostonly network interfaces on Debian [GH-990]
This commit is contained in:
parent
134e56db21
commit
0b3e703498
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue