mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
move ifupdown2/* .
ifupdown2 code was one level deeper because ifupdown2 initially had ifupdown2 and ifupdown2-addons as two separate packages. Since they were combined into one package, it makes sense to move all combined code under the top level directory Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
87
docs/examples/vlan_aware_bridges/interfaces.with_clag
Normal file
87
docs/examples/vlan_aware_bridges/interfaces.with_clag
Normal file
@@ -0,0 +1,87 @@
|
||||
#
|
||||
# vlan-aware bridge with clag example
|
||||
#
|
||||
#
|
||||
# 'bridge' is a vlan aware bridge with ports:
|
||||
# 'peer-bond spine-bond glob host-bond-0[1-2]'
|
||||
#
|
||||
# All ports inherit 'vlans 10 20-23' from the 'bridge-vids' attribute
|
||||
# under the bridge
|
||||
#
|
||||
# native vlan is by default 1
|
||||
#
|
||||
# 'bridge-vids' attribute is used to declare vlans.
|
||||
# 'bridge-pvid' attribute is used to specify native vlans if other than 1
|
||||
# 'bridge-access' attribute is used to declare access port
|
||||
#
|
||||
# 'spine-bond host-bond-0[1-2]' are clag bonds and will be considered by
|
||||
# clagd for dual connection. clag-id has to be a non-zero and has to match
|
||||
# across the peer switches for the bonds to become dual connected.
|
||||
|
||||
# spine bond
|
||||
#
|
||||
auto spine-bond
|
||||
iface spine-bond
|
||||
bond-slaves glob swp19-22
|
||||
bond-mode 802.3ad
|
||||
bond-miimon 100
|
||||
bond-use-carrier 1
|
||||
bond-lacp-rate 1
|
||||
bond-min-links 1
|
||||
bond-xmit-hash-policy layer3+4
|
||||
clag-id 100
|
||||
|
||||
# mlag bond and peer interface
|
||||
#
|
||||
auto peer-bond
|
||||
iface peer-bond
|
||||
bond-slaves glob swp23-24
|
||||
bond-mode 802.3ad
|
||||
bond-miimon 100
|
||||
bond-use-carrier 1
|
||||
bond-lacp-rate 1
|
||||
bond-min-links 1
|
||||
bond-xmit-hash-policy layer3+4
|
||||
|
||||
# sub-interface for clagd communication
|
||||
#
|
||||
auto peer-bond.4094
|
||||
iface peer-bond.4094
|
||||
address 169.254.0.1/30
|
||||
clagd-peer-ip 169.254.0.2
|
||||
clagd-sys-mac 44:38:39:ff:00:01
|
||||
#clagd-priority 4096
|
||||
# Please see man clagd for more options
|
||||
# clagd-args --peerTimeout 30
|
||||
|
||||
# host ports
|
||||
#
|
||||
auto host-bond-01
|
||||
iface host-bond-01
|
||||
bond-slaves swp1
|
||||
bond-mode 802.3ad
|
||||
bond-miimon 100
|
||||
bond-use-carrier 1
|
||||
bond-lacp-rate 1
|
||||
bond-min-links 1
|
||||
bond-xmit-hash-policy layer3+4
|
||||
clag-id 1
|
||||
|
||||
auto host-bond-02
|
||||
iface host-bond-02
|
||||
bond-slaves swp2
|
||||
bond-mode 802.3ad
|
||||
bond-miimon 100
|
||||
bond-use-carrier 1
|
||||
bond-lacp-rate 1
|
||||
bond-min-links 1
|
||||
bond-xmit-hash-policy layer3+4
|
||||
clag-id 2
|
||||
|
||||
# the bridge
|
||||
auto bridge
|
||||
iface bridge
|
||||
bridge-vlan-aware yes
|
||||
bridge-ports peer-bond spine-bond glob host-bond-0[1-2]
|
||||
bridge-stp on
|
||||
bridge-vids 10 20-23
|
Reference in New Issue
Block a user