initial commit of simple ipv6 support
As soon as in warewulf.conf a value for ipaddr6 is defined all nodes will get a derived ipv6 address if not the ipv6 is not explicitly set.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
DEVICE={{$.NetDevs.default.Device}}
|
||||
# This file is autogenerated by warewulf
|
||||
# Host: {{.BuildHost}}
|
||||
# Time: {{.BuildTime}}
|
||||
# Source: {{.BuildSource}}
|
||||
# DEVICE={{$.NetDevs.default.Device}}
|
||||
NAME=default
|
||||
BOOTPROTO=static
|
||||
DEVTIMEOUT=10
|
||||
@@ -6,4 +10,11 @@ IPADDR={{$.NetDevs.default.Ipaddr}}
|
||||
NETMASK={{$.NetDevs.default.Netmask}}
|
||||
GATEWAY={{$.NetDevs.default.Gateway}}
|
||||
HWADDR={{$.NetDevs.default.Hwaddr}}
|
||||
ONBOOT=yes
|
||||
ONBOOT=yes
|
||||
IPV6INIT=yes
|
||||
IPV6_AUTOCONF=yes
|
||||
IPV6_DEFROUTE=yes
|
||||
IPV6_FAILURE_FATAL=no
|
||||
{{- if $.NetDevs.default.Ipaddr6 }}
|
||||
IPV6ADDR="{{ $.NetDevs.default.Ipaddr6 }}"
|
||||
{{- end }}
|
||||
@@ -1,3 +1,9 @@
|
||||
<!--
|
||||
This file is autogenerated by warewulf
|
||||
Host: {{.BuildHost}}
|
||||
Time: {{.BuildTime}}
|
||||
Source: {{.BuildSource}}
|
||||
-->
|
||||
<interface origin="static generated warewulf config">
|
||||
<name>{{.NetDevs.default.Device}}</name>
|
||||
<control>
|
||||
@@ -24,4 +30,11 @@
|
||||
<privacy>prefer-public</privacy>
|
||||
<accept-redirects>false</accept-redirects>
|
||||
</ipv6>
|
||||
{{- if $.NetDevs.default.Ipaddr6 }}
|
||||
<ipv6:static>
|
||||
<address>
|
||||
<local>{{ $.NetDevs.default.Ipaddr6 }}</local>
|
||||
</address>
|
||||
</ipv6:static>
|
||||
{{- end }}
|
||||
</interface>
|
||||
|
||||
Reference in New Issue
Block a user