Add gateway setting to nmcli
This commit is contained in:
parent
abefec85bd
commit
049858de99
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user