Cumulus Linux 2 - Cumulus Networks · GRUB boot loader ext4 file system with LVM • /boot...
Transcript of Cumulus Linux 2 - Cumulus Networks · GRUB boot loader ext4 file system with LVM • /boot...
v
Cumulus® Linux® 2.1
What’s New and Different from CL 2.0.x
Last Updated: August 4, 2014
cumulusnetworks.com 2
•ifupdown2 = new streamlined syntax for configs
•ethtool enhanced to deprecate cl-sfputil
•PTM changes and enhancements
•New x86 platform support
•Spanning tree protocol (STP) support for VRR
Major Changes from Cumulus Linux 2.0.x to 2.1
ifupdown2
Improvement to ifupdown package in Debian
Streamlined syntax in /etc/network/interfaces
New interface/sub-interface dependency awareness
New glob substitution
New * option for source
Old ifupdown syntax still works
For backwards compatibility
New ifupdown2 syntax preferred – less typing
cumulusnetworks.com 3
Changes in /etc/network/interfaces
Streamlined syntax
lo
swp• Definition, link speed, duplex, autonegotiate
bridge
• VLANs/sub-interfaces, STP, glob
bond
• Definition, glob
cumulusnetworks.com 4
lo (Loopback)
cumulusnetworks.com 5
Prior to CL 2.1 CL 2.1 and Later
auto lo
iface lo inet loopback
auto lo:1
iface lo:1 inet static
address 10.1.1.1/32
auto lo:2
iface lo:2 inet static
address 10.2.2.2/32
auto lo
iface lo inet loopback
address 10.1.1.1/32
address 10.2.2.2/32
Do not explicitly define loopback interfaces any more;
use the default lo
Switch Port (swp) – Definition
cumulusnetworks.com 6
Prior to CL 2.1 CL 2.1 and Later
auto swp19
iface swp19 inet manual
post-up ip link set $IFACE alias customerA
up link set $IFACE up
down link set $IFACE down
auto swp19
iface swp19
alias customerA
No more inet, up, or down verses;
simplified alias
alias shows up in ip linkcumulus@switch:~$ ip link show dev swp193: swp19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500
link/ether 44:38:39:00:03:c1 brd ff:ff:ff:ff:ff:ffalias customerA
Switch Port (swp) – Link Speed, Duplex, Autonegotiate
cumulusnetworks.com 7
Prior to CL 2.1 CL 2.1 and Later
auto swp1
iface swp1 inet static
address 10.1.1.1/24
mtu 9000
pre-up /sbin/ethtool -s $IFACE speed 1000 duplex half autoneg off
up ip link set $IFACE up
down ip link set $IFACE down
auto swp1
iface swp1
address 10.1.1.1/24
mtu 9000
link-speed 1000
link-duplex half
link-autoneg off
New link-* commands
Bridge
cumulusnetworks.com 8
Prior to CL 2.1 CL 2.1 and Later auto swp19
iface swp19 inet manual
up link set $IFACE up
down link set $IFACE down
auto swp19.100
iface swp19.100 inet manual
up link set $IFACE up
down link set $IFACE down
auto swp19.200
iface swp19.200 inet manual
up link set $IFACE up
down link set $IFACE down
auto vlan100
iface vlan100 inet manual
bridge_ports swp19.100
mstpctl_stp on
auto vlan200
iface vlan200 inet manual
mstpctl_ports swp19.200
mstpctl_stp on
auto swp19
iface swp19
auto vlan100
iface vlan100
bridge-ports swp19.100
bridge-stp on
auto vlan200
iface vlan200
bridge-ports swp19.200
bridge-stp onNo more inet, up, or down verses
No need to define sub-interfacesUse bridge-ports, bridge-stp
(note – instead of _)
Bridge – glob
cumulusnetworks.com 9
Long Form Combined
auto swp3
iface swp3
auto swp4
iface swp4
auto swp5
iface swp5
auto vlan100
iface vlan100
bridge-ports swp3.100 swp4.100 swp5.100
auto swp3
iface swp3
auto swp4
iface swp4
auto swp5
iface swp5
auto vlan100
iface vlan100
bridge-ports glob swp3-5.100
Use glob
regular
expression
Bond
cumulusnetworks.com 10
Prior to CL 2.1 CL 2.1 and Later auto bond0
iface bond0 inet manual
up link set $IFACE up
down link set $IFACE down
bond-slaves swp3 swp4
bond-miimon 100
bond-min-links 1
bond-mode 802.3ad
bond-xmit_hash_policy layer3+4
bond-lacp-rate 1
auto swp3
iface swp3
auto swp4
iface swp4
auto bond0
iface bond0
bond-slaves swp3 swp4
bond-miimon 100
bond-min-links 1
bond-mode 802.3ad
bond-xmit-hash-policy layer3+4
bond-lacp-rate 1
auto swp3
iface swp3 inet manual
up link set $IFACE up
down link set $IFACE down
auto swp4
iface swp4 inet manual
up link set $IFACE up
down link set $IFACE down
No inet, up, or down verses;
still need to first define bond members
Bond – glob
cumulusnetworks.com 11
Long Form Combined auto swp3
iface swp3
auto swp4
iface swp4
auto bond0
iface bond0
bond-slaves swp3 swp4
bond-miimon 100
bond-min-links 1
bond-mode 802.3ad
bond-xmit-hash-policy layer3+4
bond-lacp-rate 1
auto swp3
iface swp3
auto swp4
iface swp4
auto bond0
iface bond0
bond-slaves glob swp3-4
bond-miimon 100
bond-min-links 1
bond-mode 802.3ad
bond-xmit-hash-policy layer3+4
bond-lacp-rate 1
Use glob
regular
expression
New * Option for source
cumulusnetworks.com 12
/etc/network/interfaces /etc/network/ansible/swp1
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
source /etc/network/ansible/*
/etc/network/ansible/swp2
auto swp1
iface swp1
link-speed 1000
auto swp2
iface swp2
link-speed 1000
ethtool Change
cumulusnetworks.com 13
Prior to CL 2.1 CL 2.1 and Later
sudo cl-sfputil -d | egrep'(swp|RXPower :|TXPower:|EthernetComplianceCode)'
sudo ethtool -m | egrep '(swp|RXPower :|TXPower :|EthernetComplianceCode)'
Output (same)
swp1: SFP detected
EthernetComplianceCodes : 1000BASE-LX
RXPower : -10.4479dBm
TXPower : 18.0409dBm///
PTM Changes and Enhancements
Changes New script/topology.dot file location
• /etc/ptm.d instead of /etc/cumulus/ptm.d
Enhancements New sample topology.dot file
• /usr/share/doc/ptm/examples Ability to re-read config file without restarting ptmd New PTM get commands
• get-status <detail>, get-debug <bfd> | <lldp> New support for BFD Notifications now in CSV format
cumulusnetworks.com 14
x86 Platform Support
Supported hardware
Dell S6000-ON – first supported x86 switch
Differences from PowerPC-based switches
GRUB boot loader
ext4 file system with LVM
• /boot partition
• Each image slot is a logical volume, SYSROOT1 and SYSROOT2
• Grow and shrink logical volumes using LVM
• No overlay file system
cumulusnetworks.com 15
Virtual Router Redundancy (VRR) – STP support starting in CL 2.1
Enabling spanning tree protocol (STP) for VRR
Enable bpdufilter on peer link
Enable bpduguard on host-facing ports
cumulusnetworks.com 16
Active
Host
Router 1 Router 2
Backup
peer link
L3
L2
© 2014 Cumulus Networks. Cumulus Networks, the Cumulus Networks Logo, and Cumulus Linux are trademarks or registered trademarks of Cumulus Networks, Inc. or its
affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The registered trademark Linux® is used pursuant to a sublicense from LMI,
the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
Thank You!
cumulusnetworks.com 17