Files
2026-09-10 09:14:19 +02:00

90 lines
1.8 KiB
Plaintext

# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet manual
# Karte 10GBPS
auto ens19
iface ens19 inet manual
auto ens20
iface ens20 inet static
address 10.2.99.XXX/24
#Corosync Link 0
auto ens21
iface ens21 inet static
address 10.3.99.XXX/24
#Corosync Link 1
auto ens22
iface ens22 inet manual
auto ens23
iface ens23 inet manual
auto bond0
iface bond0 inet manual
bond-slaves ens18 ens19
bond-miimon 100
bond-mode active-backup
bond-primary ens18
#Bond0 nach aussen
auto bond1
iface bond1 inet manual
bond-slaves ens22 ens23
bond-miimon 100
bond-mode active-backup
bond-primary ens22
#Bond1 zum Ceph Storage
auto vmbr0
iface vmbr0 inet static
address 10.1.99.XXX/24
gateway 10.1.99.254
bridge-ports bond0
bridge-stp off
bridge-fd 0
#Bridge nach aussen
source /etc/network/interfaces.d/*
auto vmbr1
iface vmbr1 inet static
address 192.168.127.254/24
bridge-ports none
bridge-stp off
bridge-fd 0
pre-up iptables -t nat -A POSTROUTING -s '192.168.127.0/24' -o vmbr0 -j MASQUERADE
pre-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-down iptables -t nat -F
# END ANSIBLE MANAGED BLOCK
auto Ceph_public
iface Ceph_public inet static
address 10.4.99.XXX/24
vlan-id 50
vlan-raw-device bond1
#Ceph_public
auto Ceph_cluster
iface Ceph_cluster inet static
address 10.5.99.XXX/24
vlan-id 51
vlan-raw-device bond1
#Ceph_cluster