arp -n ^1^
cat /proc/net/arp | Displays ARP table with IP addresses instead of trying to resolve hostnames (when using the -n flag). | cumulus@leaf1$ sudo arp -n Address HWtype HWaddress Flags Mask Iface 10.1.1.2 ether 08:9e:01:ce:d8:64 C swp1s0 10.1.1.34 ether 00:e0:ec:25:7c:d7 C swp1s2 10.1.1.6 ether 08:9e:01:ce:d8:65 C swp1s1 192.168.0.1 ether 72:01:84:88:f5:8b C eth0 10.1.1.38 ether 00:e0:ec:25:7c:d8 C swp1s3 | arp man page |
cat /etc/network/interfaces | Displays the interface configuration, bridges, bonds, and VLANs. This file is not indicative of the current running state. | cumulus@leaf1$ cat /etc/network/interfaces #Configured By Ansible
auto lo iface lo inet loopback
auto lo:1 iface lo:1 inet static address 10.2.1.1/32
auto eth0 iface eth0 inet dhcp | Configuring and Managing Network Interfaces |
cat /proc/net/bonding/bond0 | Displays bond0’s bond (LAG) information. | cumulus@leaf1$ cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer3+4 (1) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0
802.3ad info LACP rate: fast Min links: 1 Aggregator selection policy (ad_select): stable System Identification: 65535 08:9e:01:f8:90:80 Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 17 Partner Key: 17 Partner Mac Address: 08:9e:01:f8:98:c8 LACP Bypass Info: Allowed: 0 Timeout: 0 All-active: 0
Slave Interface: swp2 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 1 Permanent HW addr: 08:9e:01:f8:90:80 Aggregator ID: 1 LACP bypass priority: 0 Slave queue ID: 0
Slave Interface: swp1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 08:9e:01:f8:90:7f Aggregator ID: 1 LACP bypass priority: 0 Slave queue ID: 0 | proc man page |
cl-netstat
cl-netstat -c | Displays/clears counters for cl-netstat. | cumulus@leaf1$ cl-netstat
Kernel Interface table Iface MTU Met RX_OK RX_ERR RX_DRP RX_OVR TX_OK TX_ERR TX_DRP TX_OVR Flg ——- —– —– ——- ——– ——– ——– ——- ——– ——– ——– —– br0 1500 0 0 0 0 0 4 0 0 0 BMRU br1 1500 0 0 0 0 0 5 0 0 0 BMRU eth0 1500 0 9973 0 0 0 7761 0 0 0 BMRU lo 16436 0 4 0 0 0 4 0 0 0 LRU swp1s0 1500 0 2275 0 1 0 2485 0 0 0 BMRU swp1s1 1500 0 2452 0 1 0 2324 0 0 0 BMRU swp1s2 1500 0 2448 0 3 0 2338 0 0 0 BMRU swp1s3 1500 0 2453 0 3 0 2442 0 0 0 BMRU swp32s0 1500 0 0 0 0 0 10081 0 0 0 BMRU swp32s1 1500 0 0 0 0 0 10082 0 0 0 BMRU | View and Clear Interface Counters |
ethtool <INTERFACE> | Displays low level port information. | cumulus@leaf1$ sudo ethtool swp32s0 Settings for swp32s0: Supported ports: [ TP ] Supported link modes: 10baseT/Full 100baseT/Full 1000baseT/Full 10000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Full 10000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: No Speed: 10000Mb/s Duplex: Full Port: FIBRE PHYAD: 0 Transceiver: external Auto-negotiation: off Current message level: 0x00000000 (0)
Link detected: yes | Monitor Interfaces using ethtool |
ethtool -S <INTERFACE> | Displays detailed low level statistics. | cumulus@leaf1$ sudo ethtool -S swp32s0 HwIfInOctets: 0 HwIfInUcastPkts: 0 HwIfInBcastPkts: 0 HwIfInMcastPkts: 0 HwIfOutOctets: 692670 HwIfOutUcastPkts: 0 HwIfOutMcastPkts: 10128 HwIfOutBcastPkts: 0 HwIfInDiscards: 0 HwIfInL3Drops: 0 HwIfInBufferDrops: 0 HwIfInAclDrops: 0 HwIfInDot3LengthErrors: 0 HwIfInErrors: 0 SoftInErrors: 0 SoftInDrops: 0 SoftInFrameErrors: 0 HwIfOutDiscards: 0 HwIfOutErrors: 0 HwIfOutQDrops: 0 HwIfOutNonQDrops: 0 SoftOutErrors: 0 SoftOutDrops: 0 SoftOutTxFifoFull: 0 HwIfOutQLen: 0 HwIfInDot3FrameErrors: 0 HwIfInPausePkt: 0 HwIfOutPausePkt: 0 HwIfInPfc0Pkt: 0 HwIfOutPfc0Pkt: 0 HwIfInPfc1Pkt: 0 HwIfOutPfc1Pkt: 0 HwIfInPfc2Pkt: 0 HwIfOutPfc2Pkt: 0 HwIfInPfc3Pkt: 0 HwIfOutPfc3Pkt: 0 HwIfInPfc4Pkt: 0 HwIfOutPfc4Pkt: 0 HwIfInPfc5Pkt: 0 HwIfOutPfc5Pkt: 0 HwIfInPfc6Pkt: 0 HwIfOutPfc6Pkt: 0 HwIfInPfc7Pkt: 0 HwIfOutPfc7Pkt: 0 | Monitor Interfaces using ethtool |
ifquery <INTERFACE> | Displays configuration information for an interface. | cumulus@leaf1$ sudo ifquery -a auto lo iface lo inet loopback
auto lo iface lo inet static address 10.2.1.1/32
auto eth0 iface eth0 inet dhcp
auto swp1s0 iface swp1s0 inet static address 10.1.1.1/30
auto swp1s1 iface swp1s1 inet static address 10.1.1.5/30
auto swp1s2 iface swp1s2 inet static address 10.1.1.33/30
auto swp1s3 iface swp1s3 inet static address 10.1.1.37/30
auto br1 iface br1 inet static address 10.4.1.129/25 bridge-ports swp32s1 bridge-stp on
auto br0 iface br0 inet static address 10.4.1.1/25 bridge-ports swp32s0 bridge-stp on | Use ifquery |
ifreload -a
service networking reload | Runs ifdown, then ifup, on any interfaces with configuration changes. | cumulus@leaf1$ ifreload -a cumulus@leaf1$ | Use ifupdown2 |
ifdown <INTERFACE>;ifup <INTERFACE> | Brings a specified interface down, then back up. | cumulus@leaf1$ sudo ifdown swp1s0 cumulus@leaf1$ sudo ifup swp1s0 cumulus@leaf1$ | Use ifupdown2 |
ip addr show | Displays all configured IP addresses. | cumulus@leaf1$ ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet 10.2.1.1/32 scope global lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 44:38:39:00:49:8b brd ff:ff:ff:ff:ff:ff inet 192.168.0.11/24 brd 192.168.0.255 scope global eth0 inet6 fe80::4638:39ff:fe00:498b/64 scope link valid_lft forever preferred_lft forever 5: swp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500 link/ether 44:38:39:00:49:8c brd ff:ff:ff:ff:ff:ff inet 10.1.1.1/30 scope global swp1s0 inet6 fe80::4638:39ff:fe00:498c/64 scope link valid_lft forever preferred_lft forever 6: swp1s1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500 link/ether 44:38:39:00:49:8d brd ff:ff:ff:ff:ff:ff inet 10.1.1.5/30 scope global swp1s1 inet6 fe80::4638:39ff:fe00:498d/64 scope link valid_lft forever preferred_lft forever 7: swp1s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500 link/ether 44:38:39:00:49:8e brd ff:ff:ff:ff:ff:ff inet 10.1.1.33/30 scope global swp1s2 inet6 fe80::4638:39ff:fe00:498e/64 scope link valid_lft forever preferred_lft forever 8: swp1s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500 link/ether 44:38:39:00:49:8f brd ff:ff:ff:ff:ff:ff inet 10.1.1.37/30 scope global swp1s3 inet6 fe80::4638:39ff:fe00:498f/64 scope link valid_lft forever preferred_lft forever | ip man page |
ip link show | Displays interface information. | cumulus@leaf1$ ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 44:38:39:00:49:8b brd ff:ff:ff:ff:ff:ff 5: swp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8c brd ff:ff:ff:ff:ff:ff 6: swp1s1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8d brd ff:ff:ff:ff:ff:ff 7: swp1s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8e brd ff:ff:ff:ff:ff:ff 8: swp1s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8f brd ff:ff:ff:ff:ff:ff 9: swp2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 500 link/ether 44:38:39:00:49:90 brd ff:ff:ff:ff:ff:ff | ip man page |
ip -s link | Displays interface statistics. | cumulus@leaf1$ ip -s link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcast 112 4 0 0 0 0 TX: bytes packets errors dropped carrier collsns 112 4 0 0 0 0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 44:38:39:00:49:8b brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 3208342 10725 0 0 0 0 TX: bytes packets errors dropped carrier collsns 1067425 8355 0 0 0 0 5: swp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8c brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 1982 21 0 1 0 5 TX: bytes packets errors dropped carrier collsns 2071 23 0 0 0 0 6: swp1s1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8d brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 212068 2516 0 1 0 646 TX: bytes packets errors dropped carrier collsns 205763 2384 0 0 0 0 7: swp1s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8e brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 213608 2512 0 3 0 648 TX: bytes packets errors dropped carrier collsns 207061 2398 0 0 0 0 8: swp1s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 500 link/ether 44:38:39:00:49:8f brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 213598 2517 0 3 0 648 TX: bytes packets errors dropped carrier collsns 214315 2506 0 0 0 0 9: swp2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 500 link/ether 44:38:39:00:49:90 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0 0 0 | ip man page |
ip -br link show | Displays a brief, one line summary of each interface; appends up to show only administratively up interfaces. | cumulus@leaf1$ ip -br link show
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> eth0 UP 44:38:39:00:49:8b <BROADCAST,MULTICAST,UP,LOWER_UP> swp1s0 UP swp1s1 UP 44:38:39:00:49:8d <BROADCAST,MULTICAST,UP,LOWER_UP> swp1s2 UP 44:38:39:00:49:8e <BROADCAST,MULTICAST,UP,LOWER_UP> swp1s3 UP 44:38:39:00:49:8f <BROADCAST,MULTICAST,UP,LOWER_UP> swp2 DOWN 44:38:39:00:49:90 <BROADCAST,MULTICAST> | ip man page |
lldpcli show neighbors | Displays LLDP neighbor information. | cumulus@leaf1$ sudo lldpcli show neighbors ——————————————————————————- LLDP neighbors: ——————————————————————————- Interface: eth0, via: LLDP, RID: 6, Time: 0 day, 05:22:26 Chassis: ChassisID: mac 70:72:cf:f5:4a:3b SysName: cwl42-prod-ag-tor-1 SysDescr: Cumulus Linux version 2.5.3 running on accton as4600_54t MgmtIP: 10.70.6.194 Capability: Bridge, on Capability: Router, on Port: PortID: ifname swp3 PortDescr: swp3 ——————————————————————————- Interface: swp1s2, via: LLDP, RID: 5, Time: 0 day, 05:22:45 Chassis: ChassisID: mac 00:e0:ec:25:7c:a4 SysName: spine2 SysDescr: Cumulus Linux version 2.5.5 running on cel kennisis MgmtIP: 10.2.1.4 Capability: Bridge, off Capability: Router, on Port: PortID: ifname swp51 PortDescr: swp51 ——————————————————————————- Interface: swp1s3, via: LLDP, RID: 5, Time: 0 day, 05:22:45 Chassis: ChassisID: mac 00:e0:ec:25:7c:a4 SysName: spine2 SysDescr: Cumulus Linux version 2.5.5 running on cel kennisis MgmtIP: 10.2.1.4 Capability: Bridge, off Capability: Router, on Port: PortID: ifname swp52 PortDescr: swp52 ——————————————————————————- Interface: swp1s0, via: LLDP, RID: 7, Time: 0 day, 05:22:13 Chassis: ChassisID: mac 08:9e:01:ce:d8:33 SysName: spine1 SysDescr: Cumulus Linux version 2.5.5 running on quanta lb9 MgmtIP: 10.2.1.3 Capability: Bridge, off Capability: Router, on Port: PortID: ifname swp49 PortDescr: swp49 ——————————————————————————- | LLDP |
netstat -i | Displays statistics for UP interfaces. | cumulus@leaf1$ netstat -i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg br0 1500 0 0 0 0 0 4 0 0 0 BMU br1 1500 0 0 0 0 0 5 0 0 0 BMU eth0 1500 0 11066 0 0 0 8640 0 0 0 BMRU lo 16436 0 4 0 0 0 4 0 0 0 LRU swp1s0 1500 0 29 0 1 0 33 0 0 0 BMRU swp1s1 1500 0 2526 0 1 0 2392 0 0 0 BMRU swp1s2 1500 0 2521 0 3 0 2406 0 0 0 BMRU swp1s3 1500 0 2526 0 3 0 2514 0 0 0 BMRU swp32s0 1500 0 0 0 0 0 11232 0 0 0 BMRU swp32s1 1500 0 0 0 0 0 10179 0 0 0 BMRU | netstat man page |