File: two_hotplug_ethernet

package info (click to toggle)
ifenslave 2.14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 100 kB
  • sloc: sh: 204; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
A configuration with two hotplug ethernet (wire) interfaces.

-----8<----------8<----------8<----------8<----------8<-----

auto bond0
iface bond0 inet dhcp
	bond-slaves none
	bond-mode 1
	bond-miimon 100

allow-hotplug eth0
iface eth0 inet manual
	bond-master bond0
	bond-primary eth0 eth1

allow-hotplug eth1
iface eth1 inet manual
	bond-master bond0
	bond-primary eth0 eth1

-----8<----------8<----------8<----------8<----------8<-----

The "auto bond0" stanza is required, else bond0 won't bring up.