—-Default username password
user: cumulus
password: cumulus
Older than 4.1
- User name: cumulus
- Password: CumulusLinux!
–Creating a loopback
/etc/cumulus/ports.conf
8=loopback
Makes port 8 a loopback
cumulus@switch:~$ sudo systemctl restart switchd.service
Any changes to a .conf file requres the restart switchd.service
Restarting the switchd service causes all network ports to reset in addition to resetting the switch hardware configuration.
—Save changes
net pending
net commit
—? Context sensitive help
sudo nano ~/.inputrc
Unhash last like “?”
Logout
login
—-Change IP Addresses
cumulus@switch:~$ sudo vi /etc/network/interfaces
auto eth0
iface eth0
address ipv4-address/subnet-mask
gateway default-gateway-ip-address
Apply above persistent settings to eth0
cumulus@switch:~$ sudo ifup eth0
–VXLAN
Step 1. Set the hostname
net add hostname <hostname>
Step 1.
Create Loopback /32
net add loopback lo ip add 10.1.1.1/32
Step 2.
Create a L3 Interface to the Spine or Leaf.
net add interface swp1 ip address 1.1.1.1/30
Step3.
Create an OSPF Neighbour
net add ospf network 10.1.1.1/32 area 0
Step 4.
Configure the Spine and leaves
net add bgp autonomous-system 65000
net add bgp router-id 10.1.1.1
net add bgp neighbor 10.1.1.3 remote-as 65000
net add bgp neighbor 10.1.1.4 remote-as 65000
net add bgp neighbor 10.1.1.3 update-source lo
net add bgp neighbor 10.1.1.4 update-source lo
net add bgp neighbor l2vpn evpn neighbor 10.1.1.3 activate
net add bgp neighbor l2vpn evpn neighbor 10.1.1.4 activate
net add bgp l2vpn evpn neighbor 10.1.1.3 route-reflector-client
net add bgp l2vpn evpn neighbor 10.1.1.4 route-reflector-client
net add bgp l2vpen evpn advertise-all-vni
–Configure VXLAN
//net show evpn mac vni all
//net show bgp evpn vni
//net show bgp l2vpn evpn summary
//net show bridge macs
Performed on both leaf and spine, note only the access leaf switch needs the command
net add interface swp3 bridge access 10
net add vxlan vxlan10 vxlan id 10
net add vxlan vxlan10 vxlan local-tunnelip 10.1.1.3 ! Note this is a hidden command in the CLI
net add vxlan vxlan10 bridge access 10
net add interface swp3 bridge access 10
net add vxlan vni200 bridge learning off
—-Inter VXLAN Routing.
Create the VLAN interfaces for each of the leaf switches
// LEAF1
cumulus@LEAF1:~$ net add vlan 10 ip address 10.1.1.254/24
cumulus@LEAF1:~$ net add vlan 30 ip address 30.1.1.254/24
// LEAF2
cumulus@LEAF3:~$ net add vlan 10 ip address 10.1.1.254/24
cumulus@LEAF3:~$ net add vlan 30 ip address 30.1.1.254/24
–EXAMPLE–
net add vxlan VXLAN10 vxlan id 10
net add vxlan VXLAN20 vxlan id 20
net add vxlan VXLAN10 vxlan local-tunnelip 10.1.1.4
net add vxlan VXLAN20 vxlan local-tunnelip 10.1.1.4
net add vxlan VXLAN10 bridge access 10
net add vxlan VXLAN20 bridge access 20
net add interface swp6 bridge access 10
–Delete configuration before commit
net abort
–show running config
net show config
—Changing ip addresses manually
sudo ifdown lo
/etc/network/interfaces
sudo ifup lo