Add gateway setting to nmcli

This commit is contained in:
dogeystamp 2022-03-06 19:36:53 -05:00
parent abefec85bd
commit 049858de99
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,9 @@ subnet_prefix: /24
# in connection.yml
local_ip: 192.168.0.3
# Gateway address (this is your router's IP)
gateway: 192.168.0.1
# Connection interface for static IP
interface: eth0

View File

@ -43,6 +43,7 @@
dns4: "{{ dns_forward }}"
dns4_ignore_auto: yes
ip4: "{{ local_ip }}{{ subnet_prefix }}"
gw4: "{{ gateway }}"
method4: manual
state: present
conn_name: wired