How to configure two segment's IP addresses' gateway use netplan ?
#!/bin/bash network: version: 2 renderer: networkd ethernets: enp1s0f1: addresses: - 18.104.22.168/24 ... - 22.214.171.124/24 - 126.96.36.199/24 .... gateway4: 188.8.131.52 nameservers: addresses: [184.108.40.206, 220.127.116.11] dhcp4: no optional: no
You see I configured two IP segment
but there I only configured one gateway,
gateway4: 18.104.22.168, is there I need two IP segments' gateway?
if I need two, how can I configured it?
should I configured like this?
gateway4: [22.214.171.124, 126.96.36.199]