Cumulus Networks Conversion Guide
Cumulus Networks Conversion Guide
Cumulus Networks
cumulusnetworks.com 2
Defining a Switch Port
Cumulus Linux
cumulus@switch:~$ sudo vi /etc/network/interfaces
auto swp1
iface swp1
auto bridge
iface bridge
bridge-ports swp1
Cisco
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# switchport
cumulusnetworks.com 3
Adding an IP Address
Cumulus Linux
cumulus@switch:~$ sudo vi /etc/network/interfaces
auto swp1
iface swp1
address [ipv4-address/subnet-mask]
address [ipv6-address/subnet-mask]
Cisco
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# no switchport
switch(config-if)# ip address [ipv4-address/subnet-mask]
switch(config-if)# ipv6 address [ipv6-address/subnet-mask]
cumulusnetworks.com 4
Setting Speed, Duplex, MTU, and Auto-negotiation for an Interface
Cumulus Linux
cumulus@switch:~$ sudo vi /etc/network/interfaces
auto swp1
iface swp1
link-speed [speed]
link-duplex [full|half]
mtu [1500 - 9216]
link-autoneg [on|off]
Cisco
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# speed [speed]
switch(config-if)# duplex [full|half]
switch(config-if)# mtu [1500 - 9216]
switch(config-if)# [no] negotiate auto
cumulusnetworks.com 5
Configuring Trunks
cumulusnetworks.com 6
Pruning a Trunk
cumulusnetworks.com 7
Configuring Access Ports
auto swp2
iface swp2
bridge-access 200
cumulusnetworks.com 8
Changing the Native (Untagged) VLAN for a Single Trunk
cumulusnetworks.com 9
EtherChannels/Bonds
cumulusnetworks.com 10
EtherChannels/Bonds
cumulusnetworks.com 11
EtherChannels/Bonds
cumulusnetworks.com 12
Spanning Tree Configuration
Immediately bring an interface configured as an access or trunk port to the forwarding state.
cumulusnetworks.com 13
Spanning Tree Configuration
cumulusnetworks.com 14
Spanning Tree Configuration
Enables BPDU filter on a switch port, which filters BPDUs in both directions.
cumulusnetworks.com 15
Spanning Tree Configuration
Configure the port priority for an interface. The default for both operating systems is 128.
cumulusnetworks.com 16
Spanning Tree Configuration
Configure the switch's priority for a bridge/VLAN. The default for both operating systems is 32768.
cumulusnetworks.com 17
More Spanning Tree Info (Conversion Guide)
https://support.cumulusnetworks.com/hc/en-us/articles/206908397
Spanning Tree
Industry-standard Loop Prevention for L2
cumulusnetworks.com 18
Access Lists
cumulusnetworks.com 19
Block ICMP Echo Requests on the Specified Switch Port
Cumulus Linux
iptables -A FORWARD -j DROP -i swp1 -p icmp --icmp-type echo-request
Cisco
ip access-list extended block_icmp
deny icmp any any echo
interface g0/0
ip access-group block_icmp in
cumulusnetworks.com 20
Block SSH Traffic from the Specified Subnet (5.5.5.0/24)
Cumulus Linux
iptables -A INPUT -j DROP -p tcp -s 5.5.5.0/24 --dport 22
Cisco
ip access-list extended block_ssh
deny tcp 5.5.5.0 0.0.0.255 192.50.50.0 0.0.0.255 eq 22
interface g0/0
ip access-group block_ssh in
cumulusnetworks.com 21
Allow NTP Traffic to Transit the Switch (UDP Port 123)
Cumulus Linux
iptables -A FORWARD -j ACCEPT -p udp -s 192.168.1.0/24 --dport 123
Cisco
ip access-list extended allow_ntp
permit udp 192.168.1.0 0.0.0.255 any eq ntp
interface g0/0
ip access-group allow_ntp in
cumulusnetworks.com 22
Policing a Physical Interface
Cumulus Linux
-A FORWARD --in-interface swp1 -j POLICE --set-mode KB --set-rate 125000 --set-burst 2000
Output
cumulus@leaf1$ sudo cl-acltool -L ip | grep swp1
pkts bytes target prot opt in out source destination
0 0 POLICE all -- swp1 any anywhere anywhere POLICE mode:KB rate:125000 burst:2000
Cisco
policy-map sean
class class-default
police cir 1000000000 interface
TenGigabitEthernet1/13
service-policy input sean
cumulusnetworks.com 23
Policing DSCP Values
Cumulus Linux
-A FORWARD --in-interface swp2 -m dscp --dscp 10 -j POLICE --set-mode KB --set-rate 31250 --set-burst 2000
Output
cumulus@leaf1$ sudo cl-acltool -L ip | grep swp2
pkts bytes target prot opt in out source destination
0 0 POLICE all -- swp2 any anywhere anywhere DSCP match 0x0a POLICE mode:KB rate:31250 burst:2000
Cisco
class-map match-all dscp10
match dscp af11
!
policy-map sean2
class dscp10
police cir 250000000
!
interface TenGigabitEthernet1/14
service-policy input sean2
cumulusnetworks.com 24
Policing by Source Traffic
Cumulus Linux
-A FORWARD --in-interface swp3 -j POLICE --set-mode KB --set-rate 12500 --set-burst 2000 -s 3.3.3.0/24
Output
cumulus@leaf1$ sudo cl-acltool -L ip | grep swp3
pkts bytes target prot opt in out source destination
0 0 POLICE all -- swp3 any 3.3.3.0/24 anywhere POLICE mode:KB rate:12500 burst:2000
Cisco
access-list 100 permit ip 3.3.3.0 0.0.0.255 any
!
class-map match-all heller
match access-group 100
!
policy-map heller
class heller
police cir 100000000
!
interface TenGigabitEthernet1/15
service-policy input heller
cumulusnetworks.com 25
Time Zone Configuration
Cumulus Linux
cumulus@switch:~$ sudo tzconfg
cumulus@switch:~$ sudo hwclock
Cisco
switch# configure terminal
switch(config)# clock timezone PST -8 0
switch(config)# exit
switch# show clock
switch# copy running-config startup-config
cumulusnetworks.com 26
NTP
Cumulus Linux
cumulus@switch:~$ sudo vi /etc/ntp.conf
cumulus@switch:~$ ntpd –q
Cisco
Set NTP (e.g. to VDC 1)
switch# clock protocol ntp vdc 1
cumulusnetworks.com 27
Show Management Interface Current Configuration
Cumulus Linux
cumulus@switch:~$ ifquery eth0
Cisco
switch# show interface mgmt 0
cumulusnetworks.com 28
DHCP Relay
Cumulus Linux
cumulus@switch:~$ sudo vi /etc/default/isc-dhcp-relay
SERVERS="192.168.123.4"
INTERFACES="bridge swp4 swp5"
Cisco
switch# configure terminal switch(config)# ip dhcp relay
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# ip dhcp relay address 192.168.123.4
cumulusnetworks.com 29
CLI Basics
cumulusnetworks.com 30
CLI Basics
cumulusnetworks.com 32
CLI Basics
Reboot switch
cumulus@switch:~$ sudo reboot switch# reload
cumulusnetworks.com 33
Show ARP Table
Cumulus Linux
root@leaf01:~# arp –n
Address HWtype HWaddress Flags Mask Iface
10.2.0.254 ether 44:38:39:00:00:29 C eth0
169.254.1.2 ether 44:38:39:00:00:30 C peerlink.4094
169.254.0.1 ether 44:38:39:00:00:08 CM swp49
169.254.0.1 ether 44:38:39:00:00:14 CM swp50
Cisco
switch# show ip arp
IP ARP Table for context default
Total number of entries: 1
Address Age MAC Address Interface
90.10.10.2 00:03:11 000d.ece7.df7c Vlan900
cumulusnetworks.com 34
Configure SNMP (Net-SNMP)
Cumulus Linux
cumulus@switch:~$ sudo vi /etc/snmp/snmpd.conf
cumulus@switch:~$ sudo vi /etc/snmp/snmptrapd.conf
Cisco
switch# configure terminal
switch(config)# snmp-server host ip-address traps version 2c public
Detailed Info
https://docs.cumulusnetworks.com/display/DOCS/Monitoring+System+Hardware
cumulusnetworks.com 35
Bringing the Linux Revolution to Networking
§Thank You!
© 2016 Cumulus Networks. CUMULUS, the Cumulus Logo, CUMULUS NETWORKS, and the Rocket Turtle Logo (the “Marks”) are trademarks and service marks of
Cumulus Networks, Inc. in the U.S. and other countries. You are not permitted to use the Marks without the prior written consent of Cumulus Networks. 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. All other marks are used
under fair use or license from their respective owners.
cumulusnetworks.com 36