Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] network bonding in gentoo/openrc
Date: Mon, 18 Jan 2021 06:33:46
Message-Id: f066f459-22c1-36b8-5a24-b16636f1a9c0@iinet.net.au
1 Hi all,
2
3     how can I add/make active an interface that's to be part of a bonded
4 connection without rebooting/restarting the bond?  I have two interfaces
5 currently running in ieee802.3ad mode.  Usually I restart the interface
6 or reboot when adding an interface but in this case I don't want to risk
7 a glitch.  I did it months ago and now cant remember!  I don't think
8 ifenslave is used anymore.
9
10 BillK
11
12
13 ** I want to add enp0s21f0u2
14
15 moriah ~ # cat /etc/conf.d/net
16
17 modules="iproute2 dhcpcd"
18
19 config_enp0s21f0u1="dhcp"
20 dhcp_enp0s21f0u1="nodns nontp"
21
22 # bond0
23 config_enp2s0="null"
24 config_enp3s0="null"
25 config_enp0s21f0u2="null"
26 config_bond0="null"
27 slaves_bond0="enp2s0 enp3s0 enp0s21f0u2"
28 mode_bond0="802.3ad"
29 vlans_bond0="40 41 44 46 49 73 77 78 79"
30 # voip
31 config_bond0_40="192.168.40.1/24"
32 # wifi
33 config_bond0_41="192.168.41.1/24"
34 # LAN
35 config_bond0_44="192.168.44.1/24"
36 # media
37 config_bond0_46="192.168.46.1/24"
38 # vm
39 config_bond0_49="192.168.49.1/24"
40 # mfs
41 config_bond0_72="192.168.72.1/24"
42 # iot
43 config_bond0_73="192.168.73.1/24"
44 # san
45 config_bond0_77="192.168.77.1/24"
46 # ext
47 config_bond0_78="192.168.78.1/24"
48 # infra
49 config_bond0_79="192.168.79.1/24"

Replies

Subject Author
Re: [gentoo-user] network bonding in gentoo/openrc Grant Taylor <gtaylor@×××××××××××××××××××××.net>