If you are using the current version of Cumulus Linux, the content on this page 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.

Comparing NCLU and vtysh Commands

Using NCLU is the primary way to configure routing in Cumulus Linux. However, an alternative exists in vtysh modal CLI. The available commands are as follows:

Comparing vtysh and NCLU Commands

The following table compares the various FRRouting commands with their Cumulus Linux NCLU counterparts.

ActionNCLU CommandsFRRouting Commands
Display the routing tablecumulus@switch:~$ net show routeswitch# show ip route
Create a new neighborcumulus@switch:~$ net add bgp autonomous-system 65002
cumulus@switch:~$ net add bgp neighbor 14.0.0.22
switch(config)# router bgp 65002
switch(config-router)# neighbor 14.0.0.22
Redistribute routing information from static route entries into RIP tablescumulus@switch:~$ net add bgp redistribute staticswitch(config)# router bgp 65002
switch(config-router)# redistribute static
Define a static routecumulus@switch:~$ net add routing route 155.1.2.20/24 bridge 45switch(config)# ip route 155.1.2.20/24 bridge 45
Configure an IPv6 addresscumulus@switch:~$ net add interface swp3 ipv6 address 3002:2123:1234:1abc::21/64switch(config)# int swp3
switch(config-if)# ipv6 address 3002:2123:1234:1abc::21/64
Enable topology checking (PTM)cumulus@switch:~$ net add routing ptm-enableswitch(config)# ptm-enable
Configure MTU in IPv6 network discovery for an interfacecumulus@switch:~$ sudo cl-ra interface swp3 set mtu 9000switch(config)# int swp3
switch(config-if)# ipv6 nd mtu 9000
Set the OSPF interface prioritycumulus@switch:~$ net add interface swp3 ospf6 priority 120switch(config)# int swp3
switch(config-if)# ip ospf6 priority 120
Configure timing for OSPF SPF calculationscumulus@switch:~$ net add ospf6 timers throttle spf 40 50 60switch(config)# router ospf6
switch(config-ospf6)# timer throttle spf 40 50 60
Configure the OSPF Hello packet interval in number of seconds for an interfacecumulus@switch:~$ net add interface swp4 ospf6 hello-interval 60switch(config)# int swp4
switch(config-if)# ipv6 ospf6 hello-interval 60
Display BGP informationcumulus@switch:~$ net show bgp summaryswitch# show ip bgp summary
Display OSPF debugging statuscumulus@switch:~$ net show debugsswitch# show debugging ospf