Yaroslav pirms 2 gadiem
vecāks
revīzija
7cf064d5fb
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 32 papildinājumiem un 0 dzēšanām
  1. +22
    -0
      README.rst
  2. +10
    -0
      linux/network/interface.sls

+ 22
- 0
README.rst Parādīt failu

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

Also example how to add ipv6 address

.. 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
name_servers:
- 8.8.8.8
- 8.8.4.4
ipv6_address: 2403:df70:a111:304::41
ipv6_netmask: 64
ipv6_gateway: 2403:df70:a111:304::1


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

.. code-block:: yaml

+ 10
- 0
linux/network/interface.sls Parādīt failu

@@ -259,7 +259,17 @@ linux_interface_{{ interface_name }}:
{%- endif %}
{% endif %}
- ipaddr: {{ interface.address }}
{%- if interface.ipv6_address is defined %}
- enable_ipv6: true
- ipv6ipaddr: {{ interface.ipv6_address }}
{%- endif %}
- netmask: {{ interface.netmask }}
{%- if interface.ipv6_netmask is defined %}
- ipv6netmask: {{ interface.ipv6_netmask }}
{%- endif %}
{%- if interface.ipv6_gateway is defined %}
- ipv6gateway: {{ interface.ipv6_gateway }}
{%- endif %}
{%- else %}
- proto: {{ interface.get('proto', 'dhcp') }}
{%- endif %}

Notiek ielāde…
Atcelt
Saglabāt