Стоит ds на Hetzner. Периодически падает сеть. Пропадает сеть полностью. Приходится перезагружать сервер, потом работает где-то день. Характеристики сервера: Intel Core i7-6700 2x RAM 16384 MB DDR4 2x SSD SATA 512 GB
На сервере подняты 2 виртуальные машины ubuntu 20.04, сети у машин VirtIO (paravirtualized). pveversion:
pveversion -v
proxmox-ve: 6.4-1 (running kernel: 5.4.157-1-pve)
pve-manager: 6.4-13 (running version: 6.4-13/9f411e79)
pve-kernel-5.4: 6.4-11
pve-kernel-helper: 6.4-11
pve-kernel-5.4.157-1-pve: 5.4.157-1
pve-kernel-4.15: 5.4-19
pve-kernel-4.15.18-30-pve: 4.15.18-58
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.1.5-pve2~bpo10+1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
libjs-extjs: 6.0.1-10
libknet1: 1.22-pve2~bpo10+1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.1.0-1
libpve-access-control: 6.4-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-4
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-3
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.1.13-2
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.6-1
pve-cluster: 6.4-1
pve-container: 3.3-6
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-4
pve-firmware: 3.3-2
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.6-pve1~bpo10+1
Настройка сети на хосте:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp0s31f6
iface enp0s31f6 inet static
address ip-hetzner
netmask 255.255.255.192
pointopoint шлюз-хетзнер
gateway шлюз-хетзнер
iface enp0s31f6 inet6 static
address 2a01:4f8:172:10de::2
netmask 64
gateway fe80::1
iface enp0s31f6.4000 inet manual
auto vmbr4000
iface vmbr4000 inet manual
bridge-ports enp0s31f6.4000
bridge-stp off
bridge-fd 0
mtu 1400
up ip addr add 192.168.100.2/24 dev vmbr4000
metric 20
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
up ip addr add 192.168.1.1/24 dev vmbr1
metric 30
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o enp0s31f6 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 192.168.1.0/24 -o enp0s31f6 -j MASQUERADE
auto vmbr2
iface vmbr2 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
up ip addr add 172.20.1.1/12 dev vmbr2
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 172.20.1.0/12 -o vmbr4000 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 172.20.1.0/12 -o vmbr4000 -j MASQUERADE
Интерфейс enp0s31f6.4000 через vlan коннектится с другим ds с такими же настройками (Только ip на том 192.168.100.3/24). У виртуальной машины 2 сетевых интерфейса: vmbr1 через MASQUERADE идет в интернет, vmbr2 перенаправляется в vlan vmbr4000
Log /var/log/messages
Jan 9 00:00:02 TarabKira rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="588" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
Jan 9 00:06:10 TarabKira kernel: [294007.528832] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 00:06:14 TarabKira kernel: [294011.622777] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 00:06:14 TarabKira kernel: [294011.623071] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 00:06:14 TarabKira kernel: [294011.623172] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
Jan 9 00:17:37 TarabKira kernel: [294694.616916] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 00:17:41 TarabKira kernel: [294698.226216] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 00:17:41 TarabKira kernel: [294698.226502] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 00:17:41 TarabKira kernel: [294698.226604] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
Jan 9 00:30:28 TarabKira kernel: [295465.420335] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 00:30:32 TarabKira kernel: [295469.117002] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 00:30:32 TarabKira kernel: [295469.117302] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 00:30:32 TarabKira kernel: [295469.117403] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
Jan 9 00:37:31 TarabKira kernel: [295888.581183] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 00:37:35 TarabKira kernel: [295892.728702] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 00:37:35 TarabKira kernel: [295892.728950] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 00:37:35 TarabKira kernel: [295892.729053] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
Jan 9 00:46:08 TarabKira kernel: [296405.436264] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 00:46:12 TarabKira kernel: [296409.495098] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 00:46:12 TarabKira kernel: [296409.495416] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 00:46:12 TarabKira kernel: [296409.495517] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
Jan 9 00:54:57 TarabKira kernel: [296934.583042] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 00:55:01 TarabKira kernel: [296938.678079] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 00:55:01 TarabKira kernel: [296938.678357] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 00:55:01 TarabKira kernel: [296938.678458] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
Jan 9 01:19:54 TarabKira kernel: [298431.641698] vmbr4000: port 1(enp0s31f6.4000) entered disabled state
Jan 9 01:19:58 TarabKira kernel: [298435.717802] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan 9 01:19:58 TarabKira kernel: [298435.718090] vmbr4000: port 1(enp0s31f6.4000) entered blocking state
Jan 9 01:19:58 TarabKira kernel: [298435.718191] vmbr4000: port 1(enp0s31f6.4000) entered forwarding state
незнаю почему здесь показывает e1000e, когда стоит virtio brctl show vmbr4000:
bridge name bridge id STP enabled interfaces
vmbr4000 8000.901b0eaba507 no enp0s31f6.4000
Какие советы можете дать? Спасибо!