]> git.proxmox.com Git - mirror_ifupdown2.git/blob - docs/examples/interfaces
prefix ethtool attributes with "link-" to be compatible with
[mirror_ifupdown2.git] / docs / examples / interfaces
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
5 auto lo
6 iface lo inet loopback
7
8 # The primary network interface
9 auto eth0
10 iface eth0 inet dhcp
11
12 #source /etc/network/interfaces.d/template.bridges
13
14 # swp interface
15 auto swp30
16 iface 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
27 auto bond3
28 iface 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
39 auto bond4
40 iface 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
51 auto br0
52 iface 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
60 auto bond3.2000
61 iface bond3.2000 inet static
62 address 100.1.0.4/16
63
64 auto bond4.2000
65 iface bond4.2000 inet static
66 address 100.1.0.6/16
67
68 auto br2000
69 iface 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