Sha256: 733ed42a934e32d3b88fd59c332de1bfdb8e2afa1f6f96554173d3b82256275e

Contents?: true

Size: 718 Bytes

Versions: 1

Compression:

Stored size: 718 Bytes

Contents

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
pre-up iptables-restore < /etc/iptables.up.rules

<% network_number_of_ports.to_i.times do |port| %>
# The primary network interface
auto <%= "eth#{port}" %>
iface <%= "eth#{port}" %> inet static
        address <%= network_interfaces[port][:address] %>
        netmask <%= network_interfaces[port][:netmask] %>
        broadcast <%= network_interfaces[port][:broadcast] %>
        <%= "gateway #{network_gateway}" if port == 0 %>
        <%= "dns-nameservers #{network_dns_nameservers}" if port == 0 %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Empact-deprec-1.99.21 lib/deprec/templates/network/interfaces.erb