I am currently having trouble setting up networking on my ubuntu server. The autoconfiguration by dhcp failed during installation, so I have to statically configure my network using netplan YAML files. I have two bridges setup, vmbr0, which is used by my main node, and vmbr1, which is used by ubuntu. Here is ubuntu's yaml configuration:
Should I configure the gateway as the node's ip, 10.0.1.100, or the node's default gateway, 10.0.1.1?
Code:
network:
version: 2
renderer: networkd
ethernets:
ens18:
dhcp4: no
addresses: [10.0.1.101/24, ]
gateway4: 10.0.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]