Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5970

netplan, dual NICs, public & private ifaces [closed]

$
0
0

I'm trying for the life of me to make a netplan file that configures two NICs, and with the deprecations (gateway4, routes/routing-policy, etc) I'm having a hell of a time figuring out how to achieve this with countless VM reloads due to my errors ha.

Ultimately eth0 should be everything on the public iface, and eth1 should be everything on the private iface. The /24 is correct. The gateways are also correct being on x.x.x.1. Can anyone give me some pointers?

Yes, I am purposely looking to disable DHCP, as well as disabling IPv6.

network:  version: 2  ethernets:    eth0:      dhcp4: no      match:        macaddress: 1e:00:e3:00:05:85      addresses:        - 74.23.55.226/24      set-name: eth0      nameservers:        addresses:          - 1.1.1.1          - 1.0.0.1      routes:        - to: default          via: 74.23.55.1          table: 100      dhcp6: no      accept-ra: no    eth1:      match:        macaddress: 02:01:08:38:00:55      set-name: eth1      dhcp4: no      addresses:        - 192.168.1.160/24      routes:        - to: default          via: 192.168.1.1          table: 200      dhcp6: no      accept-ra: no

Viewing all articles
Browse latest Browse all 5970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>