Sun ATLS2XGF 10gbe + Ubuntu 18.04 + PowerConnect 6224,带 10gbe xfp

Sun ATLS2XGF 10gbe + Ubuntu 18.04 + PowerConnect 6224,带 10gbe xfp

所以我买了 2 个 Sun ATLS2XGF 双 10gbe xfp NIC,价格约为 30 美元。我认为它们只是一些重新命名的品牌,如 Sun raid 控制器。Windows 拒绝找到驱动程序,但这没什么大不了的。我为 ubuntu 服务器买了这些。所以我将 1 放入我的服务器中,一切似乎都很好。有点抱怨 xfp 不好,所以我从第二张卡上取下一个并等待光纤到达。它昨天到了,我把所有东西都连接起来,我得到了 10gb 全双工的链接。所以我在 /etc/network/interfaces(我从 netplan 恢复为使用 OpenvSwitch)文件中为接口添加了条目,如下所示:

auto enp133s0f0
iface enp133s0f0 inet dhcp

auto enp136s0f0
iface enp136s0f0 inet dhcp

重启网络后没有地址,所以我重启以确保万无一失。我尝试使用静态地址。我得到了一个地址,但无法 ping 通交换机。

lspci 显示为 4

以太网控制器:Oracle/SUN 多线程 10 千兆以太网网络控制器 (rev 01)

dmesd | grep niu (驱动程序)

