Adding support for gateway in RHEL/CentOS ifcfg script
This commit is contained in:
parent
017e61541a
commit
527e06c690
|
@ -6,5 +6,6 @@ ONBOOT=yes
|
||||||
IPADDR=<%= options[:ip] %>
|
IPADDR=<%= options[:ip] %>
|
||||||
NETMASK=<%= options[:netmask] %>
|
NETMASK=<%= options[:netmask] %>
|
||||||
DEVICE=eth<%= options[:interface] %>
|
DEVICE=eth<%= options[:interface] %>
|
||||||
|
<%= options[:gateway] ? "GATEWAY=#{options[:gateway]}" : '' %>
|
||||||
PEERDNS=no
|
PEERDNS=no
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
Loading…
Reference in New Issue