1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00
Julien Fortin d486dd0df0 ifupdown2 2.0.0 release
This is a major update coming all at once from master-next branch
master-next branch was started with --orphan option which is basically a new
branch without history.

The major changes are:
    - repackaging
    - cleanup the directory tree
    - rewritte setup.py to allow install from deb file or pypi (pip install)
    - add a Makefile to make things (like building a deb) easier
    - review all debian files

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
2018-12-13 11:43:32 -08:00

88 lines
2.1 KiB
Plaintext

#
# 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 yes
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 yes
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 yes
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 yes
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