Cumulus Linux Cheatsheet
#
Cumulus Linux is a Linux-based network operating system for network switches, providing flexibility, scalability, and ease of integration with various network management tools. This cheatsheet covers essential commands and options for managing and configuring Cumulus Linux.
System Commands
#
Command/Option | Example | Description |
---|
show version | show version | Display the current system version |
show interfaces | show interfaces | Show information about network interfaces |
show ip | show ip | Display IP address configuration |
show running-config | show running-config | Show the current running configuration |
write memory | write memory | Save the running configuration to startup |
Network Configuration
#
Command/Option | Example | Description |
---|
net show | net show | Display network configuration |
net add | net add interface eth0 address 192.168.1.1/24 | Add IP address to an interface |
net del | net del interface eth0 address 192.168.1.1 | Remove IP address from an interface |
net route | net route add 10.0.0.0/24 via 192.168.1.1 | Add a static route |
net route del | net route del 10.0.0.0/24 | Remove a static route |
VLAN Configuration
#
Command/Option | Example | Description |
---|
vlan | vlan add 10 | Add a VLAN with ID 10 |
vlan show | vlan show | Show VLAN configuration |
vlan del | vlan del 10 | Remove VLAN with ID 10 |
Interface Configuration
#
Command/Option | Example | Description |
---|
interface | interface ethernet0 | Enter interface configuration mode |
interface ethernet0 | interface ethernet0 | Configure Ethernet interface ethernet0 |
ip address | ip address 192.168.1.1/24 | Set IP address for the interface |
no shutdown | no shutdown | Enable the interface |
shutdown | shutdown | Disable the interface |
Routing Configuration
#
Command/Option | Example | Description |
---|
router ospf | router ospf 1 | Enter OSPF routing configuration mode |
network | network 192.168.1.0/24 area 0 | Configure OSPF network statement |
router bgp | router bgp 65001 | Enter BGP routing configuration mode |
neighbor | neighbor 192.168.1.2 remote-as 65002 | Configure BGP neighbor |
Troubleshooting
#
Command/Option | Example | Description |
---|
ping | ping 8.8.8.8 | Test connectivity to a remote host |
traceroute | traceroute 8.8.8.8 | Trace the route to a remote host |
show log | show log | Display system log |
debug | debug | Enter debug mode for diagnostics |
Management
#
Command/Option | Example | Description |
---|
clish | clish | Enter the Cumulus Linux CLI |
cumulus-config | cumulus-config | Enter the configuration management tool |
clog | clog | View the Cumulus Linux log |
This cheatsheet covers key commands and configurations for managing and operating Cumulus Linux. For detailed information on specific commands and options, refer to the Cumulus Linux documentation.