0

How to change below in to a netplan yaml file for Ubuntu18.04 ?

root@ubuntu-sio1-cpa117-2:/etc/network# cat interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
        bond-master bond0
        bond-primary eno1

auto eno2
iface eno2 inet manual
        bond-master bond0

auto bond0
iface bond0 inet manual
        bond-mode active-backup
        bond-miimon 100
        bond-slaves none

auto bond0.40
iface bond0.40 inet static
        address 192.168.34.20
        netmask 255.255.255.0
        network 192.168.34.0
        broadcast 192.168.34.255
        vlan-raw-device bond0

auto bond1
iface bond1 inet manual
        bond-mode 4
        bond-miimin 100
        bond-lacp-rate 1
        bond-slaves none

auto enp175s0f0
iface enp175s0f0 inet manual
        bond-master bond1

auto enp94s0f0
iface enp94s0f0 inet manual
        bond-master bond1

auto bond1.1001
iface bond1.1001 inet static
        address 10.93.129.100
        gateway 10.93.129.97
        netmask 255.255.255.248
        dns-nameservers 10.221.16.10 10.221.16.11
        vlan-raw-device bond1
        up route add -net 10.93.129.96 netmask 255.255.255.248 gw 10.93.129.97

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.