Преглед на файлове

Add IPv6 Interface Support

Add IPv6 Interface Support
First Version
pull/221/head
preussal преди 3 години
родител
ревизия
fd1fc87305
променени са 2 файла, в които са добавени 37 реда и са изтрити 0 реда
  1. +23
    -0
      README.rst
  2. +14
    -0
      linux/network/interface.sls

+ 23
- 0
README.rst Целия файл

@@ -1368,6 +1368,29 @@ interface and DNS servers:
- 8.8.4.4
mtu: 1500


Linux with IPv4 and IPv6 static network interfaces, default gateway

.. code-block:: yaml

linux:
network:
enabled: true
interface:
eth0:
enabled: true
type: eth
address: 192.168.0.102
netmask: 255.255.255.0
gateway: 192.168.0.1

enable_ipv6: true
ipv6proto: static
ipv6ipaddr: 1234:abcd::ffff:192.168.0.102
ipv6gateway: 1234:abcd::ffff:192.168.0.1
ipv6netmask: 64


Linux with bonded interfaces and disabled ``NetworkManager``:

.. code-block:: yaml

+ 14
- 0
linux/network/interface.sls Целия файл

@@ -263,6 +263,20 @@ linux_interface_{{ interface_name }}:
{%- else %}
- proto: {{ interface.get('proto', 'dhcp') }}
{%- endif %}

# IPv6
{%- if interface.enable_ipv6 is defined %}
- enable_ipv6: {{ interface.enable_ipv6 }}
{%- if interface.ipv6ipaddr is defined %}
{%- if grains.os_family == 'Debian' %}
- ipv6proto: {{ interface.get('ipv6proto', 'static') }}
{%- endif %}
- ipv6ipaddr: {{ interface.ipv6ipaddr }}
- ipv6gateway: {{ interface.ipv6gateway }}
- ipv6netmask: {{ interface.ipv6netmask }}
{%- endif %}
{%- endif %}

{%- if interface.type == 'slave' %}
- master: {{ interface.master }}
{%- endif %}

Loading…
Отказ
Запис