# 执行以太网操作

您可以执行以下基本操作，例如配置地址、查看链路状态、监控连接以及使用各种工具调试连接故障。

Tab QCS6490
Tab IQ-9075
Tab IQ-8275
Tab IQ-615

- *class* tabincludedirective

    - ## 检查数据连接

使用 `ping` 命令检查设备接口与远程连接接口之间的连接。

Note

客户端 IP 地址必须与设备 IP 地址在同一网段。

`ping` 命令的示例输出用于检查从 RB3 Gen 2 开发套件到主机 PC 的网络连接。

ping 169.254.227.240
    PING 169.254.227.240 (169.254.227.240) 56(84) bytes of data.
    64 bytes from 169.254.227.240: icmp_seq=1 ttl=64 time=1.45 ms
    64 bytes from 169.254.227.240: icmp_seq=2 ttl=64 time=0.689 ms
    64 bytes from 169.254.227.240: icmp_seq=3 ttl=64 time=0.611 ms
    64 bytes from 169.254.227.240: icmp_seq=4 ttl=64 time=0.711 ms
    ^C
    --- 169.254.227.240 ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3027ms
    rtt min/avg/max/mdev = 0.611/0.865/1.449/0.339 ms
    Copy to clipboard

## 配置 NIC 设置

使用 `ethtool` 命令查看网络接口控制器 (NIC) 参数并配置 NIC 设置，如速度、端口、自动协商等。

`ethtool` 命令的示例输出用于检查链接的状态。

