diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-01 22:24:41 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-01 23:44:24 +0200 |
| commit | 17f10052bdbc4cf5bfd0e2fa335f13c0165284a5 (patch) | |
| tree | d3ca8c539c7f0d0e9a4a115de4e6be1bf24f3f5d /roles/network/templates/eth0-connection.nmconnection.j2 | |
| parent | 38b83b874e91027449e2ffcc2f8ee9e50d4c6554 (diff) | |
Fix networking issues when VPN isn't active
Diffstat (limited to 'roles/network/templates/eth0-connection.nmconnection.j2')
| -rw-r--r-- | roles/network/templates/eth0-connection.nmconnection.j2 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/network/templates/eth0-connection.nmconnection.j2 b/roles/network/templates/eth0-connection.nmconnection.j2 index b981489a..dab5a6de 100644 --- a/roles/network/templates/eth0-connection.nmconnection.j2 +++ b/roles/network/templates/eth0-connection.nmconnection.j2 @@ -9,7 +9,8 @@ autoconnect=true {% if network_ipv4_address is defined %} method=manual addresses={{ network_ipv4_address }} -gateway={{ network_ipv4_gateway }} +gateway={{ network_ipv4_gateway }} +dns={{ network_ipv4_dns }} {% else %} method=auto {% endif %} @@ -20,6 +21,7 @@ addr-gen-mode=default method=manual addresses={{ network_ipv6_address }} gateway={{ network_ipv6_gateway }} +dns={{ network_ipv6_dns }} {% else %} method=auto {% endif %} |
