17 lines
501 B
Plaintext
17 lines
501 B
Plaintext
auto <%= interface %>
|
|
iface <%= interface %> inet manual
|
|
<% if @macaddr -%>
|
|
hwaddress ether <%= @macaddr.downcase %>
|
|
<% end -%>
|
|
<% if @mtu -%>
|
|
mtu <%= @mtu %>
|
|
<% end -%>
|
|
<% if @vlan_mode %>vlan_raw_device <%= @vlan_dev %><% end %>
|
|
up ip l set <%= interface %> up
|
|
down ip l set <%= interface %> down
|
|
<% if @bond_mode %>slaves none
|
|
bond-mode <%= @bond_mode %><% if @bond_miimon %>
|
|
bond-miimon <%= @bond_miimon %><% end %><% if @bond_lacp_rate %>
|
|
bond-lacp-rate <%= @bond_lacp_rate %><% end %>
|
|
<% end %>
|