ethtool enP1p5s0f0
    Settings for enP1p5s0f0:
        Supported ports: [  ]
        Supported link modes:   100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                1000baseKX/Full
                                10000baseKX4/Full
                                10000baseKR/Full
                                2500baseT/Full
                                5000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
                                1000baseKX/Full
                                10000baseKX4/Full
                                10000baseKR/Full
                                2500baseT/Full
                                5000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                100baseT/Half 100baseT/Full
                                                1000baseT/Full
                                                2500baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x0000003f (63)
                                drv probe link timer ifdown ifup
        Link detected: yes
    
    ethtool enP1p5s0f1
    Settings for enP1p5s0f1:
        Supported ports: [  ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                2500baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                2500baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Half 100baseT/Full
                                                1000baseT/Full
                                                2500baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 28
        Transceiver: external
        MDI-X: off (auto)
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                                drv probe link timer ifdown ifup
        Link detected: yes
    
    ethtool enP1p4s0u1u1
    Settings for enP1p4s0u1u1:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: MII
        PHYAD: 3
        Transceiver: internal
        Supports Wake-on: pg
        Wake-on: d
        Current message level: 0x00000007 (7)
                    drv probe link
        Link detected: yes
    Copy to clipboard

`ethtool` 命令的示例输出用于检查 NIC 数据包的统计信息。

ethtool -S enP1p5s0f0
    NIC statistics:
        mmc_tx_octetcount_gb: 10234
        mmc_tx_framecount_gb: 84
        mmc_tx_broadcastframe_g: 52
        mmc_tx_multicastframe_g: 32
        mmc_tx_64_octets_gb: 41
        mmc_tx_65_to_127_octets_gb: 23
        mmc_tx_128_to_255_octets_gb: 6
        mmc_tx_256_to_511_octets_gb: 14
        mmc_tx_512_to_1023_octets_gb: 0
        mmc_tx_1024_to_max_octets_gb: 0
        mmc_tx_unicast_gb: 0
        mmc_tx_multicast_gb: 32
        mmc_tx_broadcast_gb: 52
        mmc_tx_underflow_error: 0
        mmc_tx_singlecol_g: 0
        mmc_tx_multicol_g: 0
        mmc_tx_deferred: 0
        mmc_tx_latecol: 0
        mmc_tx_exesscol: 0
        mmc_tx_carrier_error: 0
        mmc_tx_octetcount_g: 10234
        mmc_tx_framecount_g: 84
        mmc_tx_excessdef: 0
        mmc_tx_pause_frame: 0
        mmc_tx_vlan_frame_g: 0
        mmc_tx_lpi_tran_cntr: 0
        mmc_rx_lpi_tran_cntr: 0
        mmc_rx_framecount_gb: 25
        mmc_rx_octetcount_gb: 5394
        mmc_rx_octetcount_g: 5394
        mmc_rx_broadcastframe_g: 15
        mmc_rx_multicastframe_g: 10
        mmc_rx_crc_error: 0
        mmc_rx_align_error: 0
        mmc_rx_run_error: 0
        mmc_rx_jabber_error: 0
        mmc_rx_undersize_g: 0
        mmc_rx_oversize_g: 0
        mmc_rx_64_octets_gb: 5
        mmc_rx_65_to_127_octets_gb: 4
        mmc_rx_128_to_255_octets_gb: 5
        mmc_rx_256_to_511_octets_gb: 11
        mmc_rx_512_to_1023_octets_gb: 0
        mmc_rx_1024_to_max_octets_gb: 0
        mmc_rx_unicast_g: 0
        mmc_rx_length_error: 0
        mmc_rx_autofrangetype: 0
        mmc_rx_pause_frames: 0
        mmc_rx_fifo_overflow: 0
        mmc_rx_vlan_frames_gb: 0
        mmc_rx_watchdog_error: 0
        mmc_rx_ipc_intr_mask: 0
        mmc_rx_ipc_intr: 0
        mmc_rx_ipv4_gd: 0
        mmc_rx_ipv4_hderr: 0
        mmc_rx_ipv4_nopay: 0
        mmc_rx_ipv4_frag: 0
        mmc_rx_ipv4_udsbl: 0
        mmc_rx_ipv4_gd_octets: 0
        mmc_rx_ipv4_hderr_octets: 0
        mmc_rx_ipv4_nopay_octets: 0
        mmc_rx_ipv4_frag_octets: 0
        mmc_rx_ipv4_udsbl_octets: 0
        mmc_rx_ipv6_gd_octets: 0
        mmc_rx_ipv6_hderr_octets: 0
        mmc_rx_ipv6_nopay_octets: 0
        mmc_rx_ipv6_gd: 0
        mmc_rx_ipv6_hderr: 0
        mmc_rx_ipv6_nopay: 0
        mmc_rx_udp_gd: 0
        mmc_rx_udp_err: 0
        mmc_rx_tcp_gd: 0
        mmc_rx_tcp_err: 0
        mmc_rx_icmp_gd: 0
        mmc_rx_icmp_err: 0
        mmc_rx_udp_gd_octets: 0
        mmc_rx_udp_err_octets: 0
        mmc_rx_tcp_gd_octets: 0
        mmc_rx_tcp_err_octets: 0
        mmc_rx_icmp_gd_octets: 0
        mmc_rx_icmp_err_octets: 0
        mmc_tx_fpe_fragment_cntr: 0
        mmc_tx_hold_req_cntr: 0
        mmc_rx_packet_assembly_err_cntr: 0
        mmc_rx_packet_smd_err_cntr: 0
        mmc_rx_packet_assembly_ok_cntr: 0
        mmc_rx_fpe_fragment_cntr: 0
        tx_underflow: 0
        tx_carrier: 0
        tx_losscarrier: 0
        vlan_tag: 0
        tx_deferred: 0
        tx_vlan: 0
        tx_jabber: 0
        tx_frame_flushed: 0
        tx_payload_error: 0
        tx_ip_header_error: 0
        rx_desc: 0
        sa_filter_fail: 0
        overflow_error: 0
        ipc_csum_error: 0
        rx_collision: 0
        rx_crc_errors: 0
        dribbling_bit: 0
        rx_length: 0
        rx_mii: 0
        rx_multicast: 0
        rx_gmac_overflow: 0
        rx_watchdog: 0
        da_rx_filter_fail: 0
        sa_rx_filter_fail: 0
        rx_missed_cntr: 0
        rx_overflow_cntr: 0
        rx_vlan: 0
        rx_split_hdr_pkt_n: 0
        tx_undeflow_irq: 0
        tx_process_stopped_irq[0]: 0
        tx_process_stopped_irq[1]: 0
        tx_process_stopped_irq[2]: 0
        tx_process_stopped_irq[3]: 0
        tx_process_stopped_irq[4]: 0
        tx_process_stopped_irq[5]: 0
        tx_process_stopped_irq[6]: 0
        tx_process_stopped_irq[7]: 0
        tx_jabber_irq: 0
        rx_overflow_irq: 0
        rx_buf_unav_irq[0]: 0
        rx_buf_unav_irq[1]: 0
        rx_buf_unav_irq[2]: 0
        rx_buf_unav_irq[3]: 0
        rx_buf_unav_irq[4]: 0
        rx_buf_unav_irq[5]: 0
        rx_buf_unav_irq[6]: 0
        rx_buf_unav_irq[7]: 0
        rx_process_stopped_irq: 0
        rx_watchdog_irq: 0
        tx_early_irq: 0
        fatal_bus_error_irq[0]: 0
        fatal_bus_error_irq[1]: 0
        fatal_bus_error_irq[2]: 0
        fatal_bus_error_irq[3]: 0
        fatal_bus_error_irq[4]: 0
        fatal_bus_error_irq[5]: 0
        fatal_bus_error_irq[6]: 0
        fatal_bus_error_irq[7]: 0
        rx_early_irq: 0
        threshold: 1
        tx_pkt_n[0]: 84
        tx_pkt_n[1]: 0
        tx_pkt_n[2]: 0
        tx_pkt_n[3]: 0
        tx_pkt_n[4]: 0
        tx_pkt_n[5]: 0
        tx_pkt_n[6]: 0
        tx_pkt_n[7]: 0
        tx_pkt_errors_n[0]: 0
        tx_pkt_errors_n[1]: 0
        tx_pkt_errors_n[2]: 0
        tx_pkt_errors_n[3]: 0
        tx_pkt_errors_n[4]: 0
        tx_pkt_errors_n[5]: 0
        tx_pkt_errors_n[6]: 0
        tx_pkt_errors_n[7]: 0
        rx_pkt_n[0]: 25
        rx_pkt_n[1]: 0
        rx_pkt_n[2]: 0
        rx_pkt_n[3]: 0
        rx_pkt_n[4]: 0
        rx_pkt_n[5]: 0
        rx_pkt_n[6]: 0
        rx_pkt_n[7]: 0
        normal_irq_n[0]: 19
        normal_irq_n[1]: 0
        normal_irq_n[2]: 0
        normal_irq_n[3]: 19
        normal_irq_n[4]: 19
        normal_irq_n[5]: 19
        normal_irq_n[6]: 19
        normal_irq_n[7]: 19
        rx_normal_irq_n[0]: 17
        rx_normal_irq_n[1]: 0
        rx_normal_irq_n[2]: 0
        rx_normal_irq_n[3]: 0
        rx_normal_irq_n[4]: 0
        rx_normal_irq_n[5]: 0
        rx_normal_irq_n[6]: 0
        rx_normal_irq_n[7]: 0
        napi_poll_tx[0]: 21
        napi_poll_tx[1]: 0
        napi_poll_tx[2]: 0
        napi_poll_tx[3]: 0
        napi_poll_tx[4]: 0
        napi_poll_tx[5]: 0
        napi_poll_tx[6]: 0
        napi_poll_tx[7]: 0
        napi_poll_rx[0]: 17
        napi_poll_rx[1]: 0
        napi_poll_rx[2]: 0
        napi_poll_rx[3]: 0
        napi_poll_rx[4]: 0
        napi_poll_rx[5]: 0
        napi_poll_rx[6]: 0
        napi_poll_rx[7]: 0
        tx_normal_irq_n[0]: 18
        tx_normal_irq_n[1]: 0
        tx_normal_irq_n[2]: 0
        tx_normal_irq_n[3]: 0
        tx_normal_irq_n[4]: 0
        tx_normal_irq_n[5]: 0
        tx_normal_irq_n[6]: 0
        tx_normal_irq_n[7]: 0
        tx_clean[0]: 21
        tx_clean[1]: 0
        tx_clean[2]: 0
        tx_clean[3]: 0
        tx_clean[4]: 0
        tx_clean[5]: 0
        tx_clean[6]: 0
        tx_clean[7]: 0
        tx_set_ic_bit: 1
        irq_receive_pmt_irq_n: 0
        mmc_tx_irq_n: 0
        mmc_rx_irq_n: 0
        mmc_rx_csum_offload_irq_n: 0
        irq_tx_path_in_lpi_mode_n: 0
        irq_tx_path_exit_lpi_mode_n: 0
        irq_rx_path_in_lpi_mode_n: 0
        irq_rx_path_exit_lpi_mode_n: 0
        phy_eee_wakeup_error_n: 0
        ip_hdr_err: 0
        ip_payload_err: 0
        ip_csum_bypassed: 0
        ipv4_pkt_rcvd: 0
        ipv6_pkt_rcvd: 0
        no_ptp_rx_msg_type_ext: 0
        ptp_rx_msg_type_sync: 0
        ptp_rx_msg_type_follow_up: 0
        ptp_rx_msg_type_delay_req: 0
        ptp_rx_msg_type_delay_resp: 0
        ptp_rx_msg_type_pdelay_req: 0
        ptp_rx_msg_type_pdelay_resp: 0
        ptp_rx_msg_type_pdelay_follow_up: 0
        ptp_rx_msg_type_announce: 0
        ptp_rx_msg_type_management: 0
        ptp_rx_msg_pkt_reserved_type: 0
        ptp_frame_type: 0
        ptp_ver: 0
        timestamp_dropped: 0
        av_pkt_rcvd: 0
        av_tagged_pkt_rcvd: 0
        vlan_tag_priority_val: 0
        l3_filter_match: 0
        l4_filter_match: 0
        l3_l4_filter_no_match: 0
        irq_pcs_ane_n: 0
        irq_pcs_link_n: 0
        irq_rgmii_n: 0
        mtl_tx_status_fifo_full: 0
        mtl_tx_fifo_not_empty[0]: 0
        mtl_tx_fifo_not_empty[1]: 0
        mtl_tx_fifo_not_empty[2]: 0
        mtl_tx_fifo_not_empty[3]: 0
        mtl_tx_fifo_not_empty[4]: 0
        mtl_tx_fifo_not_empty[5]: 0
        mtl_tx_fifo_not_empty[6]: 0
        mtl_tx_fifo_not_empty[7]: 0
        mmtl_fifo_ctrl[0]: 0
        mmtl_fifo_ctrl[1]: 0
        mmtl_fifo_ctrl[3]: 0
        mmtl_fifo_ctrl[4]: 0
        mmtl_fifo_ctrl[5]: 0
        mmtl_fifo_ctrl[6]: 0
        mmtl_fifo_ctrl[7]: 0
        mtl_tx_fifo_read_ctrl_write[0]: 0
        mtl_tx_fifo_read_ctrl_write[1]: 0
        mtl_tx_fifo_read_ctrl_write[2]: 0
        mtl_tx_fifo_read_ctrl_write[3]: 0
        mtl_tx_fifo_read_ctrl_write[4]: 0
        mtl_tx_fifo_read_ctrl_write[5]: 0
        mtl_tx_fifo_read_ctrl_write[6]: 0
        mtl_tx_fifo_read_ctrl_write[7]: 0
        mtl_tx_fifo_read_ctrl_wait[0]: 0
        mtl_tx_fifo_read_ctrl_wait[1]: 0
        mtl_tx_fifo_read_ctrl_wait[2]: 0
        mtl_tx_fifo_read_ctrl_wait[3]: 0
        mtl_tx_fifo_read_ctrl_wait[4]: 0
        mtl_tx_fifo_read_ctrl_wait[5]: 0
        mtl_tx_fifo_read_ctrl_wait[6]: 0
        mtl_tx_fifo_read_ctrl_wait[7]: 0
        mtl_tx_fifo_read_ctrl_read[0]: 0
        mtl_tx_fifo_read_ctrl_read[1]: 0
        mtl_tx_fifo_read_ctrl_read[2]: 0
        mtl_tx_fifo_read_ctrl_read[3]: 0
        mtl_tx_fifo_read_ctrl_read[4]: 0
        mtl_tx_fifo_read_ctrl_read[5]: 0
        mtl_tx_fifo_read_ctrl_read[6]: 0
        mtl_tx_fifo_read_ctrl_read[7]: 0
        mtl_tx_fifo_read_ctrl_idle[0]: 0
        mtl_tx_fifo_read_ctrl_idle[1]: 0
        mtl_tx_fifo_read_ctrl_idle[2]: 0
        mtl_tx_fifo_read_ctrl_idle[3]: 0
        mtl_tx_fifo_read_ctrl_idle[4]: 0
        mtl_tx_fifo_read_ctrl_idle[5]: 0
        mtl_tx_fifo_read_ctrl_idle[6]: 0
        mtl_tx_fifo_read_ctrl_idle[7]: 0
        mac_tx_in_pause[0]: 0
        mac_tx_in_pause[1]: 0
        mac_tx_in_pause[2]: 0
        mac_tx_in_pause[3]: 0
        mac_tx_in_pause[4]: 0
        mac_tx_in_pause[5]: 0
        mac_tx_in_pause[6]: 0
        mac_tx_in_pause[7]: 0
        mac_tx_frame_ctrl_xfer: 0
        mac_tx_frame_ctrl_idle: 0
        mac_tx_frame_ctrl_wait: 0
        mac_tx_frame_ctrl_pause: 0
        mac_gmii_tx_proto_engine: 0
        mtl_rx_fifo_fill_level_full[0]: 0
        mtl_rx_fifo_fill_level_full[1]: 0
        mtl_rx_fifo_fill_level_full[2]: 0
        mtl_rx_fifo_fill_level_full[3]: 0
        mtl_rx_fifo_fill_level_full[4]: 0
        mtl_rx_fifo_fill_level_full[5]: 0
        mtl_rx_fifo_fill_level_full[6]: 0
        mtl_rx_fifo_fill_level_full[7]: 0
        mtl_rx_fifo_fill_above_thresh[0]: 0
        mtl_rx_fifo_fill_above_thresh[1]: 0
        mtl_rx_fifo_fill_above_thresh[2]: 0
        mtl_rx_fifo_fill_above_thresh[3]: 0
        mtl_rx_fifo_fill_above_thresh[4]: 0
        mtl_rx_fifo_fill_above_thresh[5]: 0
        mtl_rx_fifo_fill_above_thresh[6]: 0
        mtl_rx_fifo_fill_above_thresh[7]: 0
        mtl_rx_fifo_fill_below_thresh[0]: 0
        mtl_rx_fifo_fill_below_thresh[1]: 0
        mtl_rx_fifo_fill_below_thresh[2]: 0
        mtl_rx_fifo_fill_below_thresh[3]: 0
        mtl_rx_fifo_fill_below_thresh[4]: 0
        mtl_rx_fifo_fill_below_thresh[5]: 0
        mtl_rx_fifo_fill_below_thresh[6]: 0
        mtl_rx_fifo_fill_below_thresh[7]: 0
        mtl_rx_fifo_fill_level_empty[0]: 0
        mtl_rx_fifo_fill_level_empty[1]: 0
        mtl_rx_fifo_fill_level_empty[2]: 0
        mtl_rx_fifo_fill_level_empty[3]: 0
        mtl_rx_fifo_fill_level_empty[4]: 0
        mtl_rx_fifo_fill_level_empty[5]: 0
        mtl_rx_fifo_fill_level_empty[6]: 0
        mtl_rx_fifo_fill_level_empty[7]: 0
        mtl_rx_fifo_read_ctrl_flush[0]: 0
        mtl_rx_fifo_read_ctrl_flush[1]: 0
        mtl_rx_fifo_read_ctrl_flush[2]: 0
        mtl_rx_fifo_read_ctrl_flush[3]: 0
        mtl_rx_fifo_read_ctrl_flush[4]: 0
        mtl_rx_fifo_read_ctrl_flush[5]: 0
        mtl_rx_fifo_read_ctrl_flush[6]: 0
        mtl_rx_fifo_read_ctrl_flush[7]: 0
        mtl_rx_fifo_read_ctrl_read[0]: 0
        mtl_rx_fifo_read_ctrl_read[1]: 0
        mtl_rx_fifo_read_ctrl_read[2]: 0
        mtl_rx_fifo_read_ctrl_read[3]: 0
        mtl_rx_fifo_read_ctrl_read[4]: 0
        mtl_rx_fifo_read_ctrl_read[5]: 0
        mtl_rx_fifo_read_ctrl_read[6]: 0
        mtl_rx_fifo_read_ctrl_read[7]: 0
        mtl_rx_fifo_read_ctrl_status[0]: 0
        mtl_rx_fifo_read_ctrl_status[1]: 0
        mtl_rx_fifo_read_ctrl_status[2]: 0
        mtl_rx_fifo_read_ctrl_status[3]: 0
        mtl_rx_fifo_read_ctrl_status[4]: 0
        mtl_rx_fifo_read_ctrl_status[5]: 0
        mtl_rx_fifo_read_ctrl_status[6]: 0
        mtl_rx_fifo_read_ctrl_status[7]: 0
        mtl_rx_fifo_read_ctrl_idle[0]: 0
        mtl_rx_fifo_read_ctrl_idle[1]: 0
        mtl_rx_fifo_read_ctrl_idle[2]: 0
        mtl_rx_fifo_read_ctrl_idle[3]: 0
        mtl_rx_fifo_read_ctrl_idle[4]: 0
        mtl_rx_fifo_read_ctrl_idle[5]: 0
        mtl_rx_fifo_read_ctrl_idle[6]: 0
        mtl_rx_fifo_read_ctrl_idle[7]: 0
        mtl_rx_fifo_ctrl_active[0]: 0
        mtl_rx_fifo_ctrl_active[1]: 0
        mtl_rx_fifo_ctrl_active[2]: 0
        mtl_rx_fifo_ctrl_active[3]: 0
        mtl_rx_fifo_ctrl_active[4]: 0
        mtl_rx_fifo_ctrl_active[5]: 0
        mtl_rx_fifo_ctrl_active[6]: 0
        mtl_rx_fifo_ctrl_active[7]: 0
        mac_rx_frame_ctrl_fifo: 0
        mac_gmii_rx_proto_engine: 0
        tx_tso_frames[0]: 0
        tx_tso_frames[1]: 0
        tx_tso_frames[2]: 0
        tx_tso_frames[3]: 0
        tx_tso_frames[4]: 0
        tx_tso_frames[5]: 0
        tx_tso_frames[6]: 0
        tx_tso_frames[7]: 0
        tx_tso_nfrags[0]: 0
        tx_tso_nfrags[1]: 0
        tx_tso_nfrags[2]: 0
        tx_tso_nfrags[3]: 0
        tx_tso_nfrags[4]: 0
        tx_tso_nfrags[5]: 0
        tx_tso_nfrags[6]: 0
        tx_tso_nfrags[7]: 0
        txch_status[0]: 4
        txch_status[1]: 0
        txch_status[2]: 0
        txch_status[3]: 0
        txch_status[4]: 0
        txch_status[5]: 0
        txch_status[6]: 0
        txch_status[7]: 0
        txch_control[0]: 1052673
        txch_control[1]: 4096
        txch_control[2]: 0
        txch_control[3]: 0
        txch_control[4]: 1048577
        txch_control[5]: 269484033
        txch_control[6]: 269484033
        txch_control[7]: 269484033
        txch_desc_list_haddr[0]: 16
        txch_desc_list_haddr[1]: 0
        txch_desc_list_haddr[2]: 0
        txch_desc_list_haddr[3]: 0
        txch_desc_list_haddr[4]: 16
        txch_desc_list_haddr[5]: 16
        txch_desc_list_haddr[6]: 16
        txch_desc_list_haddr[7]: 16
        txch_desc_list_laddr[0]: 4282212352
        txch_desc_list_laddr[1]: 0
        txch_desc_list_laddr[2]: 0
        txch_desc_list_laddr[3]: 0
        txch_desc_list_laddr[4]: 4282204160
        txch_desc_list_laddr[5]: 4282187776
        txch_desc_list_laddr[6]: 4282171392
        txch_desc_list_laddr[7]: 4282155008
        txch_desc_ring_len[0]: 511
        txch_desc_ring_len[1]: 0
        txch_desc_ring_len[2]: 0
        txch_desc_ring_len[3]: 0
        txch_desc_ring_len[4]: 511
        txch_desc_ring_len[5]: 511
        txch_desc_ring_len[6]: 511
        txch_desc_ring_len[7]: 511
        txch_desc_curr_haddr[0]: 0
        txch_desc_curr_haddr[1]: 0
        txch_desc_curr_haddr[2]: 0
        txch_desc_curr_haddr[3]: 0
        txch_desc_curr_haddr[4]: 0
        txch_desc_curr_haddr[5]: 0
        txch_desc_curr_haddr[6]: 0
        txch_desc_curr_haddr[7]: 0
        txch_desc_curr_laddr[0]: 4282213696
        txch_desc_curr_laddr[1]: 0
        txch_desc_curr_laddr[2]: 0
        txch_desc_curr_laddr[3]: 0
        txch_desc_curr_laddr[4]: 4282204160
        txch_desc_curr_laddr[5]: 4282187776
        txch_desc_curr_laddr[6]: 4282171392
        txch_desc_curr_laddr[7]: 4282155008
        txch_desc_tail[0]: 4282213696
        txch_desc_tail[1]: 0
        txch_desc_tail[2]: 0
        txch_desc_tail[3]: 0
        txch_desc_tail[4]: 4282204160
        txch_desc_tail[5]: 4282187776
        txch_desc_tail[6]: 4282171392
        txch_desc_tail[7]: 4282155008
        txch_desc_buf_haddr[0]: 16
        txch_desc_buf_haddr[1]: 0
        txch_desc_buf_haddr[2]: 0
        txch_desc_buf_haddr[3]: 0
        txch_desc_buf_haddr[4]: 0
        txch_desc_buf_haddr[5]: 0
        txch_desc_buf_haddr[6]: 0
        txch_desc_buf_haddr[7]: 0
        txch_desc_buf_laddr[0]: 4269187074
        txch_desc_buf_laddr[1]: 0
        txch_desc_buf_laddr[2]: 0
        txch_desc_buf_laddr[3]: 0
        txch_desc_buf_laddr[4]: 0
        txch_desc_buf_laddr[5]: 0
        txch_desc_buf_laddr[6]: 0
        txch_desc_buf_laddr[7]: 0
        txch_sw_cur_tx[0]: 84
        txch_sw_cur_tx[1]: 0
        txch_sw_cur_tx[2]: 0
        txch_sw_cur_tx[3]: 0
        txch_sw_cur_tx[4]: 0
        txch_sw_cur_tx[5]: 0
        txch_sw_cur_tx[6]: 0
        txch_sw_cur_tx[7]: 0
        txch_sw_dirty_tx[0]: 84
        txch_sw_dirty_tx[1]: 0
        txch_sw_dirty_tx[2]: 0
        txch_sw_dirty_tx[3]: 0
        txch_sw_dirty_tx[4]: 0
        txch_sw_dirty_tx[5]: 0
        txch_sw_dirty_tx[6]: 0
        txch_sw_dirty_tx[7]: 0
        rxch_status[0]: 4
        rxch_status[1]: 0
        rxch_status[2]: 0
        rxch_status[3]: 0
        rxch_status[4]: 0
        rxch_status[5]: 0
        rxch_status[6]: 0
        rxch_status[7]: 0
        rxch_control[0]: 1051649
        rxch_control[1]: 0
        rxch_control[2]: 0
        rxch_control[3]: 1051649
        rxch_control[4]: 1051649
        rxch_control[5]: 1051649
        rxch_control[6]: 1051649
        rxch_control[7]: 1051649
        rxch_desc_list_haddr[0]: 16
        rxch_desc_list_haddr[1]: 0
        rxch_desc_list_haddr[2]: 0
        rxch_desc_list_haddr[3]: 16
        rxch_desc_list_haddr[4]: 16
        rxch_desc_list_haddr[5]: 16
        rxch_desc_list_haddr[6]: 16
        rxch_desc_list_haddr[7]: 16
        rxch_desc_list_laddr[0]: 4282261504
        rxch_desc_list_laddr[1]: 0
        rxch_desc_list_laddr[2]: 0
        rxch_desc_list_laddr[3]: 4282253312
        rxch_desc_list_laddr[4]: 4282245120
        rxch_desc_list_laddr[5]: 4282236928
        rxch_desc_list_laddr[6]: 4282228736
        rxch_desc_list_laddr[7]: 4282220544
        rxch_desc_ring_len[0]: 511
        rxch_desc_ring_len[1]: 0
        rxch_desc_ring_len[2]: 0
        rxch_desc_ring_len[3]: 511
        rxch_desc_ring_len[4]: 511
        rxch_desc_ring_len[5]: 511
        rxch_desc_ring_len[6]: 511
        rxch_desc_ring_len[7]: 511
        rxch_desc_curr_haddr[0]: 0
        rxch_desc_curr_haddr[1]: 0
        rxch_desc_curr_haddr[2]: 0
        rxch_desc_curr_haddr[3]: 0
        rxch_desc_curr_haddr[4]: 0
        rxch_desc_curr_haddr[5]: 0
        rxch_desc_curr_haddr[6]: 0
        rxch_desc_curr_haddr[7]: 0
        rxch_desc_curr_laddr[0]: 4282262560
        rxch_desc_curr_laddr[1]: 0
        rxch_desc_curr_laddr[2]: 0
        rxch_desc_curr_laddr[3]: 4282253568
        rxch_desc_curr_laddr[4]: 4282245376
        rxch_desc_curr_laddr[5]: 4282237184
        rxch_desc_curr_laddr[6]: 4282228992
        rxch_desc_curr_laddr[7]: 4282220800
        rxch_desc_tail[0]: 4282262304
        rxch_desc_tail[1]: 0
        rxch_desc_tail[2]: 0
        rxch_desc_tail[3]: 4282261504
        rxch_desc_tail[4]: 4282253312
        rxch_desc_tail[5]: 4282245120
        rxch_desc_tail[6]: 4282236928
        rxch_desc_tail[7]: 4282228736
        rxch_desc_buf_haddr[0]: 16
        rxch_desc_buf_haddr[1]: 0
        rxch_desc_buf_haddr[2]: 0
        rxch_desc_buf_haddr[3]: 16
        rxch_desc_buf_haddr[4]: 16
        rxch_desc_buf_haddr[5]: 16
        rxch_desc_buf_haddr[6]: 16
        rxch_desc_buf_haddr[7]: 16
        rxch_desc_buf_laddr[0]: 4282097664
        rxch_desc_buf_laddr[1]: 0
        rxch_desc_buf_laddr[2]: 0
        rxch_desc_buf_laddr[3]: 4279795712
        rxch_desc_buf_laddr[4]: 4277698560
        rxch_desc_buf_laddr[5]: 4275601408
        rxch_desc_buf_laddr[6]: 4273504256
        rxch_desc_buf_laddr[7]: 4271407104
        rxch_sw_cur_rx[0]: 50
        rxch_sw_cur_rx[1]: 0
        rxch_sw_cur_rx[2]: 0
        rxch_sw_cur_rx[3]: 0
        rxch_sw_cur_rx[4]: 0
        rxch_sw_cur_rx[5]: 0
        rxch_sw_cur_rx[6]: 0
        rxch_sw_cur_rx[7]: 0
        rxch_sw_dirty_rx[0]: 50
        rxch_sw_dirty_rx[1]: 0
        rxch_sw_dirty_rx[2]: 0
        rxch_sw_dirty_rx[3]: 0
        rxch_sw_dirty_rx[4]: 0
        rxch_sw_dirty_rx[5]: 0
        rxch_sw_dirty_rx[6]: 0
        rxch_sw_dirty_rx[7]: 0
        total_interrupts: 19
        lpi_intr_n: 0
        pmt_intr_n: 0
        event_intr_n: 0
        tx_intr_n: 1
        rx_intr_n: 17
        xpcs_intr_n: 0
        phy_intr_n: 1
        sw_msi_n: 0
        mtl_tx_underflow[0]: 0
        mtl_tx_underflow[1]: 0
        mtl_tx_underflow[3]: 0
        mtl_tx_underflow[4]: 0
        mtl_tx_underflow[5]: 0
        mtl_tx_underflow[6]: 0
        mtl_tx_underflow[7]: 0
        mtl_rx_miss_pkt_cnt[0]: 0
        mtl_rx_miss_pkt_cnt[1]: 0
        mtl_rx_miss_pkt_cnt[3]: 0
        mtl_rx_miss_pkt_cnt[4]: 0
        mtl_rx_miss_pkt_cnt[5]: 0
        mtl_rx_miss_pkt_cnt[6]: 0
        mtl_rx_miss_pkt_cnt[7]: 0
        mtl_rx_overflow_pkt_cnt[0]: 0
        mtl_rx_overflow_pkt_cnt[1]: 0
        mtl_rx_overflow_pkt_cnt[3]: 0
        mtl_rx_overflow_pkt_cnt[4]: 0
        mtl_rx_overflow_pkt_cnt[5]: 0
        mtl_rx_overflow_pkt_cnt[6]: 0
        mtl_rx_overflow_pkt_cnt[7]: 0
        rxch_watchdog_timer[0]: 160
        rxch_watchdog_timer[1]: 0
        rxch_watchdog_timer[2]: 0
        rxch_watchdog_timer[3]: 160
        rxch_watchdog_timer[4]: 160
        rxch_watchdog_timer[5]: 160
        rxch_watchdog_timer[6]: 160
        rxch_watchdog_timer[7]: 160
        link_partner_pause_frame_cnt: 0
        m3_debug_cnt0: 0
        m3_debug_cnt1: 0
        m3_debug_cnt2: 0
        m3_debug_cnt3: 0
        m3_debug_cnt4: 0
        m3_debug_cnt5: 0
        m3_debug_cnt6: 0
        m3_debug_cnt7: 0
        m3_debug_cnt8: 0
        m3_debug_cnt9: 0
        m3_debug_cnt10: 0
        m3_watchdog_exp_cnt: 40
        m3_watchdog_monitor_cnt: 16
        m3_debug_cnt13: 0
        m3_debug_cnt14: 0
        m3_systick_cnt_upper_value: 0
        m3_systick_cnt_lower_value: 87630
        m3_tx_timeout_port0: 0
        m3_tx_timeout_port1: 0
        m3_debug_cnt19: 0
        m3_tx_pcie_addr_loc_port0[0]: 0
        m3_tx_pcie_addr_loc_port0[1]: 0
        m3_tx_pcie_addr_loc_port0[2]: 0
        m3_tx_pcie_addr_loc_port0[3]: 0
        m3_tx_pcie_addr_loc_port0[4]: 0
        m3_tx_pcie_addr_loc_port0[5]: 0
        m3_tx_pcie_addr_loc_port0[6]: 0
        m3_tx_pcie_addr_loc_port0[7]: 0
        m3_tx_pcie_addr_loc_port1[0]: 0
        m3_tx_pcie_addr_loc_port1[1]: 0
        m3_tx_pcie_addr_loc_port1[2]: 0
        m3_tx_pcie_addr_loc_port1[3]: 0
        m3_tx_pcie_addr_loc_port1[4]: 0
        m3_tx_pcie_addr_loc_port1[5]: 0
        m3_tx_pcie_addr_loc_port1[6]: 0
        m3_tx_pcie_addr_loc_port1[7]: 0
        m3_rx_pcie_addr_loc_port0[0]: 0
        m3_rx_pcie_addr_loc_port0[1]: 0
        m3_rx_pcie_addr_loc_port0[2]: 0
        m3_rx_pcie_addr_loc_port0[3]: 0
        m3_rx_pcie_addr_loc_port0[4]: 0
        m3_rx_pcie_addr_loc_port0[5]: 0
        m3_rx_pcie_addr_loc_port0[6]: 0
        m3_rx_pcie_addr_loc_port0[7]: 0
        m3_rx_pcie_addr_loc_port1[0]: 0
        m3_rx_pcie_addr_loc_port1[1]: 0
        m3_rx_pcie_addr_loc_port1[2]: 0
        m3_rx_pcie_addr_loc_port1[3]: 0
        m3_rx_pcie_addr_loc_port1[4]: 0
        m3_rx_pcie_addr_loc_port1[5]: 0
        m3_rx_pcie_addr_loc_port1[6]: 0
        m3_rx_pcie_addr_loc_port1[7]: 0
        mbx_pf_sent_vf[0]: 0
        mbx_pf_sent_vf[1]: 0
        mbx_pf_sent_vf[2]: 0
        mbx_pf_rcvd_vf[0]: 0
        mbx_pf_rcvd_vf[1]: 0
        mbx_pf_rcvd_vf[2]: 0
    
    ethtool -S enP1p5s0f1
    NIC statistics:
        mmc_tx_octetcount_gb: 7924
        mmc_tx_framecount_gb: 48
        mmc_tx_broadcastframe_g: 16
        mmc_tx_multicastframe_g: 32
        mmc_tx_64_octets_gb: 5
        mmc_tx_65_to_127_octets_gb: 23
        mmc_tx_128_to_255_octets_gb: 6
        mmc_tx_256_to_511_octets_gb: 14
        mmc_tx_512_to_1023_octets_gb: 0
        mmc_tx_1024_to_max_octets_gb: 0
        mmc_tx_unicast_gb: 0
        mmc_tx_multicast_gb: 32
        mmc_tx_broadcast_gb: 16
        mmc_tx_underflow_error: 0
        mmc_tx_singlecol_g: 0
        mmc_tx_multicol_g: 0
        mmc_tx_deferred: 0
        mmc_tx_latecol: 0
        mmc_tx_exesscol: 0
        mmc_tx_carrier_error: 0
        mmc_tx_octetcount_g: 7924
        mmc_tx_framecount_g: 48
        mmc_tx_excessdef: 0
        mmc_tx_pause_frame: 0
        mmc_tx_vlan_frame_g: 0
        mmc_tx_lpi_tran_cntr: 0
        mmc_rx_lpi_tran_cntr: 0
        mmc_rx_framecount_gb: 65
        mmc_rx_octetcount_gb: 8358
        mmc_rx_octetcount_g: 8358
        mmc_rx_broadcastframe_g: 51
        mmc_rx_multicastframe_g: 14
        mmc_rx_crc_error: 0
        mmc_rx_align_error: 0
        mmc_rx_run_error: 0
        mmc_rx_jabber_error: 0
        mmc_rx_undersize_g: 0
        mmc_rx_oversize_g: 0
        mmc_rx_64_octets_gb: 41
        mmc_rx_65_to_127_octets_gb: 6
        mmc_rx_128_to_255_octets_gb: 5
        mmc_rx_256_to_511_octets_gb: 13
        mmc_rx_512_to_1023_octets_gb: 0
        mmc_rx_1024_to_max_octets_gb: 0
        mmc_rx_unicast_g: 0
        mmc_rx_length_error: 0
        mmc_rx_autofrangetype: 0
        mmc_rx_pause_frames: 0
        mmc_rx_fifo_overflow: 0
        mmc_rx_vlan_frames_gb: 0
        mmc_rx_watchdog_error: 0
        mmc_rx_ipc_intr_mask: 0
        mmc_rx_ipc_intr: 0
        mmc_rx_ipv4_gd: 0
        mmc_rx_ipv4_hderr: 0
        mmc_rx_ipv4_nopay: 0
        mmc_rx_ipv4_frag: 0
        mmc_rx_ipv4_udsbl: 0
        mmc_rx_ipv4_gd_octets: 0
        mmc_rx_ipv4_hderr_octets: 0
        mmc_rx_ipv4_nopay_octets: 0
        mmc_rx_ipv4_frag_octets: 0
        mmc_rx_ipv4_udsbl_octets: 0
        mmc_rx_ipv6_gd_octets: 0
        mmc_rx_ipv6_hderr_octets: 0
        mmc_rx_ipv6_nopay_octets: 0
        mmc_rx_ipv6_gd: 0
        mmc_rx_ipv6_hderr: 0
        mmc_rx_ipv6_nopay: 0
        mmc_rx_udp_gd: 0
        mmc_rx_udp_err: 0
        mmc_rx_tcp_gd: 0
        mmc_rx_tcp_err: 0
        mmc_rx_icmp_gd: 0
        mmc_rx_icmp_err: 0
        mmc_rx_udp_gd_octets: 0
        mmc_rx_udp_err_octets: 0
        mmc_rx_tcp_gd_octets: 0
        mmc_rx_tcp_err_octets: 0
        mmc_rx_icmp_gd_octets: 0
        mmc_rx_icmp_err_octets: 0
        mmc_tx_fpe_fragment_cntr: 0
        mmc_tx_hold_req_cntr: 0
        mmc_rx_packet_assembly_err_cntr: 0
        mmc_rx_packet_smd_err_cntr: 0
        mmc_rx_packet_assembly_ok_cntr: 0
        mmc_rx_fpe_fragment_cntr: 0
        tx_underflow: 0
        tx_carrier: 0
        tx_losscarrier: 0
        vlan_tag: 0
        tx_deferred: 0
        tx_vlan: 0
        tx_jabber: 0
        tx_frame_flushed: 0
        tx_payload_error: 0
        tx_ip_header_error: 0
        rx_desc: 0
        sa_filter_fail: 0
        overflow_error: 0
        ipc_csum_error: 0
        rx_collision: 0
        rx_crc_errors: 0
        dribbling_bit: 0
        rx_length: 0
        rx_mii: 0
        rx_multicast: 0
        rx_gmac_overflow: 0
        rx_watchdog: 0
        da_rx_filter_fail: 0
        sa_rx_filter_fail: 0
        rx_missed_cntr: 0
        rx_overflow_cntr: 0
        rx_vlan: 0
        rx_split_hdr_pkt_n: 0
        tx_undeflow_irq: 0
        tx_process_stopped_irq[0]: 0
        tx_process_stopped_irq[1]: 0
        tx_process_stopped_irq[2]: 0
        tx_process_stopped_irq[3]: 0
        tx_process_stopped_irq[4]: 0
        tx_process_stopped_irq[5]: 0
        tx_process_stopped_irq[6]: 0
        tx_process_stopped_irq[7]: 0
        tx_jabber_irq: 0
        rx_overflow_irq: 0
        rx_buf_unav_irq[0]: 0
        rx_buf_unav_irq[1]: 0
        rx_buf_unav_irq[2]: 0
        rx_buf_unav_irq[3]: 0
        rx_buf_unav_irq[4]: 0
        rx_buf_unav_irq[5]: 0
        rx_buf_unav_irq[6]: 0
        rx_buf_unav_irq[7]: 0
        rx_process_stopped_irq: 0
        rx_watchdog_irq: 0
        tx_early_irq: 0
        fatal_bus_error_irq[0]: 0
        fatal_bus_error_irq[1]: 0
        fatal_bus_error_irq[2]: 0
        fatal_bus_error_irq[3]: 0
        fatal_bus_error_irq[4]: 0
        fatal_bus_error_irq[5]: 0
        fatal_bus_error_irq[6]: 0
        fatal_bus_error_irq[7]: 0
        rx_early_irq: 0
        threshold: 1
        tx_pkt_n[0]: 48
        tx_pkt_n[1]: 0
        tx_pkt_n[2]: 0
        tx_pkt_n[3]: 0
        tx_pkt_n[4]: 0
        tx_pkt_n[5]: 0
        tx_pkt_n[6]: 0
        tx_pkt_n[7]: 0
        tx_pkt_errors_n[0]: 0
        tx_pkt_errors_n[1]: 0
        tx_pkt_errors_n[2]: 0
        tx_pkt_errors_n[3]: 0
        tx_pkt_errors_n[4]: 0
        tx_pkt_errors_n[5]: 0
        tx_pkt_errors_n[6]: 0
        tx_pkt_errors_n[7]: 0
        rx_pkt_n[0]: 65
        rx_pkt_n[1]: 0
        rx_pkt_n[2]: 0
        rx_pkt_n[3]: 0
        rx_pkt_n[4]: 0
        rx_pkt_n[5]: 0
        rx_pkt_n[6]: 0
        rx_pkt_n[7]: 0
        normal_irq_n[0]: 62
        normal_irq_n[1]: 0
        normal_irq_n[2]: 0
        normal_irq_n[3]: 62
        normal_irq_n[4]: 62
        normal_irq_n[5]: 62
        normal_irq_n[6]: 62
        normal_irq_n[7]: 62
        rx_normal_irq_n[0]: 58
        rx_normal_irq_n[1]: 0
        rx_normal_irq_n[2]: 0
        rx_normal_irq_n[3]: 0
        rx_normal_irq_n[4]: 0
        rx_normal_irq_n[5]: 0
        rx_normal_irq_n[6]: 0
        rx_normal_irq_n[7]: 0
        napi_poll_tx[0]: 63
        napi_poll_tx[1]: 0
        napi_poll_tx[2]: 0
        napi_poll_tx[3]: 0
        napi_poll_tx[4]: 0
        napi_poll_tx[5]: 0
        napi_poll_tx[6]: 0
        napi_poll_tx[7]: 0
        napi_poll_rx[0]: 58
        napi_poll_rx[1]: 0
        napi_poll_rx[2]: 0
        napi_poll_rx[3]: 0
        napi_poll_rx[4]: 0
        napi_poll_rx[5]: 0
        napi_poll_rx[6]: 0
        napi_poll_rx[7]: 0
        tx_normal_irq_n[0]: 58
        tx_normal_irq_n[1]: 0
        tx_normal_irq_n[2]: 0
        tx_normal_irq_n[3]: 0
        tx_normal_irq_n[4]: 0
        tx_normal_irq_n[5]: 0
        tx_normal_irq_n[6]: 0
        tx_normal_irq_n[7]: 0
        tx_clean[0]: 63
        tx_clean[1]: 0
        tx_clean[2]: 0
        tx_clean[3]: 0
        tx_clean[4]: 0
        tx_clean[5]: 0
        tx_clean[6]: 0
        tx_clean[7]: 0
        tx_set_ic_bit: 0
        irq_receive_pmt_irq_n: 0
        mmc_tx_irq_n: 0
        mmc_rx_irq_n: 0
        mmc_rx_csum_offload_irq_n: 0
        irq_tx_path_in_lpi_mode_n: 0
        irq_tx_path_exit_lpi_mode_n: 0
        irq_rx_path_in_lpi_mode_n: 0
        irq_rx_path_exit_lpi_mode_n: 0
        phy_eee_wakeup_error_n: 0
        ip_hdr_err: 0
        ip_payload_err: 0
        ip_csum_bypassed: 0
        ipv4_pkt_rcvd: 0
        ipv6_pkt_rcvd: 0
        no_ptp_rx_msg_type_ext: 0
        ptp_rx_msg_type_sync: 0
        ptp_rx_msg_type_follow_up: 0
        ptp_rx_msg_type_delay_req: 0
        ptp_rx_msg_type_delay_resp: 0
        ptp_rx_msg_type_pdelay_req: 0
        ptp_rx_msg_type_pdelay_resp: 0
        ptp_rx_msg_type_pdelay_follow_up: 0
        ptp_rx_msg_type_announce: 0
        ptp_rx_msg_type_management: 0
        ptp_rx_msg_pkt_reserved_type: 0
        ptp_frame_type: 0
        ptp_ver: 0
        timestamp_dropped: 0
        av_pkt_rcvd: 0
        av_tagged_pkt_rcvd: 0
        vlan_tag_priority_val: 0
        l3_filter_match: 0
        l4_filter_match: 0
        l3_l4_filter_no_match: 0
        irq_pcs_ane_n: 0
        irq_pcs_link_n: 0
        irq_rgmii_n: 0
        mtl_tx_status_fifo_full: 0
        mtl_tx_fifo_not_empty[0]: 0
        mtl_tx_fifo_not_empty[1]: 0
        mtl_tx_fifo_not_empty[2]: 0
        mtl_tx_fifo_not_empty[3]: 0
        mtl_tx_fifo_not_empty[4]: 0
        mtl_tx_fifo_not_empty[5]: 0
        mtl_tx_fifo_not_empty[6]: 0
        mtl_tx_fifo_not_empty[7]: 0
        mmtl_fifo_ctrl[0]: 0
        mmtl_fifo_ctrl[1]: 0
        mmtl_fifo_ctrl[3]: 0
        mmtl_fifo_ctrl[4]: 0
        mmtl_fifo_ctrl[5]: 0
        mmtl_fifo_ctrl[6]: 0
        mmtl_fifo_ctrl[7]: 0
        mtl_tx_fifo_read_ctrl_write[0]: 0
        mtl_tx_fifo_read_ctrl_write[1]: 0
        mtl_tx_fifo_read_ctrl_write[2]: 0
        mtl_tx_fifo_read_ctrl_write[3]: 0
        mtl_tx_fifo_read_ctrl_write[4]: 0
        mtl_tx_fifo_read_ctrl_write[5]: 0
        mtl_tx_fifo_read_ctrl_write[6]: 0
        mtl_tx_fifo_read_ctrl_write[7]: 0
        mtl_tx_fifo_read_ctrl_wait[0]: 0
        mtl_tx_fifo_read_ctrl_wait[1]: 0
        mtl_tx_fifo_read_ctrl_wait[2]: 0
        mtl_tx_fifo_read_ctrl_wait[3]: 0
        mtl_tx_fifo_read_ctrl_wait[4]: 0
        mtl_tx_fifo_read_ctrl_wait[5]: 0
        mtl_tx_fifo_read_ctrl_wait[6]: 0
        mtl_tx_fifo_read_ctrl_wait[7]: 0
        mtl_tx_fifo_read_ctrl_read[0]: 0
        mtl_tx_fifo_read_ctrl_read[1]: 0
        mtl_tx_fifo_read_ctrl_read[2]: 0
        mtl_tx_fifo_read_ctrl_read[3]: 0
        mtl_tx_fifo_read_ctrl_read[4]: 0
        mtl_tx_fifo_read_ctrl_read[5]: 0
        mtl_tx_fifo_read_ctrl_read[6]: 0
        mtl_tx_fifo_read_ctrl_read[7]: 0
        mtl_tx_fifo_read_ctrl_idle[0]: 0
        mtl_tx_fifo_read_ctrl_idle[1]: 0
        mtl_tx_fifo_read_ctrl_idle[2]: 0
        mtl_tx_fifo_read_ctrl_idle[3]: 0
        mtl_tx_fifo_read_ctrl_idle[4]: 0
        mtl_tx_fifo_read_ctrl_idle[5]: 0
        mtl_tx_fifo_read_ctrl_idle[6]: 0
        mtl_tx_fifo_read_ctrl_idle[7]: 0
        mac_tx_in_pause[0]: 0
        mac_tx_in_pause[1]: 0
        mac_tx_in_pause[2]: 0
        mac_tx_in_pause[3]: 0
        mac_tx_in_pause[4]: 0
        mac_tx_in_pause[5]: 0
        mac_tx_in_pause[6]: 0
        mac_tx_in_pause[7]: 0
        mac_tx_frame_ctrl_xfer: 0
        mac_tx_frame_ctrl_idle: 0
        mac_tx_frame_ctrl_wait: 0
        mac_tx_frame_ctrl_pause: 0
        mac_gmii_tx_proto_engine: 0
        mtl_rx_fifo_fill_level_full[0]: 0
        mtl_rx_fifo_fill_level_full[1]: 0
        mtl_rx_fifo_fill_level_full[2]: 0
        mtl_rx_fifo_fill_level_full[3]: 0
        mtl_rx_fifo_fill_level_full[4]: 0
        mtl_rx_fifo_fill_level_full[5]: 0
        mtl_rx_fifo_fill_level_full[6]: 0
        mtl_rx_fifo_fill_level_full[7]: 0
        mtl_rx_fifo_fill_above_thresh[0]: 0
        mtl_rx_fifo_fill_above_thresh[1]: 0
        mtl_rx_fifo_fill_above_thresh[2]: 0
        mtl_rx_fifo_fill_above_thresh[3]: 0
        mtl_rx_fifo_fill_above_thresh[4]: 0
        mtl_rx_fifo_fill_above_thresh[5]: 0
        mtl_rx_fifo_fill_above_thresh[6]: 0
        mtl_rx_fifo_fill_above_thresh[7]: 0
        mtl_rx_fifo_fill_below_thresh[0]: 0
        mtl_rx_fifo_fill_below_thresh[1]: 0
        mtl_rx_fifo_fill_below_thresh[2]: 0
        mtl_rx_fifo_fill_below_thresh[3]: 0
        mtl_rx_fifo_fill_below_thresh[4]: 0
        mtl_rx_fifo_fill_below_thresh[5]: 0
        mtl_rx_fifo_fill_below_thresh[6]: 0
        mtl_rx_fifo_fill_below_thresh[7]: 0
        mtl_rx_fifo_fill_level_empty[0]: 0
        mtl_rx_fifo_fill_level_empty[1]: 0
        mtl_rx_fifo_fill_level_empty[2]: 0
        mtl_rx_fifo_fill_level_empty[3]: 0
        mtl_rx_fifo_fill_level_empty[4]: 0
        mtl_rx_fifo_fill_level_empty[5]: 0
        mtl_rx_fifo_fill_level_empty[6]: 0
        mtl_rx_fifo_fill_level_empty[7]: 0
        mtl_rx_fifo_read_ctrl_flush[0]: 0
        mtl_rx_fifo_read_ctrl_flush[1]: 0
        mtl_rx_fifo_read_ctrl_flush[2]: 0
        mtl_rx_fifo_read_ctrl_flush[3]: 0
        mtl_rx_fifo_read_ctrl_flush[4]: 0
        mtl_rx_fifo_read_ctrl_flush[5]: 0
        mtl_rx_fifo_read_ctrl_flush[6]: 0
        mtl_rx_fifo_read_ctrl_flush[7]: 0
        mtl_rx_fifo_read_ctrl_read[0]: 0
        mtl_rx_fifo_read_ctrl_read[1]: 0
        mtl_rx_fifo_read_ctrl_read[2]: 0
        mtl_rx_fifo_read_ctrl_read[3]: 0
        mtl_rx_fifo_read_ctrl_read[4]: 0
        mtl_rx_fifo_read_ctrl_read[5]: 0
        mtl_rx_fifo_read_ctrl_read[6]: 0
        mtl_rx_fifo_read_ctrl_read[7]: 0
        mtl_rx_fifo_read_ctrl_status[0]: 0
        mtl_rx_fifo_read_ctrl_status[1]: 0
        mtl_rx_fifo_read_ctrl_status[2]: 0
        mtl_rx_fifo_read_ctrl_status[3]: 0
        mtl_rx_fifo_read_ctrl_status[4]: 0
        mtl_rx_fifo_read_ctrl_status[5]: 0
        mtl_rx_fifo_read_ctrl_status[6]: 0
        mtl_rx_fifo_read_ctrl_status[7]: 0
        mtl_rx_fifo_read_ctrl_idle[0]: 0
        mtl_rx_fifo_read_ctrl_idle[1]: 0
        mtl_rx_fifo_read_ctrl_idle[2]: 0
        mtl_rx_fifo_read_ctrl_idle[3]: 0
        mtl_rx_fifo_read_ctrl_idle[4]: 0
        mtl_rx_fifo_read_ctrl_idle[5]: 0
        mtl_rx_fifo_read_ctrl_idle[6]: 0
        mtl_rx_fifo_read_ctrl_idle[7]: 0
        mtl_rx_fifo_ctrl_active[0]: 0
        mtl_rx_fifo_ctrl_active[1]: 0
        mtl_rx_fifo_ctrl_active[2]: 0
        mtl_rx_fifo_ctrl_active[3]: 0
        mtl_rx_fifo_ctrl_active[4]: 0
        mtl_rx_fifo_ctrl_active[5]: 0
        mtl_rx_fifo_ctrl_active[6]: 0
        mtl_rx_fifo_ctrl_active[7]: 0
        mac_rx_frame_ctrl_fifo: 0
        mac_gmii_rx_proto_engine: 0
        tx_tso_frames[0]: 0
        tx_tso_frames[1]: 0
        tx_tso_frames[2]: 0
        tx_tso_frames[3]: 0
        tx_tso_frames[4]: 0
        tx_tso_frames[5]: 0
        tx_tso_frames[6]: 0
        tx_tso_frames[7]: 0
        tx_tso_nfrags[0]: 0
        tx_tso_nfrags[1]: 0
        tx_tso_nfrags[2]: 0
        tx_tso_nfrags[3]: 0
        tx_tso_nfrags[4]: 0
        tx_tso_nfrags[5]: 0
        tx_tso_nfrags[6]: 0
        tx_tso_nfrags[7]: 0
        txch_status[0]: 4
        txch_status[1]: 0
        txch_status[2]: 0
        txch_status[3]: 0
        txch_status[4]: 0
        txch_status[5]: 0
        txch_status[6]: 0
        txch_status[7]: 0
        txch_control[0]: 1052673
        txch_control[1]: 4096
        txch_control[2]: 0
        txch_control[3]: 0
        txch_control[4]: 1048577
        txch_control[5]: 269484033
        txch_control[6]: 269484033
        txch_control[7]: 269484033
        txch_desc_list_haddr[0]: 16
        txch_desc_list_haddr[1]: 0
        txch_desc_list_haddr[2]: 0
        txch_desc_list_haddr[3]: 0
        txch_desc_list_haddr[4]: 16
        txch_desc_list_haddr[5]: 16
        txch_desc_list_haddr[6]: 16
        txch_desc_list_haddr[7]: 16
        txch_desc_list_laddr[0]: 4294909952
        txch_desc_list_laddr[1]: 0
        txch_desc_list_laddr[2]: 0
        txch_desc_list_laddr[3]: 0
        txch_desc_list_laddr[4]: 4294901760
        txch_desc_list_laddr[5]: 4294885376
        txch_desc_list_laddr[6]: 4294868992
        txch_desc_list_laddr[7]: 4294852608
        txch_desc_ring_len[0]: 511
        txch_desc_ring_len[1]: 0
        txch_desc_ring_len[2]: 0
        txch_desc_ring_len[3]: 0
        txch_desc_ring_len[4]: 511
        txch_desc_ring_len[5]: 511
        txch_desc_ring_len[6]: 511
        txch_desc_ring_len[7]: 511
        txch_desc_curr_haddr[0]: 0
        txch_desc_curr_haddr[1]: 0
        txch_desc_curr_haddr[2]: 0
        txch_desc_curr_haddr[3]: 0
        txch_desc_curr_haddr[4]: 0
        txch_desc_curr_haddr[5]: 0
        txch_desc_curr_haddr[6]: 0
        txch_desc_curr_haddr[7]: 0
        txch_desc_curr_laddr[0]: 4294910720
        txch_desc_curr_laddr[1]: 0
        txch_desc_curr_laddr[2]: 0
        txch_desc_curr_laddr[3]: 0
        txch_desc_curr_laddr[4]: 4294901760
        txch_desc_curr_laddr[5]: 4294885376
        txch_desc_curr_laddr[6]: 4294868992
        txch_desc_curr_laddr[7]: 4294852608
        txch_desc_tail[0]: 4294910720
        txch_desc_tail[1]: 0
        txch_desc_tail[2]: 0
        txch_desc_tail[3]: 0
        txch_desc_tail[4]: 4294901760
        txch_desc_tail[5]: 4294885376
        txch_desc_tail[6]: 4294868992
        txch_desc_tail[7]: 4294852608
        txch_desc_buf_haddr[0]: 16
        txch_desc_buf_haddr[1]: 0
        txch_desc_buf_haddr[2]: 0
        txch_desc_buf_haddr[3]: 0
        txch_desc_buf_haddr[4]: 0
        txch_desc_buf_haddr[5]: 0
        txch_desc_buf_haddr[6]: 0
        txch_desc_buf_haddr[7]: 0
        txch_desc_buf_laddr[0]: 4269193218
        txch_desc_buf_laddr[1]: 0
        txch_desc_buf_laddr[2]: 0
        txch_desc_buf_laddr[3]: 0
        txch_desc_buf_laddr[4]: 0
        txch_desc_buf_laddr[5]: 0
        txch_desc_buf_laddr[6]: 0
        txch_desc_buf_laddr[7]: 0
        txch_sw_cur_tx[0]: 48
        txch_sw_cur_tx[1]: 0
        txch_sw_cur_tx[2]: 0
        txch_sw_cur_tx[3]: 0
        txch_sw_cur_tx[4]: 0
        txch_sw_cur_tx[5]: 0
        txch_sw_cur_tx[6]: 0
        txch_sw_cur_tx[7]: 0
        txch_sw_dirty_tx[0]: 48
        txch_sw_dirty_tx[1]: 0
        txch_sw_dirty_tx[2]: 0
        txch_sw_dirty_tx[3]: 0
        txch_sw_dirty_tx[4]: 0
        txch_sw_dirty_tx[5]: 0
        txch_sw_dirty_tx[6]: 0
        txch_sw_dirty_tx[7]: 0
        rxch_status[0]: 4
        rxch_status[1]: 0
        rxch_status[2]: 0
        rxch_status[3]: 0
        rxch_status[4]: 0
        rxch_status[5]: 0
        rxch_status[6]: 0
        rxch_status[7]: 0
        rxch_control[0]: 1051649
        rxch_control[1]: 0
        rxch_control[2]: 0
        rxch_control[3]: 1051649
        rxch_control[4]: 1051649
        rxch_control[5]: 1051649
        rxch_control[6]: 1051649
        rxch_control[7]: 1051649
        rxch_desc_list_haddr[0]: 16
        rxch_desc_list_haddr[1]: 0
        rxch_desc_list_haddr[2]: 0
        rxch_desc_list_haddr[3]: 16
        rxch_desc_list_haddr[4]: 16
        rxch_desc_list_haddr[5]: 16
        rxch_desc_list_haddr[6]: 16
        rxch_desc_list_haddr[7]: 16
        rxch_desc_list_laddr[0]: 4294959104
        rxch_desc_list_laddr[1]: 0
        rxch_desc_list_laddr[2]: 0
        rxch_desc_list_laddr[3]: 4294950912
        rxch_desc_list_laddr[4]: 4294942720
        rxch_desc_list_laddr[5]: 4294934528
        rxch_desc_list_laddr[6]: 4294926336
        rxch_desc_list_laddr[7]: 4294918144
        rxch_desc_ring_len[0]: 511
        rxch_desc_ring_len[1]: 0
        rxch_desc_ring_len[2]: 0
        rxch_desc_ring_len[3]: 511
        rxch_desc_ring_len[4]: 511
        rxch_desc_ring_len[5]: 511
        rxch_desc_ring_len[6]: 511
        rxch_desc_ring_len[7]: 511
        rxch_desc_curr_haddr[0]: 0
        rxch_desc_curr_haddr[1]: 0
        rxch_desc_curr_haddr[2]: 0
        rxch_desc_curr_haddr[3]: 0
        rxch_desc_curr_haddr[4]: 0
        rxch_desc_curr_haddr[5]: 0
        rxch_desc_curr_haddr[6]: 0
        rxch_desc_curr_haddr[7]: 0
        rxch_desc_curr_laddr[0]: 4294961440
        rxch_desc_curr_laddr[1]: 0
        rxch_desc_curr_laddr[2]: 0
        rxch_desc_curr_laddr[3]: 4294951168
        rxch_desc_curr_laddr[4]: 4294942976
        rxch_desc_curr_laddr[5]: 4294934784
        rxch_desc_curr_laddr[6]: 4294926592
        rxch_desc_curr_laddr[7]: 4294918400
        rxch_desc_tail[0]: 4294961184
        rxch_desc_tail[1]: 0
        rxch_desc_tail[2]: 0
        rxch_desc_tail[3]: 4294959104
        rxch_desc_tail[4]: 4294950912
        rxch_desc_tail[5]: 4294942720
        rxch_desc_tail[6]: 4294934528
        rxch_desc_tail[7]: 4294926336
        rxch_desc_buf_haddr[0]: 16
        rxch_desc_buf_haddr[1]: 0
        rxch_desc_buf_haddr[2]: 0
        rxch_desc_buf_haddr[3]: 16
        rxch_desc_buf_haddr[4]: 16
        rxch_desc_buf_haddr[5]: 16
        rxch_desc_buf_haddr[6]: 16
        rxch_desc_buf_haddr[7]: 16
        rxch_desc_buf_laddr[0]: 4294074368
        rxch_desc_buf_laddr[1]: 0
        rxch_desc_buf_laddr[2]: 0
        rxch_desc_buf_laddr[3]: 4292493312
        rxch_desc_buf_laddr[4]: 4290396160
        rxch_desc_buf_laddr[5]: 4288299008
        rxch_desc_buf_laddr[6]: 4286201856
        rxch_desc_buf_laddr[7]: 4284104704
        rxch_sw_cur_rx[0]: 130
        rxch_sw_cur_rx[1]: 0
        rxch_sw_cur_rx[2]: 0
        rxch_sw_cur_rx[3]: 0
        rxch_sw_cur_rx[4]: 0
        rxch_sw_cur_rx[5]: 0
        rxch_sw_cur_rx[6]: 0
        rxch_sw_cur_rx[7]: 0
        rxch_sw_dirty_rx[0]: 130
        rxch_sw_dirty_rx[1]: 0
        rxch_sw_dirty_rx[2]: 0
        rxch_sw_dirty_rx[3]: 0
        rxch_sw_dirty_rx[4]: 0
        rxch_sw_dirty_rx[5]: 0
        rxch_sw_dirty_rx[6]: 0
        rxch_sw_dirty_rx[7]: 0
        total_interrupts: 62
        lpi_intr_n: 0
        pmt_intr_n: 0
        event_intr_n: 0
        tx_intr_n: 0
        rx_intr_n: 58
        xpcs_intr_n: 0
        phy_intr_n: 4
        sw_msi_n: 0
        mtl_tx_underflow[0]: 0
        mtl_tx_underflow[1]: 0
        mtl_tx_underflow[3]: 0
        mtl_tx_underflow[4]: 0
        mtl_tx_underflow[5]: 0
        mtl_tx_underflow[6]: 0
        mtl_tx_underflow[7]: 0
        mtl_rx_miss_pkt_cnt[0]: 0
        mtl_rx_miss_pkt_cnt[1]: 0
        mtl_rx_miss_pkt_cnt[3]: 0
        mtl_rx_miss_pkt_cnt[4]: 0
        mtl_rx_miss_pkt_cnt[5]: 0
        mtl_rx_miss_pkt_cnt[6]: 0
        mtl_rx_miss_pkt_cnt[7]: 0
        mtl_rx_overflow_pkt_cnt[0]: 0
        mtl_rx_overflow_pkt_cnt[1]: 0
        mtl_rx_overflow_pkt_cnt[3]: 0
        mtl_rx_overflow_pkt_cnt[4]: 0
        mtl_rx_overflow_pkt_cnt[5]: 0
        mtl_rx_overflow_pkt_cnt[6]: 0
        mtl_rx_overflow_pkt_cnt[7]: 0
        rxch_watchdog_timer[0]: 160
        rxch_watchdog_timer[1]: 0
        rxch_watchdog_timer[2]: 0
        rxch_watchdog_timer[3]: 160
        rxch_watchdog_timer[4]: 160
        rxch_watchdog_timer[5]: 160
        rxch_watchdog_timer[6]: 160
        rxch_watchdog_timer[7]: 160
        link_partner_pause_frame_cnt: 0
        m3_debug_cnt0: 0
        m3_debug_cnt1: 0
        m3_debug_cnt2: 0
        m3_debug_cnt3: 0
        m3_debug_cnt4: 0
        m3_debug_cnt5: 0
        m3_debug_cnt6: 0
        m3_debug_cnt7: 0
        m3_debug_cnt8: 0
        m3_debug_cnt9: 0
        m3_debug_cnt10: 0
        m3_watchdog_exp_cnt: 42
        m3_watchdog_monitor_cnt: 16
        m3_debug_cnt13: 0
        m3_debug_cnt14: 0
        m3_systick_cnt_upper_value: 0
        m3_systick_cnt_lower_value: 92087
        m3_tx_timeout_port0: 0
        m3_tx_timeout_port1: 0
        m3_debug_cnt19: 0
        m3_tx_pcie_addr_loc_port0[0]: 0
        m3_tx_pcie_addr_loc_port0[1]: 0
        m3_tx_pcie_addr_loc_port0[2]: 0
        m3_tx_pcie_addr_loc_port0[3]: 0
        m3_tx_pcie_addr_loc_port0[4]: 0
        m3_tx_pcie_addr_loc_port0[5]: 0
        m3_tx_pcie_addr_loc_port0[6]: 0
        m3_tx_pcie_addr_loc_port0[7]: 0
        m3_tx_pcie_addr_loc_port1[0]: 0
        m3_tx_pcie_addr_loc_port1[1]: 0
        m3_tx_pcie_addr_loc_port1[2]: 0
        m3_tx_pcie_addr_loc_port1[3]: 0
        m3_tx_pcie_addr_loc_port1[4]: 0
        m3_tx_pcie_addr_loc_port1[5]: 0
        m3_tx_pcie_addr_loc_port1[6]: 0
        m3_tx_pcie_addr_loc_port1[7]: 0
        m3_rx_pcie_addr_loc_port0[0]: 0
        m3_rx_pcie_addr_loc_port0[1]: 0
        m3_rx_pcie_addr_loc_port0[2]: 0
        m3_rx_pcie_addr_loc_port0[3]: 0
        m3_rx_pcie_addr_loc_port0[4]: 0
        m3_rx_pcie_addr_loc_port0[5]: 0
        m3_rx_pcie_addr_loc_port0[6]: 0
        m3_rx_pcie_addr_loc_port0[7]: 0
        m3_rx_pcie_addr_loc_port1[0]: 0
        m3_rx_pcie_addr_loc_port1[1]: 0
        m3_rx_pcie_addr_loc_port1[2]: 0
        m3_rx_pcie_addr_loc_port1[3]: 0
        m3_rx_pcie_addr_loc_port1[4]: 0
        m3_rx_pcie_addr_loc_port1[5]: 0
        m3_rx_pcie_addr_loc_port1[6]: 0
        m3_rx_pcie_addr_loc_port1[7]: 0
        mbx_pf_sent_vf[0]: 0
        mbx_pf_sent_vf[1]: 0
        mbx_pf_sent_vf[2]: 0
        mbx_pf_rcvd_vf[0]: 0
        mbx_pf_rcvd_vf[1]: 0
        mbx_pf_rcvd_vf[2]: 0
    Copy to clipboard

## 配置网络接口

使用 `ifconfig` 命令为网络接口分配地址，并使用 MTU 等附加参数配置接口并显示其信息。有关配置网络接口的更多信息，请参阅[调通以太网](https://docs.qualcomm.com/doc/80-70022-26SC/topic/bring_up-ethernet.html#bringup-qcs6490)。

`ifconfig` 命令的示例输出用于显示网络接口信息。

ifconfig
    enP1p5s0f0  Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
                inet addr:169.254.227.235  Bcast:169.254.255.255  Mask:255.255.0.0
                inet6 addr: fe80::533c:8ed6:557:3860/64 Scope:Link
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:19 errors:0 dropped:0 overruns:0 frame:0
                TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1000
                RX bytes:3416 (3.3 KiB)  TX bytes:5559 (5.4 KiB)
                Interrupt:249
    
    enP1p5s0f1  Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
                inet addr:169.254.57.126  Bcast:169.254.255.255  Mask:255.255.0.0
                inet6 addr: fe80::77b:2036:be65:dd29/64 Scope:Link
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:23 errors:0 dropped:0 overruns:0 frame:0
                TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1000
                RX bytes:4059 (3.9 KiB)  TX bytes:5624 (5.4 KiB)
                Interrupt:253
    Copy to clipboard

## 监控网络连接

使用 `netstat` 命令监控、配置网络连接并对其进行问题排查。您可以监控传入和传出连接、路由表、端口侦听和使用情况统计。有关 `netstat` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/netstat.8.html](https://man7.org/linux/man-pages/man8/netstat.8.html)。

`netstat` 命令的示例输出用于获取网络接口表。

netstat
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    Active UNIX domain sockets (w/o servers)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  3      [ ]         STREAM     CONNECTED      21526
    unix  3      [ ]         STREAM     CONNECTED       4813
    unix  3      [ ]         STREAM     CONNECTED      12072
    unix  2      [ ]         DGRAM      CONNECTED      12903
    unix  3      [ ]         STREAM     CONNECTED      16907 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       4877
    unix  2      [ ]         DGRAM      CONNECTED      14242
    unix  3      [ ]         STREAM     CONNECTED      17522 /run/systemd/journal/stdout
    Copy to clipboard

## 分析网络流量

使用 `tcpdump` 命令通过拦截和显示网络接口创建或接收的数据包，分析网络流量。

`tcpdump` 命令的示例用于分析网络流量。

tcpdump -i any -s 0 -w /data/tcpdump.pcap
    Copy to clipboard

## 识别并读取网络路由

路由表包含识别和读取网络路由所需的参数。使用 `ip` 命令或 `netstat` 命令检索路由表信息。有关 `ip` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/ip.8.html](https://man7.org/linux/man-pages/man8/ip.8.html)。

`ip` 命令的示例输出用于获取 IP 路由表。

ip r s
    default dev enP1p5s0f0 scope link  src 169.254.22.123  metric 1001002
    169.254.0.0/16 dev enP1p5s0f0 scope link  src 169.254.22.123  metric 1002
    Copy to clipboard

`netstat` 命令的示例输出用于获取 IP 路由表。

netstat -r
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    default         *               0.0.0.0         U         0 0          0 enP1p5s0f0
    169.254.0.0     *               255.255.0.0     U         0 0          0 enP1p5s0f0
    Copy to clipboard

- *class* tabincludedirective

    - ## 检查数据连接

使用 `ping` 命令检查设备接口与远程连接接口之间的连接。

Note

客户端 IP 地址必须与设备 IP 地址在同一网段。

`ping` 命令的示例输出用于检查从 IQ-9075 EVK 到主机 PC 的网络连接。

ping 192.168.1.10
    PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
    64 bytes from 192.168.1.10: icmp_seq=1 ttl=64 time=1.67 ms
    64 bytes from 192.168.1.10: icmp_seq=2 ttl=64 time=0.739 ms
    64 bytes from 192.168.1.10: icmp_seq=3 ttl=64 time=0.996 ms
    Copy to clipboard

## 配置 NIC 设置

使用 `ethtool` 命令查看网络接口控制器 (NIC) 参数并配置 NIC 设置，如速度、端口、自动协商等。

`ethtool` 命令的示例输出用于检查链接的状态。

ethtool eth0
    Settings for eth0:
        Supported ports: [  ]
        Supported link modes:   10baseT/Full
                                100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes: 100baseT/Full
                                            1000baseT/Full
                                            2500baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 28
        Transceiver: external
        MDI-X: off (auto)
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                    drv probe link timer ifdown ifup
        Link detected: yes
    Copy to clipboard

`ethtool` 命令的示例输出用于检查 NIC 数据包的统计信息。

ethtool -S eth0
    NIC statistics:
        ATPES: 0
        TPES: 0
        RDPES: 0
        MPES: 0
        MTSPES: 0
        ARPES: 0
        CWPES: 0
        ASRPES: 0
        TTES: 0
        RTES: 0
        CTES: 0
        ATES: 0
        PTES: 0
        T125ES: 0
        R125ES: 0
        RVCTES: 0
        MSTTES: 0
        SLVTES: 0
        ATITES: 0
        ARITES: 0
        FSMPES: 0
        TXCES: 0
        TXAMS: 0
        TXUES: 0
        RXCES: 0
        RXAMS: 0
        RXUES: 0
        ECES: 0
        EAMS: 0
        EUES: 0
        RPCES: 0
        RPAMS: 0
        RPUES: 0
        TCES: 0
        TAMS: 0
        TUES: 0
        mmc_tx_octetcount_gb: 86000
        mmc_tx_framecount_gb: 491
        mmc_tx_broadcastframe_g: 239
        mmc_tx_multicastframe_g: 249
        mmc_tx_64_octets_gb: 114
        mmc_tx_65_to_127_octets_gb: 146
        mmc_tx_128_to_255_octets_gb: 78
        mmc_tx_256_to_511_octets_gb: 153
        mmc_tx_512_to_1023_octets_gb: 0
        mmc_tx_1024_to_max_octets_gb: 0
        mmc_tx_unicast_gb: 3
        mmc_tx_multicast_gb: 249
        mmc_tx_broadcast_gb: 239
        mmc_tx_underflow_error: 0
        mmc_tx_singlecol_g: 0
        mmc_tx_multicol_g: 0
        mmc_tx_deferred: 0
        mmc_tx_latecol: 0
        mmc_tx_exesscol: 0
        mmc_tx_carrier_error: 0
        mmc_tx_octetcount_g: 86000
        mmc_tx_framecount_g: 491
        mmc_tx_excessdef: 0
        mmc_tx_pause_frame: 0
        mmc_tx_vlan_frame_g: 0
        mmc_rx_framecount_gb: 98
        mmc_rx_octetcount_gb: 32384
        mmc_rx_octetcount_g: 32384
        mmc_rx_broadcastframe_g: 93
        mmc_rx_multicastframe_g: 1
        mmc_rx_crc_error: 0
        mmc_rx_align_error: 0
        mmc_rx_run_error: 0
        mmc_rx_jabber_error: 0
        mmc_rx_undersize_g: 0
        mmc_rx_oversize_g: 0
        mmc_rx_64_octets_gb: 2
        mmc_rx_65_to_127_octets_gb: 3
        mmc_rx_128_to_255_octets_gb: 0
        mmc_rx_256_to_511_octets_gb: 93
        mmc_rx_512_to_1023_octets_gb: 0
        mmc_rx_1024_to_max_octets_gb: 0
        mmc_rx_unicast_g: 4
        mmc_rx_length_error: 0
        mmc_rx_autofrangetype: 0
        mmc_rx_pause_frames: 0
        mmc_rx_fifo_overflow: 0
        mmc_rx_vlan_frames_gb: 62
        mmc_rx_watchdog_error: 0
        mmc_rx_ipc_intr_mask: 1073692671
        mmc_rx_ipc_intr: 0
        mmc_rx_ipv4_gd: 96
        mmc_rx_ipv4_hderr: 0
        mmc_rx_ipv4_nopay: 0
        mmc_rx_ipv4_frag: 0
        mmc_rx_ipv4_udsbl: 0
        mmc_rx_ipv4_gd_octets: 30280
        mmc_rx_ipv4_hderr_octets: 0
        mmc_rx_ipv4_nopay_octets: 0
        mmc_rx_ipv4_frag_octets: 0
        mmc_rx_ipv4_udsbl_octets: 0
        mmc_rx_ipv6_gd_octets: 0
        mmc_rx_ipv6_hderr_octets: 0
        mmc_rx_ipv6_nopay_octets: 0
        mmc_rx_ipv6_gd: 0
        mmc_rx_ipv6_hderr: 0
        mmc_rx_ipv6_nopay: 0
        mmc_rx_udp_gd: 94
        mmc_rx_udp_err: 0
        mmc_rx_tcp_gd: 0
        mmc_rx_tcp_err: 0
        mmc_rx_icmp_gd: 2
        mmc_rx_icmp_err: 0
        mmc_rx_udp_gd_octets: 28232
        mmc_rx_udp_err_octets: 0
        mmc_rx_tcp_gd_octets: 0
        mmc_rx_tcp_err_octets: 0
        mmc_rx_icmp_gd_octets: 128
        mmc_rx_icmp_err_octets: 0
        mmc_tx_fpe_fragment_cntr: 0
        mmc_tx_hold_req_cntr: 0
        mmc_rx_packet_assembly_err_cntr: 0
        mmc_rx_packet_smd_err_cntr: 0
        mmc_rx_packet_assembly_ok_cntr: 0
        mmc_rx_fpe_fragment_cntr: 0
        tx_underflow: 0
        tx_carrier: 0
        tx_losscarrier: 0
        vlan_tag: 0
        tx_deferred: 0
        tx_vlan: 0
        tx_jabber: 0
        tx_frame_flushed: 0
        tx_payload_error: 0
        tx_ip_header_error: 0
        rx_desc: 0
        sa_filter_fail: 0
        overflow_error: 0
        ipc_csum_error: 0
        rx_collision: 0
        rx_crc_errors: 0
        dribbling_bit: 0
        rx_length: 0
        rx_mii: 0
        rx_multicast: 0
        rx_gmac_overflow: 0
        rx_watchdog: 0
        da_rx_filter_fail: 0
        sa_rx_filter_fail: 0
        rx_missed_cntr: 0
        rx_overflow_cntr: 0
        rx_vlan: 0
        rx_split_hdr_pkt_n: 36
        tx_undeflow_irq: 0
        tx_process_stopped_irq: 0
        tx_jabber_irq: 0
        rx_overflow_irq: 0
        rx_buf_unav_irq: 0
        rx_process_stopped_irq: 0
        rx_watchdog_irq: 0
        tx_early_irq: 0
        fatal_bus_error_irq: 0
        rx_early_irq: 0
        threshold: 1
        irq_receive_pmt_irq_n: 0
        mmc_tx_irq_n: 0
        mmc_rx_irq_n: 0
        mmc_rx_csum_offload_irq_n: 0
        irq_tx_path_in_lpi_mode_n: 0
        irq_tx_path_exit_lpi_mode_n: 0
        irq_rx_path_in_lpi_mode_n: 0
        irq_rx_path_exit_lpi_mode_n: 0
        phy_eee_wakeup_error_n: 0
        ip_hdr_err: 0
        ip_payload_err: 0
        ip_csum_bypassed: 2
        ipv4_pkt_rcvd: 34
        ipv6_pkt_rcvd: 0
        no_ptp_rx_msg_type_ext: 36
        ptp_rx_msg_type_sync: 0
        ptp_rx_msg_type_follow_up: 0
        ptp_rx_msg_type_delay_req: 0
        ptp_rx_msg_type_delay_resp: 0
        ptp_rx_msg_type_pdelay_req: 0
        ptp_rx_msg_type_pdelay_resp: 0
        ptp_rx_msg_type_pdelay_follow_up: 0
        ptp_rx_msg_type_announce: 0
        ptp_rx_msg_type_management: 0
        ptp_rx_msg_pkt_reserved_type: 0
        ptp_frame_type: 0
        ptp_ver: 0
        timestamp_dropped: 0
        av_pkt_rcvd: 0
        av_tagged_pkt_rcvd: 0
        vlan_tag_priority_val: 0
        l3_filter_match: 0
        l4_filter_match: 0
        l3_l4_filter_no_match: 0
        irq_pcs_ane_n: 0
        irq_pcs_link_n: 0
        irq_rgmii_n: 0
        mtl_tx_status_fifo_full: 0
        mtl_tx_fifo_not_empty: 0
        mmtl_fifo_ctrl: 0
        mtl_tx_fifo_read_ctrl_write: 0
        mtl_tx_fifo_read_ctrl_wait: 0
        mtl_tx_fifo_read_ctrl_read: 0
        mtl_tx_fifo_read_ctrl_idle: 0
        mac_tx_in_pause: 0
        mac_tx_frame_ctrl_xfer: 0
        mac_tx_frame_ctrl_idle: 0
        mac_tx_frame_ctrl_wait: 0
        mac_tx_frame_ctrl_pause: 0
        mac_gmii_tx_proto_engine: 0
        mtl_rx_fifo_fill_level_full: 0
        mtl_rx_fifo_fill_above_thresh: 0
        mtl_rx_fifo_fill_below_thresh: 0
        mtl_rx_fifo_fill_level_empty: 0
        mtl_rx_fifo_read_ctrl_flush: 0
        mtl_rx_fifo_read_ctrl_read_data: 0
        mtl_rx_fifo_read_ctrl_status: 0
        mtl_rx_fifo_read_ctrl_idle: 0
        mtl_rx_fifo_ctrl_active: 0
        mac_rx_frame_ctrl_fifo: 0
        mac_gmii_rx_proto_engine: 0
        mtl_est_cgce: 0
        mtl_est_hlbs: 0
        mtl_est_hlbf: 0
        mtl_est_btre: 0
        mtl_est_btrlm: 0
        rx_pkt_n: 36
        rx_normal_irq_n: 36
        tx_pkt_n: 491
        tx_normal_irq_n: 18
        tx_clean: 702
        tx_set_ic_bit: 18
        tx_tso_frames: 0
        tx_tso_nfrags: 0
        normal_irq_n: 54
        napi_poll: 738
        q0_tx_pkt_n: 33
        q0_tx_irq_n: 1
        q1_tx_pkt_n: 171
        q1_tx_irq_n: 6
        q2_tx_pkt_n: 37
        q2_tx_irq_n: 1
        q3_tx_pkt_n: 250
        q3_tx_irq_n: 10
        q0_rx_pkt_n: 36
        q0_rx_irq_n: 36
        q1_rx_pkt_n: 0
        q1_rx_irq_n: 0
        q2_rx_pkt_n: 0
        q2_rx_irq_n: 0
        q3_rx_pkt_n: 0
        q3_rx_irq_n: 0
    Copy to clipboard

## 配置网络接口

使用 `ifconfig` 命令为网络接口分配地址，并使用 MTU 等附加参数配置接口并显示其信息。有关配置网络接口的更多信息，请参阅[调通以太网](https://docs.qualcomm.com/doc/80-70022-26SC/topic/bring_up-ethernet.html#bringup-qcs9075)

`ifconfig` 命令的示例输出用于显示网络接口信息。

ifconfig eth0
    eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
            inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:34 errors:0 dropped:0 overruns:0 frame:0
            TX packets:453 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:10176 (9.9 KiB)  TX bytes:74668 (72.9 KiB)
            Interrupt:36
    Copy to clipboard

## 监控网络连接

使用 `netstat` 命令监控、配置网络连接并对其进行问题排查。您可以监控传入和传出连接、路由表、端口侦听和使用情况统计。有关 `netstat` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/netstat.8.html](https://man7.org/linux/man-pages/man8/netstat.8.html)。

`netstat` 命令的示例输出用于获取网络接口表。

netstat
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    Active UNIX domain sockets (w/o servers)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  2      [ ]         DGRAM      CONNECTED      24027
    unix  3      [ ]         STREAM     CONNECTED      17210
    unix  2      [ ]         DGRAM      CONNECTED      71260
    unix  3      [ ]         DGRAM      CONNECTED      19572
    unix  3      [ ]         STREAM     CONNECTED       3728 /run/systemd/journal/stdout
    unix  3      [ ]         SEQPACKET  CONNECTED      31807
    unix  3      [ ]         STREAM     CONNECTED      17023
    unix  3      [ ]         SEQPACKET  CONNECTED      21568
    unix  3      [ ]         STREAM     CONNECTED      21552 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      12991
    unix  2      [ ]         DGRAM      CONNECTED      23997
    unix  3      [ ]         STREAM     CONNECTED      13455
    unix  3      [ ]         STREAM     CONNECTED      18174 /run/dbus/system_bus_socket
    Copy to clipboard

## 分析网络流量

使用 `tcpdump` 命令通过拦截和显示网络接口创建或接收的数据包，分析网络流量。

`tcpdump` 命令的示例用于分析网络流量。

tcpdump -i any -s 0 -w /data/tcpdump.pcap
    Copy to clipboard

## 识别并读取网络路由

路由表包含识别和读取网络路由所需的参数。使用 `ip` 命令或 `netstat` 命令检索路由表信息。有关 `ip` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/ip.8.html](https://man7.org/linux/man-pages/man8/ip.8.html)。

`ip` 命令的示例输出用于获取 IP 路由表。

ip r s
    192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
    Copy to clipboard

`netstat` 命令的示例输出用于获取 IP 路由表。

netstat -r
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
    Copy to clipboard

- *class* tabincludedirective

    - ## 检查数据连接

使用 `ping` 命令检查设备接口与远程连接接口之间的连接。

Note

客户端 IP 地址必须与设备 IP 地址在同一网段。

`ping` 命令的示例输出用于检查从 IQ-8275 EVK 到主机 PC 的网络连接。

ping 192.168.1.10
    PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
    64 bytes from 192.168.1.10: icmp_seq=1 ttl=64 time=0.726 ms
    64 bytes from 192.168.1.10: icmp_seq=2 ttl=64 time=0.717 ms
    64 bytes from 192.168.1.10: icmp_seq=3 ttl=64 time=0.711 ms
    ^C
    --- 192.168.1.10 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2010ms
    rtt min/avg/max/mdev = 0.711/0.718/0.726/0.006 ms
    Copy to clipboard

## 配置 NIC 设置

使用 `ethtool` 命令查看网络接口控制器 (NIC) 参数并配置 NIC 设置，如速度、端口、自动协商等。

`ethtool` 命令的示例输出用于检查链接的状态。

ethtool eth0
        Settings for eth0:
        Supported ports: [  ]
        Supported link modes:   10baseT/Full
                                100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Full
                                100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  100baseT/Full
                                                1000baseT/Full
                                                2500baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 28
        Transceiver: external
        MDI-X: on (auto)
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                                drv probe link timer ifdown ifup
        Link detected: yes
    Copy to clipboard

`ethtool` 命令的示例输出用于检查 NIC 数据包的统计信息。

ethtool -S eth0
    NIC statistics:
        ATPES: 0
        TPES: 0
        RDPES: 0
        MPES: 0
        MTSPES: 0
        ARPES: 0
        CWPES: 0
        ASRPES: 0
        TTES: 0
        RTES: 0
        CTES: 0
        ATES: 0
        PTES: 0
        T125ES: 0
        R125ES: 0
        RVCTES: 0
        MSTTES: 0
        SLVTES: 0
        ATITES: 0
        ARITES: 0
        FSMPES: 0
        TXCES: 0
        TXAMS: 0
        TXUES: 0
        RXCES: 0
        RXAMS: 0
        RXUES: 0
        ECES: 0
        EAMS: 0
        EUES: 0
        RPCES: 0
        RPAMS: 0
        RPUES: 0
        TCES: 0
        TAMS: 0
        TUES: 0
        mmc_tx_octetcount_gb: 33843
        mmc_tx_framecount_gb: 194
        mmc_tx_broadcastframe_g: 96
        mmc_tx_multicastframe_g: 80
        mmc_tx_64_octets_gb: 47
        mmc_tx_65_to_127_octets_gb: 60
        mmc_tx_128_to_255_octets_gb: 23
        mmc_tx_256_to_511_octets_gb: 64
        mmc_tx_512_to_1023_octets_gb: 0
        mmc_tx_1024_to_max_octets_gb: 0
        mmc_tx_unicast_gb: 18
        mmc_tx_multicast_gb: 80
        mmc_tx_broadcast_gb: 96
        mmc_tx_underflow_error: 0
        mmc_tx_singlecol_g: 0
        mmc_tx_multicol_g: 0
        mmc_tx_deferred: 0
        mmc_tx_latecol: 0
        mmc_tx_exesscol: 0
        mmc_tx_carrier_error: 0
        mmc_tx_octetcount_g: 33843
        mmc_tx_framecount_g: 194
        mmc_tx_excessdef: 0
        mmc_tx_pause_frame: 0
        mmc_tx_vlan_frame_g: 0
        mmc_rx_framecount_gb: 100
        mmc_rx_octetcount_gb: 26002
        mmc_rx_octetcount_g: 26002
        mmc_rx_broadcastframe_g: 61
        mmc_rx_multicastframe_g: 22
        mmc_rx_crc_error: 0
        mmc_rx_align_error: 0
        mmc_rx_run_error: 0
        mmc_rx_jabber_error: 0
        mmc_rx_undersize_g: 0
        mmc_rx_oversize_g: 0
        mmc_rx_64_octets_gb: 2
        mmc_rx_65_to_127_octets_gb: 29
        mmc_rx_128_to_255_octets_gb: 3
        mmc_rx_256_to_511_octets_gb: 66
        mmc_rx_512_to_1023_octets_gb: 0
        mmc_rx_1024_to_max_octets_gb: 0
        mmc_rx_unicast_g: 17
        mmc_rx_length_error: 0
        mmc_rx_autofrangetype: 0
        mmc_rx_pause_frames: 0
        mmc_rx_fifo_overflow: 0
        mmc_rx_vlan_frames_gb: 42
        mmc_rx_watchdog_error: 0
        mmc_rx_ipc_intr_mask: 1073692671
        mmc_rx_ipc_intr: 0
        mmc_rx_ipv4_gd: 95
        mmc_rx_ipv4_hderr: 0
        mmc_rx_ipv4_nopay: 0
        mmc_rx_ipv4_frag: 0
        mmc_rx_ipv4_udsbl: 0
        mmc_rx_ipv4_gd_octets: 23663
        mmc_rx_ipv4_hderr_octets: 0
        mmc_rx_ipv4_nopay_octets: 0
        mmc_rx_ipv4_frag_octets: 0
        mmc_rx_ipv4_udsbl_octets: 0
        mmc_rx_ipv6_gd_octets: 279
        mmc_rx_ipv6_hderr_octets: 0
        mmc_rx_ipv6_nopay_octets: 0
        mmc_rx_ipv6_gd: 3
        mmc_rx_ipv6_hderr: 0
        mmc_rx_ipv6_nopay: 0
        mmc_rx_udp_gd: 82
        mmc_rx_udp_err: 0
        mmc_rx_tcp_gd: 0
        mmc_rx_tcp_err: 0
        mmc_rx_icmp_gd: 16
        mmc_rx_icmp_err: 0
        mmc_rx_udp_gd_octets: 20898
        mmc_rx_udp_err_octets: 0
        mmc_rx_tcp_gd_octets: 0
        mmc_rx_tcp_err_octets: 0
        mmc_rx_icmp_gd_octets: 1024
        mmc_rx_icmp_err_octets: 0
        mmc_tx_fpe_fragment_cntr: 0
        mmc_tx_hold_req_cntr: 0
        mmc_rx_packet_assembly_err_cntr: 0
        mmc_rx_packet_smd_err_cntr: 0
        mmc_rx_packet_assembly_ok_cntr: 0
        mmc_rx_fpe_fragment_cntr: 0
        tx_underflow: 0
        tx_carrier: 0
        tx_losscarrier: 0
        vlan_tag: 0
        tx_deferred: 0
        tx_vlan: 0
        tx_jabber: 0
        tx_frame_flushed: 0
        tx_payload_error: 0
        tx_ip_header_error: 0
        rx_desc: 0
        sa_filter_fail: 0
        overflow_error: 0
        ipc_csum_error: 0
        rx_collision: 0
        rx_crc_errors: 0
        dribbling_bit: 0
        rx_length: 0
        rx_mii: 0
        rx_multicast: 0
        rx_gmac_overflow: 0
        rx_watchdog: 0
        da_rx_filter_fail: 0
        sa_rx_filter_fail: 0
        rx_missed_cntr: 0
        rx_overflow_cntr: 0
        rx_vlan: 0
        rx_split_hdr_pkt_n: 58
        tx_undeflow_irq: 0
        tx_process_stopped_irq: 0
        tx_jabber_irq: 0
        rx_overflow_irq: 0
        rx_buf_unav_irq: 0
        rx_process_stopped_irq: 0
        rx_watchdog_irq: 0
        tx_early_irq: 0
        fatal_bus_error_irq: 0
        rx_early_irq: 0
        threshold: 1
        irq_receive_pmt_irq_n: 0
        mmc_tx_irq_n: 0
        mmc_rx_irq_n: 0
        mmc_rx_csum_offload_irq_n: 0
        irq_tx_path_in_lpi_mode_n: 0
        irq_tx_path_exit_lpi_mode_n: 0
        irq_rx_path_in_lpi_mode_n: 0
        irq_rx_path_exit_lpi_mode_n: 0
        phy_eee_wakeup_error_n: 0
        ip_hdr_err: 0
        ip_payload_err: 0
        ip_csum_bypassed: 2
        ipv4_pkt_rcvd: 55
        ipv6_pkt_rcvd: 1
        no_ptp_rx_msg_type_ext: 58
        ptp_rx_msg_type_sync: 0
        ptp_rx_msg_type_follow_up: 0
        ptp_rx_msg_type_delay_req: 0
        ptp_rx_msg_type_delay_resp: 0
        ptp_rx_msg_type_pdelay_req: 0
        ptp_rx_msg_type_pdelay_resp: 0
        ptp_rx_msg_type_pdelay_follow_up: 0
        ptp_rx_msg_type_announce: 0
        ptp_rx_msg_type_management: 0
        ptp_rx_msg_pkt_reserved_type: 0
        ptp_frame_type: 0
        ptp_ver: 0
        timestamp_dropped: 0
        av_pkt_rcvd: 0
        av_tagged_pkt_rcvd: 0
        vlan_tag_priority_val: 0
        l3_filter_match: 0
        l4_filter_match: 0
        l3_l4_filter_no_match: 0
        irq_pcs_ane_n: 0
        irq_pcs_link_n: 0
        irq_rgmii_n: 0
        mtl_tx_status_fifo_full: 0
        mtl_tx_fifo_not_empty: 0
        mmtl_fifo_ctrl: 0
        mtl_tx_fifo_read_ctrl_write: 0
        mtl_tx_fifo_read_ctrl_wait: 0
        mtl_tx_fifo_read_ctrl_read: 0
        mtl_tx_fifo_read_ctrl_idle: 0
        mac_tx_in_pause: 0
        mac_tx_frame_ctrl_xfer: 0
        mac_tx_frame_ctrl_idle: 0
        mac_tx_frame_ctrl_wait: 0
        mac_tx_frame_ctrl_pause: 0
        mac_gmii_tx_proto_engine: 0
        mtl_rx_fifo_fill_level_full: 0
        mtl_rx_fifo_fill_above_thresh: 0
        mtl_rx_fifo_fill_below_thresh: 0
        mtl_rx_fifo_fill_level_empty: 0
        mtl_rx_fifo_read_ctrl_flush: 0
        mtl_rx_fifo_read_ctrl_read_data: 0
        mtl_rx_fifo_read_ctrl_status: 0
        mtl_rx_fifo_read_ctrl_idle: 0
        mtl_rx_fifo_ctrl_active: 0
        mac_rx_frame_ctrl_fifo: 0
        mac_gmii_rx_proto_engine: 0
        mtl_est_cgce: 0
        mtl_est_hlbs: 0
        mtl_est_hlbf: 0
        mtl_est_btre: 0
        mtl_est_btrlm: 0
        rx_pkt_n: 58
        rx_normal_irq_n: 58
        tx_pkt_n: 194
        tx_normal_irq_n: 6
        tx_clean: 447
        tx_set_ic_bit: 6
        tx_tso_frames: 0
        tx_tso_nfrags: 0
        normal_irq_n: 64
        napi_poll: 505
        q0_tx_pkt_n: 58
        q0_tx_irq_n: 2
        q1_tx_pkt_n: 63
        q1_tx_irq_n: 2
        q2_tx_pkt_n: 4
        q2_tx_irq_n: 0
        q3_tx_pkt_n: 69
        q3_tx_irq_n: 2
        q0_rx_pkt_n: 58
        q0_rx_irq_n: 58
        q1_rx_pkt_n: 0
        q1_rx_irq_n: 0
        q2_rx_pkt_n: 0
        q2_rx_irq_n: 0
        q3_rx_pkt_n: 0
        q3_rx_irq_n: 0
    Copy to clipboard

## 配置网络接口

使用 `ifconfig` 命令为网络接口分配地址，并使用 MTU 等附加参数配置接口并显示其信息。有关配置网络接口的更多信息，请参阅[调通以太网](https://docs.qualcomm.com/doc/80-70022-26SC/topic/bring_up-ethernet.html#bringup-qcs8275)

`ifconfig` 命令的示例输出用于显示网络接口信息。

ifconfig
    eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
            inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:57 errors:0 dropped:0 overruns:0 frame:0
            TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:11403 (11.1 KiB)  TX bytes:31620 (30.8 KiB)
            Interrupt:61
    Copy to clipboard

## 监控网络连接

使用 `netstat` 命令监控、配置网络连接并对其进行问题排查。您可以监控传入和传出连接、路由表、端口侦听和使用情况统计。有关 `netstat` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/netstat.8.html](https://man7.org/linux/man-pages/man8/netstat.8.html)。

`netstat` 命令的示例输出用于获取网络接口表。

netstat
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    Active UNIX domain sockets (w/o servers)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  2      [ ]         DGRAM      CONNECTED      21594
    unix  3      [ ]         STREAM     CONNECTED      23935
    unix  3      [ ]         STREAM     CONNECTED      13743
    unix  3      [ ]         STREAM     CONNECTED      13776 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      24271
    unix  2      [ ]         DGRAM      CONNECTED      13745
    unix  2      [ ]         DGRAM      CONNECTED      11769
    unix  2      [ ]         DGRAM      CONNECTED      21595
    unix  3      [ ]         STREAM     CONNECTED      24015
    unix  3      [ ]         STREAM     CONNECTED      21620
    unix  2      [ ]         DGRAM      CONNECTED      23894
    unix  3      [ ]         STREAM     CONNECTED      21929
    unix  3      [ ]         STREAM     CONNECTED      19736
    unix  3      [ ]         SEQPACKET  CONNECTED      13847
    unix  2      [ ]         DGRAM      CONNECTED      23933
    unix  4      [ ]         DGRAM      CONNECTED       4042 /run/systemd/notify
    Copy to clipboard

## 分析网络流量

使用 `tcpdump` 命令通过拦截和显示网络接口创建或接收的数据包，分析网络流量。

`tcpdump` 命令的示例用于分析网络流量。

tcpdump -i any -s 0 -w /data/tcpdump.pcap
    Copy to clipboard

## 识别并读取网络路由

路由表包含识别和读取网络路由所需的参数。使用 `ip` 命令或 `netstat` 命令检索路由表信息。有关 `ip` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/ip.8.html](https://man7.org/linux/man-pages/man8/ip.8.html)。

`ip` 命令的示例输出用于获取 IP 路由表。

ip r s
    192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
    Copy to clipboard

`netstat` 命令的示例输出用于获取 IP 路由表。

netstat -r
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
    Copy to clipboard

- *class* tabincludedirective

    - ## 检查数据连接

使用 `ping` 命令检查设备接口与远程连接接口之间的连接。

Note

客户端 IP 地址必须与设备 IP 地址在同一网段。

`ping` 命令的示例输出用于检查从 IQ-615 EVK 到主机 PC 的网络连接。

ping 169.254.210.50
    PING 169.254.210.50 (169.254.210.50) 56(84) bytes of data.
    64 bytes from 169.254.210.50: icmp_seq=1 ttl=64 time=2.84 ms
    64 bytes from 169.254.210.50: icmp_seq=2 ttl=64 time=1.06 ms
    64 bytes from 169.254.210.50: icmp_seq=3 ttl=64 time=0.731 ms
    64 bytes from 169.254.210.50: icmp_seq=4 ttl=64 time=0.880 ms
    64 bytes from 169.254.210.50: icmp_seq=5 ttl=64 time=0.883 ms
    ^C
    --- 169.254.210.50 ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 0.731/1.278/2.839/0.787 ms
    Copy to clipboard

## 配置 NIC 设置

使用 `ethtool` 命令查看网络接口控制器 (NIC) 参数并配置 NIC 设置，如速度、端口、自动协商等。

`ethtool` 命令的示例输出用于检查链接的状态。

ethtool eth0
    Settings for eth0:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half
                                10baseT/Full
                                100baseT/Half
                                100baseT/Full
                                1000baseT/Half
                                1000baseT/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half
                                10baseT/Full
                                100baseT/Half
                                100baseT/Full
                                1000baseT/Half
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes: 10baseT/Half
                                            10baseT/Full
                                            100baseT/Half
                                            100baseT/Full
                                            1000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 7
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x0000003f (63)
                            drv probe link timer ifdown ifup
        Link detected: yes
    Copy to clipboard

`ethtool` 命令的示例输出用于检查 NIC 数据包的统计信息。

ethtool -S eth0
    NIC statistics:
        mmc_tx_octetcount_gb: 13120
        mmc_tx_framecount_gb: 120
        mmc_tx_broadcastframe_g: 6
        mmc_tx_multicastframe_g: 29
        mmc_tx_64_octets_gb: 13
        mmc_tx_65_to_127_octets_gb: 91
        mmc_tx_128_to_255_octets_gb: 9
        mmc_tx_256_to_511_octets_gb: 7
        mmc_tx_512_to_1023_octets_gb: 0
        mmc_tx_1024_to_max_octets_gb: 0
        mmc_tx_unicast_gb: 85
        mmc_tx_multicast_gb: 29
        mmc_tx_broadcast_gb: 6
        mmc_tx_underflow_error: 0
        mmc_tx_singlecol_g: 0
        mmc_tx_multicol_g: 0
        mmc_tx_deferred: 0
        mmc_tx_latecol: 0
        mmc_tx_exesscol: 0
        mmc_tx_carrier_error: 0
        mmc_tx_octetcount_g: 13120
        mmc_tx_framecount_g: 120
        mmc_tx_excessdef: 0
        mmc_tx_pause_frame: 0
        mmc_tx_vlan_frame_g: 0
        mmc_rx_framecount_gb: 690
        mmc_rx_octetcount_gb: 75870
        mmc_rx_octetcount_g: 75870
        mmc_rx_broadcastframe_g: 428
        mmc_rx_multicastframe_g: 192
        mmc_rx_crc_error: 0
        mmc_rx_align_error: 0
        mmc_rx_run_error: 0
        mmc_rx_jabber_error: 0
        mmc_rx_undersize_g: 0
        mmc_rx_oversize_g: 0
        mmc_rx_64_octets_gb: 403
        mmc_rx_65_to_127_octets_gb: 183
        mmc_rx_128_to_255_octets_gb: 47
        mmc_rx_256_to_511_octets_gb: 49
        mmc_rx_512_to_1023_octets_gb: 8
        mmc_rx_1024_to_max_octets_gb: 0
        mmc_rx_unicast_g: 70
        mmc_rx_length_error: 0
        mmc_rx_autofrangetype: 0
        mmc_rx_pause_frames: 0
        mmc_rx_fifo_overflow: 0
        mmc_rx_vlan_frames_gb: 52
        mmc_rx_watchdog_error: 0
        mmc_rx_ipc_intr_mask: 1073692671
        mmc_rx_ipc_intr: 0
        mmc_rx_ipv4_gd: 209
        mmc_rx_ipv4_hderr: 0
        mmc_rx_ipv4_nopay: 0
        mmc_rx_ipv4_frag: 0
        mmc_rx_ipv4_udsbl: 0
        mmc_rx_ipv4_gd_octets: 34524
        mmc_rx_ipv4_hderr_octets: 0
        mmc_rx_ipv4_nopay_octets: 0
        mmc_rx_ipv4_frag_octets: 0
        mmc_rx_ipv4_udsbl_octets: 0
        mmc_rx_ipv6_gd_octets: 8678
        mmc_rx_ipv6_hderr_octets: 0
        mmc_rx_ipv6_nopay_octets: 0
        mmc_rx_ipv6_gd: 73
        mmc_rx_ipv6_hderr: 0
        mmc_rx_ipv6_nopay: 0
        mmc_rx_udp_gd: 269
        mmc_rx_udp_err: 0
        mmc_rx_tcp_gd: 0
        mmc_rx_tcp_err: 0
        mmc_rx_icmp_gd: 13
        mmc_rx_icmp_err: 0
        mmc_rx_udp_gd_octets: 35594
        mmc_rx_udp_err_octets: 0
        mmc_rx_tcp_gd_octets: 0
        mmc_rx_tcp_err_octets: 0
        mmc_rx_icmp_gd_octets: 492
        mmc_rx_icmp_err_octets: 0
        mmc_tx_fpe_fragment_cntr: 0
        mmc_tx_hold_req_cntr: 0
        mmc_rx_packet_assembly_err_cntr: 0
        mmc_rx_packet_smd_err_cntr: 0
        mmc_rx_packet_assembly_ok_cntr: 0
        mmc_rx_fpe_fragment_cntr: 0
        tx_underflow: 0
        tx_carrier: 0
        tx_losscarrier: 0
        vlan_tag: 0
        tx_deferred: 0
        tx_vlan: 0
        tx_jabber: 0
        tx_frame_flushed: 0
        tx_payload_error: 0
        tx_ip_header_error: 0
        rx_desc: 0
        sa_filter_fail: 0
        overflow_error: 0
        ipc_csum_error: 0
        rx_collision: 0
        rx_crc_errors: 0
        dribbling_bit: 0
        rx_length: 0
        rx_mii: 0
        rx_multicast: 0
        rx_gmac_overflow: 0
        rx_watchdog: 0
        da_rx_filter_fail: 0
        sa_rx_filter_fail: 0
        rx_missed_cntr: 0
        rx_overflow_cntr: 0
        rx_vlan: 0
        rx_split_hdr_pkt_n: 282
        tx_undeflow_irq: 0
        tx_process_stopped_irq: 0
        tx_jabber_irq: 0
        rx_overflow_irq: 0
        rx_buf_unav_irq: 0
        rx_process_stopped_irq: 0
        rx_watchdog_irq: 0
        tx_early_irq: 0
        fatal_bus_error_irq: 0
        rx_early_irq: 0
        threshold: 1
        irq_receive_pmt_irq_n: 0
        mmc_tx_irq_n: 0
        mmc_rx_irq_n: 0
        mmc_rx_csum_offload_irq_n: 0
        irq_tx_path_in_lpi_mode_n: 0
        irq_tx_path_exit_lpi_mode_n: 0
        irq_rx_path_in_lpi_mode_n: 0
        irq_rx_path_exit_lpi_mode_n: 0
        phy_eee_wakeup_error_n: 0
        ip_hdr_err: 0
        ip_payload_err: 0
        ip_csum_bypassed: 408
        ipv4_pkt_rcvd: 209
        ipv6_pkt_rcvd: 73
        no_ptp_rx_msg_type_ext: 690
        ptp_rx_msg_type_sync: 0
        ptp_rx_msg_type_follow_up: 0
        ptp_rx_msg_type_delay_req: 0
        ptp_rx_msg_type_delay_resp: 0
        ptp_rx_msg_type_pdelay_req: 0
        ptp_rx_msg_type_pdelay_resp: 0
        ptp_rx_msg_type_pdelay_follow_up: 0
        ptp_rx_msg_type_announce: 0
        ptp_rx_msg_type_management: 0
        ptp_rx_msg_pkt_reserved_type: 0
        ptp_frame_type: 0
        ptp_ver: 0
        timestamp_dropped: 0
        av_pkt_rcvd: 0
        av_tagged_pkt_rcvd: 0
        vlan_tag_priority_val: 0
        l3_filter_match: 0
        l4_filter_match: 0
        l3_l4_filter_no_match: 0
        irq_pcs_ane_n: 0
        irq_pcs_link_n: 0
        irq_rgmii_n: 0
        mtl_tx_status_fifo_full: 0
        mtl_tx_fifo_not_empty: 0
        mmtl_fifo_ctrl: 0
        mtl_tx_fifo_read_ctrl_write: 0
        mtl_tx_fifo_read_ctrl_wait: 0
        mtl_tx_fifo_read_ctrl_read: 0
        mtl_tx_fifo_read_ctrl_idle: 0
        mac_tx_in_pause: 0
        mac_tx_frame_ctrl_xfer: 0
        mac_tx_frame_ctrl_idle: 0
        mac_tx_frame_ctrl_wait: 0
        mac_tx_frame_ctrl_pause: 0
        mac_gmii_tx_proto_engine: 0
        mtl_rx_fifo_fill_level_full: 0
        mtl_rx_fifo_fill_above_thresh: 0
        mtl_rx_fifo_fill_below_thresh: 0
        mtl_rx_fifo_fill_level_empty: 0
        mtl_rx_fifo_read_ctrl_flush: 0
        mtl_rx_fifo_read_ctrl_read_data: 0
        mtl_rx_fifo_read_ctrl_status: 0
        mtl_rx_fifo_read_ctrl_idle: 0
        mtl_rx_fifo_ctrl_active: 0
        mac_rx_frame_ctrl_fifo: 0
        mac_gmii_rx_proto_engine: 0
        mtl_est_cgce: 0
        mtl_est_hlbs: 0
        mtl_est_hlbf: 0
        mtl_est_btre: 0
        mtl_est_btrlm: 0
        rx_pkt_n: 690
        rx_normal_irq_n: 585
        tx_pkt_n: 120
        tx_normal_irq_n: 4
        tx_clean: 691
        tx_set_ic_bit: 4
        tx_tso_frames: 0
        tx_tso_nfrags: 0
        normal_irq_n: 589
        napi_poll: 1276
        q0_tx_pkt_n: 120
        q0_tx_irq_n: 4
        q0_rx_pkt_n: 690
        q0_rx_irq_n: 585
    Copy to clipboard

## 配置网络接口

使用 `ifconfig` 命令为网络接口分配地址，并使用 MTU 等附加参数配置接口并显示其信息。有关配置网络接口的更多信息，请参阅[调通以太网](https://docs.qualcomm.com/doc/80-70022-26SC/topic/bring_up-ethernet.html#bringup-qcs615)。

`ifconfig` 命令的示例输出用于显示网络接口信息。

ifconfig eth0
    eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
            inet addr:169.254.210.12  Bcast:169.254.255.255  Mask:255.255.0.0
            inet6 addr: fe80::44e6:e3ff:fe29:1c58/64 Scope:Link
            inet6 addr: fe80::ff5a:f25c:91c:4c1d/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:7 errors:0 dropped:0 overruns:0 frame:0
            TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:610 (610.0 B)  TX bytes:11052 (10.7 KiB)
            Interrupt:140
    Copy to clipboard

## 监控网络连接

使用 `netstat` 命令监控、配置网络连接并对其进行问题排查。您可以监控传入和传出连接、路由表、端口侦听和使用情况统计。有关 `netstat` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/netstat.8.html](https://man7.org/linux/man-pages/man8/netstat.8.html)。

`netstat` 命令的示例输出用于获取网络接口表。

netstat
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    Active UNIX domain sockets (w/o servers)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  3      [ ]         STREAM     CONNECTED      14496
    unix  3      [ ]         STREAM     CONNECTED       5946 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED      14491
    unix  3      [ ]         STREAM     CONNECTED      14521
    unix  2      [ ]         DGRAM                     14809 /run/user/0/systemd/notify
    unix  3      [ ]         STREAM     CONNECTED      14493
    unix  3      [ ]         STREAM     CONNECTED      14486
    unix  3      [ ]         STREAM     CONNECTED      12793
    unix  3      [ ]         STREAM     CONNECTED       3815 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       5905 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       7818
    unix  3      [ ]         STREAM     CONNECTED      14494
    unix  4      [ ]         DGRAM      CONNECTED      11681 /run/systemd/notify
    unix  3      [ ]         STREAM     CONNECTED      11822
    unix  3      [ ]         STREAM     CONNECTED      14487
    unix  3      [ ]         STREAM     CONNECTED       5958 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED      12879
    unix  2      [ ]         DGRAM                     10600 /run/systemd/journal/syslog
    unix  13     [ ]         DGRAM      CONNECTED       4779 /run/systemd/journal/dev-log
    unix  13     [ ]         DGRAM      CONNECTED       4781 /run/systemd/journal/socket
    unix  3      [ ]         STREAM     CONNECTED       5947 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED      14500
    unix  3      [ ]         STREAM     CONNECTED       5994 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       6026 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       5008 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       3753
    unix  3      [ ]         STREAM     CONNECTED      16412
    unix  3      [ ]         STREAM     CONNECTED       6028 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED      14492
    unix  3      [ ]         STREAM     CONNECTED       5897 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       5009 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED      12805
    unix  3      [ ]         STREAM     CONNECTED      13545
    unix  3      [ ]         STREAM     CONNECTED      13237 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       6027 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED         65 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       6033 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       6000 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       3771 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED      14371
    unix  3      [ ]         STREAM     CONNECTED      13704
    unix  3      [ ]         STREAM     CONNECTED      12773
    unix  3      [ ]         STREAM     CONNECTED      13234 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED       3669
    unix  3      [ ]         STREAM     CONNECTED      14495
    unix  3      [ ]         STREAM     CONNECTED      14488
    unix  3      [ ]         STREAM     CONNECTED       5955 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED      16387
    unix  3      [ ]         STREAM     CONNECTED      12772 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      21710
    unix  2      [ ]         DGRAM      CONNECTED      13565
    unix  2      [ ]         DGRAM      CONNECTED       3712
    unix  2      [ ]         DGRAM      CONNECTED      12829
    unix  3      [ ]         STREAM     CONNECTED      13248
    unix  3      [ ]         DGRAM      CONNECTED      13586
    unix  2      [ ]         DGRAM      CONNECTED      13724
    unix  3      [ ]         STREAM     CONNECTED       5948 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       3862 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      13649
    unix  2      [ ]         DGRAM      CONNECTED      17067
    unix  3      [ ]         STREAM     CONNECTED      14590
    unix  3      [ ]         DGRAM      CONNECTED      14810
    unix  2      [ ]         DGRAM      CONNECTED       5685
    unix  3      [ ]         STREAM     CONNECTED       7843 /run/dbus/system_bus_socket
    unix  3      [ ]         DGRAM      CONNECTED      15392
    unix  3      [ ]         DGRAM      CONNECTED      13587
    unix  3      [ ]         DGRAM      CONNECTED      15390
    unix  3      [ ]         STREAM     CONNECTED       3719 /run/systemd/journal/stdout
    unix  3      [ ]         STREAM     CONNECTED      15639 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED       5944
    unix  2      [ ]         DGRAM      CONNECTED       5942
    unix  3      [ ]         STREAM     CONNECTED      14790
    unix  3      [ ]         STREAM     CONNECTED       7741
    unix  3      [ ]         DGRAM      CONNECTED      11683
    unix  2      [ ]         DGRAM      CONNECTED      14796
    unix  3      [ ]         STREAM     CONNECTED       5943
    unix  2      [ ]         DGRAM      CONNECTED      14542
    unix  3      [ ]         STREAM     CONNECTED      20518 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      15073
    unix  3      [ ]         DGRAM      CONNECTED      13589
    unix  3      [ ]         STREAM     CONNECTED       7754
    unix  3      [ ]         DGRAM      CONNECTED      11682
    unix  2      [ ]         DGRAM      CONNECTED      13628
    unix  3      [ ]         STREAM     CONNECTED      15440
    unix  2      [ ]         DGRAM      CONNECTED      13582
    unix  2      [ ]         DGRAM      CONNECTED       7847
    unix  3      [ ]         DGRAM      CONNECTED      11836
    unix  2      [ ]         DGRAM      CONNECTED      14338
    unix  3      [ ]         STREAM     CONNECTED       3746 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      11832
    unix  2      [ ]         DGRAM      CONNECTED      17479
    unix  2      [ ]         DGRAM      CONNECTED       5058
    unix  3      [ ]         DGRAM      CONNECTED      15393
    unix  2      [ ]         DGRAM      CONNECTED      17544
    unix  2      [ ]         DGRAM      CONNECTED       3398
    unix  2      [ ]         DGRAM                     14520
    unix  3      [ ]         STREAM     CONNECTED      13629
    unix  2      [ ]         DGRAM      CONNECTED      14804
    unix  3      [ ]         STREAM     CONNECTED      12866 /run/systemd/journal/stdout
    unix  2      [ ]         DGRAM      CONNECTED      16460
    unix  3      [ ]         STREAM     CONNECTED        901 /run/systemd/journal/stdout
    unix  3      [ ]         DGRAM      CONNECTED      13588
    unix  2      [ ]         DGRAM      CONNECTED       7755
    unix  2      [ ]         DGRAM                     12836 /run/chrony/chronyd.sock
    unix  3      [ ]         DGRAM      CONNECTED      14811
    unix  3      [ ]         DGRAM      CONNECTED      11837
    unix  3      [ ]         DGRAM      CONNECTED      15391
    unix  3      [ ]         STREAM     CONNECTED      16461
    unix  3      [ ]         STREAM     CONNECTED       7844 /run/dbus/system_bus_socket
    unix  3      [ ]         STREAM     CONNECTED      12780 @6691318985ee3741/bus/systemd-timesyn/bus-api-timesync
    unix  3      [ ]         STREAM     CONNECTED      14547 @aef48d36ed9cfffc/bus/systemd-network/bus-api-network
    unix  3      [ ]         STREAM     CONNECTED      14362 @df7e956454cdf083/bus/systemd-resolve/bus-api-resolve
    unix  3      [ ]         STREAM     CONNECTED      13739 @ac0e814c1941ac21/bus/systemd-logind/system
    unix  3      [ ]         STREAM     CONNECTED      14813 @1b2333063592cd21/bus/systemd/bus-system
    unix  3      [ ]         STREAM     CONNECTED      14437 @7121b7499295c19/bus/systemd/bus-api-system
    Copy to clipboard

## 分析网络流量

使用 `tcpdump` 命令通过拦截和显示网络接口创建或接收的数据包，分析网络流量。

`tcpdump` 命令的示例用于分析网络流量。

tcpdump -i any -s 0 -w /data/tcpdump.pcap
    Copy to clipboard

## 识别并读取网络路由

路由表包含识别和读取网络路由所需的参数。使用 `ip` 命令或 `netstat` 命令检索路由表信息。有关 `ip` 命令的更多信息，请参阅 [https://man7.org/linux/man-pages/man8/ip.8.html](https://man7.org/linux/man-pages/man8/ip.8.html)。

`ip` 命令的示例输出用于获取 IP 路由表。

ip r s
    default dev eth0 scope link src 169.254.210.12 metric 1001002
    169.254.0.0/16 dev eth0 scope link src 169.254.210.12 metric 1002
    Copy to clipboard

`netstat` 命令的示例输出用于获取 IP 路由表。

netstat -r
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    default         *               0.0.0.0         U         0 0          0 eth0
    169.254.0.0     *               255.255.0.0     U         0 0          0 eth0
    Copy to clipboard

Last Published: Nov 16, 2025

[Previous Topic
调通以太网](https://docs.qualcomm.com/bundle/publicresource/80-70022-26SC/topics/bring_up-ethernet.md) [Next Topic
配置以太网功能](https://docs.qualcomm.com/bundle/publicresource/80-70022-26SC/topics/configure-ethernet-features.md)