]> git.proxmox.com Git - mirror_ifupdown2.git/blame - ifupdown2/docs/examples/interfaces
Fixed new file addition breakage with 0b762139
[mirror_ifupdown2.git] / ifupdown2 / docs / examples / interfaces
CommitLineData
2c8c4ce7
RP
1# This file describes the network interfaces available on your system
2# and how to activate them. For more information, see interfaces(5).
3
4# The loopback network interface
5auto lo
6iface lo inet loopback
7
8# The primary network interface
9auto eth0
10iface eth0 inet dhcp
11
12#source /etc/network/interfaces.d/template.bridges
13
14# swp interface
15auto swp30
16iface swp30
17 address 12.0.0.4/24
18 address 12.0.0.6/24
19 address 2000:1000:1000:1000:3::5/128
20 mtu 1600
21 alias "test network"
22 link-duplex full
23 link-speed 1000
24 link-autoneg off
25
26# bond interface
27auto bond3
28iface bond3 inet static
29 address 100.0.0.4/16
30 bond-slaves swp1 swp2
31 bond-mode 802.3ad
32 bond-miimon 100
33 bond-use-carrier 1
34 bond-lacp-rate 1
35 bond-min-links 1
36 bond-xmit_hash_policy layer3+4
37
38# bond interface
39auto bond4
40iface bond4 inet static
41 address 100.0.0.6/16
42 bond-slaves swp3 swp4
43 bond-mode 802.3ad
44 bond-miimon 100
45 bond-use-carrier 1
46 bond-lacp-rate 1
47 bond-min-links 1
48 bond-xmit_hash_policy layer3+4
49
50# bond interface
51auto br0
52iface br0
53 address 12.0.0.4/24
54 address 12.0.0.6/24
55 address 2000:1000:1000:1000:3::5/128
56 bridge-ports bond3 bond4 swp5 swp8
57 bridge-stp on
58
59# vlan interface on bond
60auto bond3.2000
61iface bond3.2000 inet static
62 address 100.1.0.4/16
63
64auto bond4.2000
65iface bond4.2000 inet static
66 address 100.1.0.6/16
67
68auto br2000
69iface br2000 inet6 static
70 address 2001:dad:beef::4/64
71 bridge-ports bond3.2000 bond4.2000 swp5.2000
72 bridge-stp on
73 mstpctl-treeprio 61440
74 mstpctl-portp2p bond3.2000=yes bond4.2000=yes