Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support IPv6 for network #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,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
Expand Down
10 changes: 10 additions & 0 deletions linux/network/interface.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down