adamant-kite-43734
01/18/2024, 3:52 AMquick-sandwich-76600
01/18/2024, 9:58 AMnetwork:
version: 2
ethernets:
enp1s0:
dhcp4: true
gateway4: 192.168.1.88
nameservers:
addresses:
- 192.168.1.88
That'll change the default GW using the same netmask as gotten from DHCP for the interface. If what you want is setting other static routes this should work:
routes:
- to: 192.168.1.0/24
via: 192.168.1.88
cool-architect-86201
01/18/2024, 10:23 AM