Cumulus Linux vs Cisco NX-OS: Interface Show Commands

Follow

Cumulus Linux includes a number of interface show commands to troubleshoot your switch. Since Cumulus Linux is Linux, the same tried and true Linux commands work in the same way. In addition, Cumulus Linux has a module called netshow to show even more relevant information in a single command.

{{table_of_contents}}

Showing Layer 1/2 Interface Status

Network OS Output
Cumulus Linux Show current interface state for all switch ports:
cumulus@switch:~$ ip -br link show
lo           UNKNOWN  00:00:00:00:00:00  <LOOPBACK,UP,LOWER_UP>
eth0         UP       aa:aa:aa:00:00:01  <BROADCAST,MULTICAST,UP,LOWER_UP>
swp1         UP       aa:aa:aa:00:00:02  <BROADCAST,MULTICAST,UP,LOWER_UP>
swp2         DOWN     aa:aa:aa:00:00:03  <BROADCAST,MULTICAST>
...
  Show current interface state for all switch ports that are up:
cumulus@switch:~$ ip -br link show up
Cisco Nexus 3000 Series Show current interface state for all switch ports:
switch# show interface brief
--------------------------------------------------------------------------------
Port   VRF          Status IP Address                              Speed    MTU
--------------------------------------------------------------------------------
mgmt0  --           up     192.168.0.1                             1000     1500
--------------------------------------------------------------------------------
Ethernet      VLAN   Type Mode   Status  Reason                   Speed     Port
Interface                                                                   Ch #
--------------------------------------------------------------------------------
Eth1/1        1      eth  access up      none                       1000(D) --
Eth1/2        --     eth  routed down    Administratively down      auto(D) --
...
  Another way to show current interface state for all switch ports that are up:
switch# show interface brief | include up

Showing IP Address Information

IP addresses information for interfaces can be seen a variety of ways in Cumulus Linux. One way is to use the ip addr command.

Network OS Output
Cumulus Linux Show current IP addresses for all ports (includes ports with or without an IP address):
cumulus@switch:~$ ip -br addr show up
lo           UNKNOWN  127.0.0.1/8 10.2.1.1/32 ::1/128
eth0         UP       192.168.0.11/24 fe80::6e64:1aff:fe00:4f9b/64
swp1s0       UP       10.2.1.1/32 fe80::6e64:1aff:fe00:4f9c/64
swp1s1       UP       10.2.1.1/32 fe80::6e64:1aff:fe00:4f9c/64
...
  Show current interface state for all switch ports that are up:
cumulus@switch:~$ ip -br addr show up
Cisco Nexus 3000 Series Show current IP addresses for all ports (this includes only ports with an IP address):
switch# sh ip[v6] interface brief
IP Interface Status for VRF "default"(1)
Interface            IP Address      Interface Status
eth1/1               192.168.0.1     protocol-up/link-up/admin-up
eth1/2               10.10.10.10     protocol-up/link-up/admin-up
...
  Another way to show current interface state for all switch ports that are up:
switch# show ip interface brief | include up

Showing LLDP Neighbor Information

LLDP is used as a way to gather and show information on neighbors and the ports they are connected through. This is very similar CDP in a Cisco Nexus 3000.

Network OS Output
Cumulus Linux Show LLDP neighbors:
cumulus@switch:~$ sudo lldpcli show neighbors [summary|detail]
-----------------------------------------------------------------------------
LLDP neighbors:
-----------------------------------------------------------------------------
Interface:    eth0, via: LLDP
  Chassis:
    ChassisID:    mac aa:cc:bb:00:00:00
    SysName:      switch2
  Port:
    PortID:       ifname swp29
    PortDescr:    swp29
-----------------------------------------------------------------------------
Interface:    swp1, via: LLDP
  Chassis:
    ChassisID:    mac aa:aa:bb:00:00:00
    SysName:      switch3
  Port:
    PortID:       ifname swp49
    PortDescr:    swp49
...
Cisco Nexus 3000 Series Show current CDP neighbors:
switch# show cdp neighbors  
Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge 
                  S - Switch, H - Host, I - IGMP, r - Repeater, 
                  V - VoIP-Phone, D - Remotely-Managed-Device, 
                  s - Supports-STP-Dispute 
 
 
Device ID              Local Intrfce   Hldtme  Capability  Platform      Port ID 
 
d13-dist-1               mgmt0           148     S I      WS-C2960-24TC  Fas0/9 
n5k(FLC12080012)         Eth1/1          8       S I s    N5K-C5020P-BA  Eth1/5 
...

netshow

netshow is a tool that was created by Cumulus Networks, and is used to show interface state, interface IP, LLDP neighbors, STP information for the bridge, bond members, and system information all in one place.

cumulus@switch:~$ sudo netshow counters
    Port    Speed             Ucast    Mcast    Bcast    Errors
--  ------  ---------  ---  -------  -------  -------  --------
UP  swp1    1G(RJ-45)  Rx:       66    19661      563         0
                       Tx:       63     1610      563         0
UP  swp2    1G(RJ-45)  Rx:      595    20609        0         0
                       Tx:      595      655        0         0
UP  swp3    1G(RJ-45)  Rx:        0    10152        0         0
                       Tx:        0      647        0         0
cumulus@switch:~$ sudo netshow interface
    Name        Speed      Mtu    Mode       Summary
--  ----------  ---------  -----  ---------  -------------------------------------
UP  lo          N/A        16436  Loopback   IP: 127.0.0.1/8, 10.2.1.2/32, ::1/128
UP  eth0        1G         1500   Mgmt       IP: 192.168.0.12/24 (DHCP)
UP  swp1        1G(RJ-45)  1500   BondMem    Master: bond0(UP)
UP  swp2        1G(RJ-45)  1500   BondMem    Master: bond0(UP)
UP  swp3        1G(RJ-45)  1500   Trunk/L2   (Vlans): 100, 200
                                             (Native): 1
UP  bridge      N/A        1500   Bridge/L2  Untagged: swp3, swp5-6
                                             Root Port: swp3
                                             VlanID: Untagged
UP  bond0       2G         1500   Bond/L3    BondMems: swp2(UP) swp1(UP)
                                             IP: 10.1.1.2/30
UP  bridge.200  N/A        1500   SVI/L3     IP: 10.4.4.1/24
cumulus@switch:~$ sudo netshow lldp
Local    Speed      Mode           Remote    Sw/Hostname    Summary
-------  ---------  --------  ---  --------  -------------  -----------------
swp2     1G(RJ-45)  BondMem   ===  swp2      leaf1          Master: bond0(UP)
swp3     1G(RJ-45)  Trunk/L2  ===  swp3      leaf1
swp1     1G(RJ-45)  BondMem   ===  swp1      leaf1          Master: bond0(UP)
eth0     1G         Mgmt      ===  swp38     switch-colo
Have more questions? Submit a request

Comments

Powered by Zendesk