AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 995853
Accepted
Socrates
Socrates
Asked: 2018-01-15 10:18:22 +0800 CST2018-01-15 10:18:22 +0800 CST 2018-01-15 10:18:22 +0800 CST

Obter informações da LAN

  • 772

Existe alguma maneira de obter os detalhes da minha conexão LAN no Ubuntu 16.04? Principalmente aquela parte onde diz se está em uso 100 Mbps ou 1000 Mbps. Eu já tentei lspci | grep Ethernet, mas isso me dá o seguinte: 04:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12) isso me diz que é um Gigabit, portanto, 1000 Mbps, mas não há uma maneira mais técnica de descobrir isso?

networking
  • 2 2 respostas
  • 167 Views

2 respostas

  • Voted
  1. Florian Diesch
    2018-01-15T10:27:26+08:002018-01-15T10:27:26+08:00

    Instale o pacote ethtool. Então use

    sudo ethtool eth0
    

    Substitua eth0pela interface de seu interesse.

    $ sudo ethtool eth0
    Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 2
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: off (auto)
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000007 (7)
                       drv probe link
        Link detected: yes
    
    • 2
  2. Best Answer
    AlexOnLinux
    2018-01-15T10:31:58+08:002018-01-15T10:31:58+08:00

    ì acho que você está procurando:

    sudo lshw -C Network
    
    *-rede
           descrição: Interface Ethernet
           produto: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           fornecedor: Realtek Semiconductor Co., Ltd.
           id físico: 0
           informações de ônibus: pci@0000:04:00.0
           nome lógico: eth0
           versão: 06
           série: fx:xx:xx:xx:xx:x4
           tamanho: 1 Gbit/s
           capacidade: 1 Gbit/s
           largura: 64 bits
           clock: 33MHz
           capacidades: pm msi pciexpress msix vpd bus_master cap_list ethernet físico tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegociação
           configuração: negociação automática=em transmissão=sim driver=r8169 driverversion=2.3LK-NAPI duplex=firmware completo=rtl_nic/rtl8168e-2.fw ip=xxx.xxx.xxx.xxx latência=0 link=sim multicast=sim porta=MII velocidade = 1 Gbit/s
           recursos: irq:24 ioport:e000(tamanho=256) memória:d0004000-d0004fff memória:d0000000-d0003fff
    
    • 2

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve