1 2 3 4 5 6 7 8 | # dmesg|grep -i eth IBM eHEA ethernet device driver (Release EHEA_0092-03) ehea: eth0: Jumbo frames are enabled ehea: eth0 -> logical port id #1 ehea: eth1: Jumbo frames are enabled ehea: eth1 -> logical port id #2 ehea: eth1: Physical port up eth1: no IPv6 routers present |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # lsdev -CHc adapter|grep en name status location description ent0 Available 03-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent1 Available 03-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent2 Available 04-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent3 Available 04-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) 上面的命令给出了系统可用的网络适配器信息,从上面的输出可以看出,系统有四个可用的网络适配器, 如果要获得网络适配器的配置信息,可以使用 lscfg 来查看。 # lscfg -vl ent0 ent0 U787D.001.992059Y-P1-T1 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) 2-Port 10/100/1000 Base-TX PCI-X Adapter: Network Address.............000D60F42314 ROM Level.(alterable).......DV0210 Hardware Location Code......U787D.001.992059Y-P1-T1 可以通过下面命令得到网络接口列表,并可以通过比较 location 获得网络接口与网络适配器的对应关系, 比如接口 en0 对应网络适配器 ent0,因为他们对应相同的 location。 # lsdev -CHc if|grep en name status location description en0 Available 03-08 Standard Ethernet Network Interface en1 Available 03-09 Standard Ethernet Network Interface en2 Defined 04-08 Standard Ethernet Network Interface en3 Defined 04-09 Standard Ethernet Network Interface |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # ifconfig -a eth0 Link encap:Ethernet HWaddr 00:1A:64:44:AC:34 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) eth1 Link encap:Ethernet HWaddr 00:1A:64:44:AC:35 inet addr:9.114.70.151 Bcast:9.114.70.255 Mask:255.255.255.128 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12337126 errors:0 dropped:0 overruns:0 frame:0 TX packets:6250179 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17295472097 (16.1 GiB) TX bytes:673204981 (642.0 MiB) lo Link encapocal Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:20168 errors:0 dropped:0 overruns:0 frame:0 TX packets:20168 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1989243 (1.8 MiB) TX bytes:1989243 (1.8 MiB) |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # ifconfig – a en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT, CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN> inet 9.114.124.9 netmask 0xffffff00 broadcast 9.114.124.255 tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0 en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT, CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN> inet 192.168.124.9 netmask 0xffffff00 broadcast 192.168.124.255 tcp_sendspace 262144 tcp_recvspace 131072 rfc1323 1 lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT> inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255 inet6 ::1/0 tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # ethtool eth1 Settings for eth1: Supported ports: [ FIBRE ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: FIBRE PHYAD: 0 Transceiver: internal Auto-negotiation: on Current message level: 0x000000cc (204) Link detected: yes 主要字段含义: Supported ports 支持的端口类型 Supported link modes 支持的连接模式 Supports auto-negotiation 是否支持自动协商 Speed 当前的连接速度 Duplex 当前的双工状态 Port 端口类型 Auto-negotiation 自动协商状态 Link detected 链路状态 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # entstat -d ent0|grep -p 'Specific Statistics' 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) Specific Statistics: ------------------------------------------------------------------------ Link Status : Up Media Speed Selected: Auto negotiation Media Speed Running: 1000 Mbps Full Duplex PCI Mode: PCI-X (100-133) PCI Bus Width: 64-bit Latency Timer: 144 Cache Line Size: 128 Jumbo Frames: Disabled TCP Segmentation Offload: Enabled TCP Segmentation Offload Packets Transmitted: 5080 TCP Segmentation Offload Packet Errors: 0 Transmit and Receive Flow Control Status: Enabled XON Flow Control Packets Transmitted: 0 XON Flow Control Packets Received: 609 XOFF Flow Control Packets Transmitted: 0 XOFF Flow Control Packets Received: 609 Transmit and Receive Flow Control Threshold (High): 49152 Transmit and Receive Flow Control Threshold (Low): 24576 Transmit and Receive Storage Allocation (TX/RX): 8/56 |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |