Add the gateway to hostonly network interfaces on Debian [GH-990]
This commit is contained in:
parent
134e56db21
commit
0b3e703498
|
@ -260,6 +260,7 @@ module Vagrant
|
||||||
def hostonly_network_config(config)
|
def hostonly_network_config(config)
|
||||||
return {
|
return {
|
||||||
:type => config[:type],
|
:type => config[:type],
|
||||||
|
:adapter_ip => config[:adapter_ip],
|
||||||
:ip => config[:ip],
|
:ip => config[:ip],
|
||||||
:netmask => config[:netmask]
|
:netmask => config[:netmask]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,4 +4,5 @@ auto eth<%= options[:interface] %>
|
||||||
iface eth<%= options[:interface] %> inet static
|
iface eth<%= options[:interface] %> inet static
|
||||||
address <%= options[:ip] %>
|
address <%= options[:ip] %>
|
||||||
netmask <%= options[:netmask] %>
|
netmask <%= options[:netmask] %>
|
||||||
|
gateway <%= options[:adapter_ip] %>
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
Loading…
Reference in New Issue