]> git.proxmox.com Git - mirror_ifupdown2.git/blob - ifupdown2/docs/examples/vlan_aware_bridges/interfaces.with_clag
Merge 'vlan filtering bridge + vxlan + mlag + vrr' support from internal
[mirror_ifupdown2.git] / ifupdown2 / docs / examples / vlan_aware_bridges / interfaces.with_clag
1 #
2 # vlan-aware bridge with clag example
3 #
4 #
5 # 'bridge' is a vlan aware bridge with ports:
6 # 'peer-bond spine-bond glob host-bond-0[1-2]'
7 #
8 # All ports inherit 'vlans 10 20-23' from the 'bridge-vids' attribute
9 # under the bridge
10 #
11 # native vlan is by default 1
12 #
13 # 'bridge-vids' attribute is used to declare vlans.
14 # 'bridge-pvid' attribute is used to specify native vlans if other than 1
15 # 'bridge-access' attribute is used to declare access port
16 #
17 # 'spine-bond host-bond-0[1-2]' are clag bonds and will be considered by
18 # clagd for dual connection. clag-id has to be a non-zero and has to match
19 # across the peer switches for the bonds to become dual connected.
20
21 # spine bond
22 #
23 auto spine-bond
24 iface spine-bond
25 bond-slaves glob swp19-22
26 bond-mode 802.3ad
27 bond-miimon 100
28 bond-use-carrier 1
29 bond-lacp-rate 1
30 bond-min-links 1
31 bond-xmit-hash-policy layer3+4
32 clag-id 100
33
34 # mlag bond and peer interface
35 #
36 auto peer-bond
37 iface peer-bond
38 bond-slaves glob swp23-24
39 bond-mode 802.3ad
40 bond-miimon 100
41 bond-use-carrier 1
42 bond-lacp-rate 1
43 bond-min-links 1
44 bond-xmit-hash-policy layer3+4
45
46 # sub-interface for clagd communication
47 #
48 auto peer-bond.4094
49 iface peer-bond.4094
50 address 169.254.0.1/30
51 clagd-peer-ip 169.254.0.2
52 clagd-sys-mac 44:38:39:ff:00:01
53 #clagd-priority 4096
54 # Please see man clagd for more options
55 # clagd-args --peerTimeout 30
56
57 # host ports
58 #
59 auto host-bond-01
60 iface host-bond-01
61 bond-slaves swp1
62 bond-mode 802.3ad
63 bond-miimon 100
64 bond-use-carrier 1
65 bond-lacp-rate 1
66 bond-min-links 1
67 bond-xmit-hash-policy layer3+4
68 clag-id 1
69
70 auto host-bond-02
71 iface host-bond-02
72 bond-slaves swp2
73 bond-mode 802.3ad
74 bond-miimon 100
75 bond-use-carrier 1
76 bond-lacp-rate 1
77 bond-min-links 1
78 bond-xmit-hash-policy layer3+4
79 clag-id 2
80
81 # the bridge
82 auto bridge
83 iface bridge
84 bridge-vlan-aware yes
85 bridge-ports peer-bond spine-bond glob host-bond-0[1-2]
86 bridge-stp on
87 bridge-vids 10 20-23