This documentation is for an older version of the software. If you are using the current version of Cumulus Linux, this content may not be up to date. The current version of the documentation is available here. If you are redirected to the main page of the user guide, then this page may have been renamed; please search for it there.


This chapter discusses routing on switches running Cumulus RMP.


  • ip route

Configuring Static Routing

The ip route command allows manipulating the kernel routing table directly from the Linux shell. See man ip(8) for details.

To display the routing table:

cumulus@switch:~$ ip route show
default via dev eth0
default via dev eth0 dev eth0  proto kernel  scope link  src dev swp2  proto kernel  scope link  src dev swp26  proto kernel  scope link  src 

Persistently Adding a Static Route

A static route can be persistently added by adding up ip route add .. into /etc/network/interfaces. For example:

cumulus@switch:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5), ifup(8)
# Please see /usr/share/doc/python-ifupdown2/examples/ for examples

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

auto swp2
iface swp2 inet static
   up ip route add via

auto swp26
iface swp26 inet static

Configuration Files

  • /etc/network/interfaces

Useful Links