[    1.322261] niu: niu.c:v1.1 (Apr 22, 2010)
[    1.322733] niu 0000:88:00.0 (unnamed net_device) (uninitialized): niu_get_invariants() VPD offset [00016e00]
[    1.322795] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: start[16e14] end[16f94]
[    1.323032] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [local-mac-address] len[6]
[    1.323222] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [version] len[41]
[    1.323800] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [model] len[15]
[    1.324148] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [board-model] len[12]
[    1.325375] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [num-mac-addresses] len[1]
[    1.325518] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [phy-type] len[4]
[    1.325567] niu 0000:88:00.0 (unnamed net_device) (uninitialized): VPD_SCAN: FCODE major(3) minor(20)
[    1.325701] niu: niu0: Found PHY 00206033 type PMA/PMD at phy_port 8
[    1.325914] niu: niu0: Found PHY 00206033 type PCS at phy_port 8
[    1.326186] niu: niu0: Found PHY 00206033 type PMA/PMD at phy_port 9
[    1.329509] niu: niu0: Found PHY 00206033 type PCS at phy_port 9
[    1.336801] niu: niu0: Port 0 [8 RX chans] [12 TX chans]
[    1.336880] niu: niu0: Port 1 [8 RX chans] [12 TX chans]
[    1.336957] niu: niu0: Port 0 RDC tbl(0) [ 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 ]
[    1.337039] niu: niu0: Port 0 RDC tbl(1) [ 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 ]
[    1.337123] niu: niu0: Port 0 RDC tbl(2) [ 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 ]
[    1.337208] niu: niu0: Port 0 RDC tbl(3) [ 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 ]
[    1.337294] niu: niu0: Port 1 RDC tbl(4) [ 8 9 10 11 12 13 14 15 8 9 10 11 12 13 14 15 ]
[    1.337405] niu: niu0: Port 1 RDC tbl(5) [ 8 9 10 11 12 13 14 15 8 9 10 11 12 13 14 15 ]
[    1.337513] niu: niu0: Port 1 RDC tbl(6) [ 8 9 10 11 12 13 14 15 8 9 10 11 12 13 14 15 ]
[    1.337621] niu: niu0: Port 1 RDC tbl(7) [ 8 9 10 11 12 13 14 15 8 9 10 11 12 13 14 15 ]
[    2.609347] niu: Port 0 PMA_PMD(MII_STAT1000) [0001]
[    2.610314] niu: Port 0 USER_DEV3(0x20) [1005]
[    2.611207] niu: Port 0 PHYXS(MII_NWAYTEST) [0000]
[    2.879376] niu: eth1: NIU Ethernet 00:21:28:84:d5:10
[    2.879377] niu: eth1: Port type[XMAC] mode[10G:FIBER] XCVR[XPCS] phy[xgf]
[    2.879945] niu 0000:88:00.1 (unnamed net_device) (uninitialized): niu_get_invariants() VPD offset [00016e00]
[    2.880006] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: start[16e14] end[16f94]
[    2.880260] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [local-mac-address] len[6]
[    2.880450] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [version] len[41]
[    2.881029] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [model] len[15]
[    2.881373] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [board-model] len[12]
[    2.882599] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [num-mac-addresses] len[1]
[    2.882742] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [phy-type] len[4]
[    2.882791] niu 0000:88:00.1 (unnamed net_device) (uninitialized): VPD_SCAN: FCODE major(3) minor(20)
[    4.089342] niu: Port 1 PMA_PMD(MII_STAT1000) [0001]
[    4.090035] niu: Port 1 USER_DEV3(0x20) [1005]
[    4.090569] niu: Port 1 PHYXS(MII_NWAYTEST) [0000]
[    4.168860] niu: eth0: NIU Ethernet 00:21:28:84:d5:11
[    4.169531] niu: eth0: Port type[XMAC] mode[10G:FIBER] XCVR[XPCS] phy[xgf]
[    4.170719] niu 0000:88:00.2 (unnamed net_device) (uninitialized): niu_get_invariants() VPD offset [00016e00]
[    4.170780] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: start[16e14] end[16f94]
[    4.171016] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [local-mac-address] len[6]
[    4.171206] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [version] len[41]
[    4.171784] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [model] len[15]
[    4.172131] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [board-model] len[12]
[    4.173359] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [num-mac-addresses] len[1]
[    4.173502] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [phy-type] len[4]
[    4.173551] niu 0000:88:00.2 (unnamed net_device) (uninitialized): VPD_SCAN: FCODE major(3) minor(20)
[    4.173555] niu 0000:88:00.2 (unnamed net_device) (uninitialized): niu_put_parent() port[2]
[    4.174120] niu 0000:88:00.3 (unnamed net_device) (uninitialized): niu_get_invariants() VPD offset [00016e00]
[    4.174180] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: start[16e14] end[16f94]
[    4.174417] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [local-mac-address] len[6]
[    4.174606] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [version] len[41]
[    4.175184] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [model] len[15]
[    4.175527] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [board-model] len[12]
[    4.176759] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [num-mac-addresses] len[1]
[    4.176901] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: Reading in property [phy-type] len[4]
[    4.176950] niu 0000:88:00.3 (unnamed net_device) (uninitialized): VPD_SCAN: FCODE major(3) minor(20)
[    4.176953] niu 0000:88:00.3 (unnamed net_device) (uninitialized): niu_put_parent() port[3]
[    4.179410] niu 0000:88:00.0 enp136s0f0: renamed from eth1
[    4.200598] niu 0000:88:00.1 enp136s0f1: renamed from eth0
[  315.293446] niu 0000:88:00.0 enp136s0f0: Link is up at 10Gb/sec, full duplex
[  495.068363] niu 0000:88:00.0 enp136s0f0: Link is up at 10Gb/sec, full duplex
[  609.461609] niu: Port 0 PMA_PMD(MII_STAT1000) [0001]
[  609.461678] niu: Port 0 USER_DEV3(0x20) [1005]
[  609.461746] niu: Port 0 PHYXS(MII_NWAYTEST) [0000]
[  737.134734] niu: Port 0 PMA_PMD(MII_STAT1000) [0001]
[  737.134802] niu: Port 0 USER_DEV3(0x20) [1005]
[  737.134868] niu: Port 0 PHYXS(MII_NWAYTEST) [0000]
[  748.274763] niu: Port 1 PMA_PMD(MII_STAT1000) [0001]
[  748.274831] niu: Port 1 USER_DEV3(0x20) [1005]
[  748.274897] niu: Port 1 PHYXS(MII_NWAYTEST) [0000]

抱歉,但我无法弄清楚格式以使其清晰易读。从 putty 复制/粘贴会导致返回丢失。

PowerConnect 显示有 10gb 链接,端口设置为访问。我从出厂默认设置更改的唯一其他设置是服务器当前连接的 2 lacp 延迟和登录。这是截至上个月的最新固件。

Sun 卡是否不仅仅是品牌重塑,而是仅使用 SUN 和 RHEL 驱动程序的定制产品?我是否遗漏了一些简单的东西?有什么想法吗?

这是我第一次设置光纤接口,所以我可能忽略了一些简单的东西。

答案1

新的上行链路模块和 XFP 可以解决这个问题。我认为是我的交换机附带的 Cisco SFP+。我认为它们可能仅用于到 Cisco 交换机的上行链路。

都是我的错,当我使用 PowerConnect 6224 中的新上行链路模块启动时,Ubuntu 就获得了一个 IP。花了两个晚上的时间思考这是驱动程序问题。根据 Sun 文档,Sun 为 Redhat 提供的驱动程序称为 nxge。在 ubuntu 中,它显然是 niu。

@chili555,谢谢你的格式化。这里有发布指南/wiki 吗?除了非常基本的 shell 脚本外,我对 HTML 或任何编程一无所知。

相关内容