Bonjour,
J'utilise systemd pour configurer le réseaux sur le serveur.
Config ci dessous:
Mais pour une raison que je ne connais pas, le bond est en mode "load balancing":
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 cat /etc/systemd/network/bond0.netdev # bond0.netdev file # A bond device is an aggregation of all its slave devices [NetDev] Description=Agregation of all physical network card Name=bond0 Kind=bond [Bond] Mode=802.3ad # Kernel Bonding Driver Options => mode 802.3ad TransmitHashPolicy=layer2+3 # Kernel Bonding Driver Options => xmit_hash_policy # lacp_rate slow => LACPDUs every 30 seconds # lacp_rate fast => LACPDUs every 1 seconds LACPTransmitRate=fast # Kernel Bonding Driver Options => lacp_rate AdSelect=count # Kernel Bonding Driver Options => ad_select MinLinks=0 # Kernel Bonding Driver Options => min_links MIIMonitorSec=1s
Comment prendre en compte le mode que je définis?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v5.10.0-13-amd64 Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 1000 Up Delay (ms): 0 Down Delay (ms): 0 Peer Notification Delay (ms): 0 Slave Interface: enp6s0 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 2c:4d:54:44:4e:e8 Slave queue ID: 0 Slave Interface: enp5s0 MII Status: down Speed: Unknown Duplex: Unknown Link Failure Count: 0 Permanent HW addr: 2c:4d:54:44:4e:e7 Slave queue ID: 0
Cordialement,
Pierre
Partager