I am using systemd-networkd. I have one NIC and I am using the following configuration to create multiple IPs:
[Match] Name=usbceth0 [Network] DHCP=ipv4 DNS=8.8.8.8 DNS=8.8.4.4 # LAN_1 [Address] Label=usbceth0:0 Address=192.168.100.10/24 # LAN_2 (4G-LAN) [Address] Label=usbceth0:1 Address=192.168.50.70/24 If there is a DHCP, usbceth0 gets an IP and gets a gateway assigned. The two added IPs, usbceth0:0 and usbceth0:1 are created normally. I need those to access different LANs. So far so good.
The network of usbceth0:1 has also a gateway at 192.168.50.1.
How can I add this gateway as-well in my configuration? Configure two gateways, one coming from the DHCP and one the 192.168.50.1. Is it possible?
Thanks!