Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    TinaLinux请教如何查询网卡当前是百兆还是千兆?

    Linux
    3
    7
    2572
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hy123456 LV 5 last edited by

      TinaLinux请教如何查询网卡当前是百兆还是千兆?用ethtool eth0 显示
      Settings for eth0:
      Link detected: yes
      不显示speed等参数,请教一下,还有没有其他办法查询网卡当前是百兆还是千兆??

      1 Reply Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by YuzukiTsuru

        插入网线会显示的,百兆还是千兆需要握手

        H 1 Reply Last reply Reply Quote Share 0
        • H
          hy123456 LV 5 @YuzukiTsuru last edited by

          @yuzukitsuru 插拔网线是可以看到,但是运行过程中怎么查那?想看看运行过程中它有没有自动降速之类的?

          YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
          • YuzukiTsuru
            柚木 鉉 LV 9 @hy123456 last edited by

            @hy123456 我记得有一个100,1000
            ifconfig里

            H 2 Replies Last reply Reply Quote Share 0
            • H
              hy123456 LV 5 @YuzukiTsuru last edited by

              @yuzukitsuru
              root@TinaLinux:~# ifconfig
              eth0 Link encap:Ethernet HWaddr AA:A7:4D:97:F3:60
              inet6 addr: fe80::a8a7:4dff:fe97:f360/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
              RX packets:1 errors:0 dropped:0 overruns:0 frame:0
              TX packets:5784678 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:243 (243.0 B) TX bytes:1866511050 (1.7 GiB)
              Interrupt:40
              只有发送队列是1000

              1 Reply Last reply Reply Quote Share 0
              • H
                hy123456 LV 5 @YuzukiTsuru last edited by

                @yuzukitsuru 我又尝试了cat ,但是不能读。
                root@TinaLinux:~# cat /sys/class/net/eth0/speed
                cat: read error: Invalid argument

                1 Reply Last reply Reply Quote Share 0
                • J
                  jinrx3 LV 2 last edited by

                  有ethtool工具吗?

                  1 Reply Last reply Reply Quote Share 0
                  • 1 / 1
                  • First post
                    Last post

                  Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                  行为准则 | 用户协议 | 隐私权政策