Layer 2 Network Information

Written By Glasco  |  Network  |  0 Comments

Here's how you can obtain Layer 2 information for a network interface:

glasco@klingon:~$ ethtool -S wlp2s0
NIC statistics:
     rx_packets: 19931
     rx_bytes: 7360009
     rx_duplicates: 12
     rx_fragments: 15276
     rx_dropped: 81
     tx_packets: 9062
     tx_bytes: 4388026
     tx_filtered: 0
     tx_retry_failed: 1
     tx_retries: 0
     sta_state: 4
     txrate: 144400000
     rxrate: 144400000
     signal: 0
     channel: 0
     noise: 18446744073709551615
     ch_time: 18446744073709551615
     ch_time_busy: 18446744073709551615
     ch_time_ext_busy: 18446744073709551615
     ch_time_rx: 18446744073709551615
     ch_time_tx: 18446744073709551615
glasco@klingon:~$

network layer 2
>