diff --git a/templates/guests/redhat/network_static.erb b/templates/guests/redhat/network_static.erb index c28dd74cb..3f2a8b60a 100644 --- a/templates/guests/redhat/network_static.erb +++ b/templates/guests/redhat/network_static.erb @@ -6,5 +6,6 @@ ONBOOT=yes IPADDR=<%= options[:ip] %> NETMASK=<%= options[:netmask] %> DEVICE=eth<%= options[:interface] %> +<%= options[:gateway] ? "GATEWAY=#{options[:gateway]}" : '' %> PEERDNS=no #VAGRANT-END