Arch expects /24 for netmask, but users usually specify as a netmask block like 255.255.255.0. This automatically converts it.
9 lines
243 B
Plaintext
9 lines
243 B
Plaintext
Connection=ethernet
|
|
Description='A basic static ethernet connection'
|
|
Interface=<%= options[:device] %>
|
|
IP=static
|
|
Address=('<%= options[:ip]%>/<%= options[:netmask] %>')
|
|
<% if options[:gateway] -%>
|
|
Gateway='<%= options[:gateway] %>'
|
|
<% end -%>
|