我对我机器上的以太网硬件感到困惑,我使用的是 ubuntu 14.04,使用命令lshw -C network
我得到了以下输出:
WARNING: you should run this program as super-user.
*-network:0
description: Ethernet interface
product: BCM57840 NetXtreme II 10 Gigabit Ethernet
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: p6p1
version: 11
serial: 78:24:af:85:3c:5c
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom ethernet physical fibre 1000bt-fd
configuration: autonegotiation=off broadcast=yes driver=bnx2x driverversion=1.78.17-0 duplex=full firmware=bc 7.8.79 ip=192.168.0.196 latency=0 link=yes multicast=yes
resources: irq:42 memory:dc000000-dc7fffff memory:db800000-dbffffff memory:dc810000-dc81ffff memory:fb780000-fb7fffff
*-network:1
description: Ethernet interface
product: BCM57840 NetXtreme II 10 Gigabit Ethernet
vendor: Broadcom Corporation
physical id: 0.1
bus info: pci@0000:04:00.1
logical name: p6p2
version: 11
serial: 78:24:af:85:3c:5e
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom ethernet physical fibre 1000bt-fd
configuration: autonegotiation=off broadcast=yes driver=bnx2x driverversion=1.78.17-0 firmware=bc 7.8.79 latency=0 link=no multicast=yes port=fibre
resources: irq:45 memory:db000000-db7fffff memory:da800000-daffffff memory:dc800000-dc80ffff memory:fb700000-fb77ffff
*-network
description: Ethernet interface
product: 82579V Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: em1
version: 06
serial: 10:c3:7b:46:c4:7b
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
resources: irq:82 memory:f7100000-f711ffff memory:f7128000-f7128fff ioport:f040(size=32)
*-network
description: Ethernet interface
product: 82574L Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:0d:00.0
logical name: p7p1
version: 00
serial: 10:c3:7b:46:14:41
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k firmware=2.1-3 latency=0 link=no multicast=yes port=twisted pair
resources: irq:19 memory:fb200000-fb21ffff ioport:9000(size=32) memory:fb220000-fb223fff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
但我真的不知道如何解释输出,这是否意味着我的机器上有多个以太网适配器?但我怎么知道我现在正在使用哪一个?
我观察到有,BCM57840 NetXtreme II 10 Gigabit Ethernet
但容量只有1Gbit/s
,这是否意味着我还没有达到最佳速度?如何调整它?
添加:ifconfig
我得到了
em1 Link encap:Ethernet HWaddr 10:c3:7b:46:c4:7b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18 Memory:f7100000-f7120000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:118394 errors:0 dropped:0 overruns:0 frame:0
TX packets:118394 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2538318861 (2.5 GB) TX bytes:2538318861 (2.5 GB)
p6p1 Link encap:Ethernet HWaddr 78:24:af:85:3c:5c
inet addr:192.168.0.196 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::7a24:afff:fe85:3c5c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179256971 errors:5665 dropped:0 overruns:5665 frame:0
TX packets:170144980 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:210860777033 (210.8 GB) TX bytes:147913380482 (147.9 GB)
Interrupt:42 Memory:dc000000-dc7fffff
p6p2 Link encap:Ethernet HWaddr 78:24:af:85:3c:5e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:45 Memory:db000000-db7fffff
p7p1 Link encap:Ethernet HWaddr 10:c3:7b:46:14:41
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19 Memory:fb200000-fb220000
但哪一个是活跃的?