X722 板载网卡 用户指南 12

Linux下X722的端口识别

Linux下X722的端口识别

X722的端口在OS下识别,下面使用2*10GE+2*GE的网卡在RHEL 7.5系统下为例进行说明。

  1. root用户登录服务器OS,单击鼠标右键,选择“Open Terminal”打开命令行。
  2. 执行如下命令,查看X722的网卡设备(PCIe function)。

    lspci | grep -i X722

    回显如下类似信息:
    1a:00.0 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GBASE-T (rev 09)
    1a:00.1 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GBASE-T (rev 09)
    1a:00.2 Ethernet controller: Intel Corporation Ethernet Connection X722 for 1GbE (rev 09)
    1a:00.3 Ethernet controller: Intel Corporation Ethernet Connection X722 for 1GbE (rev 09)

    如果是老版本的OS,如Ubuntu14.04.5、Ubuntu16.04系统执行如下命令找到对应的intel设备。

    lspci | grep -i eth

    回显如下类似信息:

    1a:00.0 Ethernet controller: Intel Corporation Device 37d0 (rev 08)
    1a:00.1 Ethernet controller: Intel Corporation Device 37d0 (rev 08)
    1a:00.2 Ethernet controller: Intel Corporation Device 37d1 (rev 08)
    1a:00.3 Ethernet controller: Intel Corporation Device 37d1 (rev 08)

  3. 执行如下命令,查询到X722的4个NIC端口。

    ifconfig -a

    如果ifconfig -a命令查询不到网口信息,说明驱动未安装,请参考安装和卸载驱动进行驱动安装。

    X722的4个NIC端口以“eno[num]/eth[num]”的形式显示,如回显中的“eno1”、“eno2”、“eno3”和“eno4”。
    eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 172.168.16.122  netmask 255.255.0.0  broadcast 172.168.255.255
            inet6 fe80::1d38:9b9c:4384:2085  prefixlen 64  scopeid 0x20<link>
            ether c4:b8:b4:63:8a:3d  txqueuelen 1000  (Ethernet)
            RX packets 8201760  bytes 651951002 (621.7 MiB)
            RX errors 0  dropped 53961  overruns 0  frame 0
            TX packets 119095  bytes 10583662 (10.0 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            ether c4:b8:b4:63:8a:3e  txqueuelen 1000  (Ethernet)
            RX packets 8082746  bytes 642277804 (612.5 MiB)
            RX errors 0  dropped 53961  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    eno3: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            ether c4:b8:b4:63:8a:3f  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    eno4: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            ether c4:b8:b4:63:8a:40  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)        

    如果执行命令后,返回没有这个命令,需要安装net-tools工具包。

  4. 执行如下命令,查看端口信息。

    ethtool -i eno[num]/eth[num]

    如查看eno1的端口信息,命令为:ethtool -i eno1

    回显如下类似信息:
    driver: i40e
    version: 2.7.12
    firmware-version: 3.33 0x80000e89 255.65535.255
    expansion-rom-version:
    bus-info: 0000:1a:00.0
    supports-statistics: yes
    supports-test: yes
    supports-eeprom-access: yes
    supports-register-dump: yes
    supports-priv-flags: yes

    如果执行命令后,返回没有这个命令,需要安装net-tools工具包。

翻译
收藏
下载文档
更新时间:2024-12-27
文档编号:EDOC1100130522
浏览量:115108
下载量:2596
平均得分:5.0