Changeset 452
- Timestamp:
- 04/17/08 18:51:16 (9 months ago)
- Files:
-
- trunk/lib/deprec/templates/network/hostname.erb (modified) (1 diff)
- trunk/lib/deprec/templates/network/hosts.erb (modified) (1 diff)
- trunk/lib/deprec/templates/network/interfaces.erb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/deprec/templates/network/hostname.erb
r200 r452 1 <%= hostname %>1 <%= network_hostname %> trunk/lib/deprec/templates/network/hosts.erb
r249 r452 1 1 127.0.0.1 localhost 2 127.0.1.1 <%= hostname %>2 127.0.1.1 <%= network_hostname %> trunk/lib/deprec/templates/network/interfaces.erb
r200 r452 6 6 iface lo inet loopback 7 7 8 <% network_number_of_ports.to_i.times do |port| %> 8 9 # The primary network interface 9 auto eth010 iface eth0inet static11 address <%= eth0_ip%>12 netmask 255.255.254.013 broadcast 192.168.1.25514 gateway 192.168.0.115 dns-nameservers 203.8.183.1 4.2.2.110 auto <%= "eth#{port}" %> 11 iface <%= "eth#{port}" %> inet static 12 address <%= network_interfaces[port][:address] %> 13 netmask <%= network_interfaces[port][:netmask] %> 14 broadcast <%= network_interfaces[port][:broadcast] %> 15 <%= "gateway #{network_gateway}" if port == 0 %> 16 <%= "dns-nameservers #{network_dns_nameservers}" if port == 0 %> 16 17 17 auto eth1 18 iface eth1 inet static 19 address <%= eth1_ip %> 20 netmask 255.255.255.0 21 broadcast 192.168.1.255 22 dns-nameservers 203.8.183.1 4.2.2.1 18 <% end %>
