Hi zusammen, netplan-konfig verstehe wer will.
Ich hab nochmal eine Konfiguration mit “alles”, und eingefügten leeren Adressen, teilweise klappt das beim Bootvorgang, teilweise nicht:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
dhcp6: no
eth1:
dhcp4: no
dhcp6: no
bonds:
bond0:
interfaces: [eth0, eth1]
link-local: [ ]
addresses: [ ]
parameters:
mode: balance-rr
mii-monitor-interval: 100
vlans:
vlan-rot: # Internet/Firewall (RED)
id: 20
link: bond0
link-local: [ ]
addresses: [ ]
vlan-server: # Server Netz (GREEN)
id: 10
link: bond0
link-local: [ ]
addresses: [ ]
vlan-dmz: # DMZ (ORANGE)
id: 15
link: bond0
link-local: [ ]
addresses: [ ]
vlan-wlan: # CoovaChilli Netz (BLAU)
id: 13
link: bond0
link-local: [ ]
addresses: [ ]
vlan-teacher: # LehrerNetz (GREEN)
id: 12
link: bond0
link-local: [ ]
addresses: [ ]
vlan-rest: # Pädagogisches Netz (GREEN)
id: 14
link: bond0
link-local: [ ]
addresses: [ ]
bridges:
br-red:
interfaces: [vlan-rot]
link-local: [ ]
addresses: [ ]
br-server:
interfaces: [vlan-server]
addresses: [10.16.1.22/16]
gateway4: 10.16.1.254
nameservers:
addresses: [10.16.1.1]
search: ["meine-schule.de"]
br-dmz:
interfaces: [vlan-dmz]
link-local: [ ]
addresses: [ ]
br-wlan:
interfaces: [vlan-wlan]
link-local: [ ]
Daraufhin bootet mein Rechner in folgende Konfiguration:
root@kvmhost:~# ip -br addr list
lo UNKNOWN 127.0.0.1/8 ::1/128
eth0 UP
eth1 UP
br-wlan UP
br-server UP 10.16.1.22/16 fe80::3c82:8dff:fe41:846c/64
br-red UP
br-dmz UP
bond0 UP
vlan-server@bond0 UP fe80::a410:eeff:fe1e:5def/64
vlan-dmz@bond0 UP fe80::a410:eeff:fe1e:5def/64
vlan-rot@bond0 UP fe80::a410:eeff:fe1e:5def/64
vlan-teacher@bond0 UP
vlan-rest@bond0 UP
vlan-wlan@bond0 UP fe80::a410:eeff:fe1e:5def/64
virbr0 DOWN 192.168.122.1/24
virbr0-nic DOWN
vnet0 UNKNOWN fe80::fc54:ff:fe20:ea70/64
Man sieht, dass bond0 keine IPv6 mehr hat, aber vlan-rot@bond0 und andere immernoch.
MAcht man dann nach dem booten (und hochfahren der virtuellen Maschinen) nochmal “netplan apply”, dann sieht es so aus, wie ich mir das wünsche:
root@kvmhost:~# netplan apply
root@kvmhost:~# ip -br addr list
lo UNKNOWN 127.0.0.1/8 ::1/128
eth0 UP
eth1 UP
br-wlan UP
br-server UP 10.16.1.22/16 fe80::3c82:8dff:fe41:846c/64
br-red UP
br-dmz UP
bond0 UP
vlan-server@bond0 UP
vlan-dmz@bond0 UP
vlan-rot@bond0 UP
vlan-teacher@bond0 UP
vlan-rest@bond0 UP
vlan-wlan@bond0 UP
virbr0 DOWN 192.168.122.1/24
virbr0-nic DOWN
vnet0 UNKNOWN fe80::fc54:ff:fe20:ea70/64