Unknown Ethernet Media in ix(4) interface using DAC cable in SFP+ switch

Hello. So I've bought a SFP+ 10gbps switch with 2.5GbE ports. When I connect my NIC () to the switch, i run ifconfig and the media it's not 10Gbits or something similar but rather unknown:

Code:
ix0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=a538b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,HWSTATS>
    ether 5c:b9:01:8b:67:14
    inet 192.168.1.230 netmask 0xffffff00 broadcast 192.168.1.255
    inet 192.168.1.166 netmask 0xffffffff broadcast 192.168.1.166
    inet 192.168.1.182 netmask 0xffffff00 broadcast 192.168.1.255
    inet 192.168.1.173 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 fe80::5eb9:1ff:fe8b:6714%ix0 prefixlen 64 scopeid 0x1
    inet6 2a0c:5a82:e502:d200:5eb9:1ff:fe8b:6714 prefixlen 64 autoconf
    media: Ethernet autoselect (Unknown <rxpause,txpause>)
    status: active
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

I get 10gbps connection. Yes, but the media isn't detected, why is this? Here's the info about the NIC

Code:
~ [icarus] % pciconf -lv | grep -C 4 -i ix
ix0@pci0:4:0:0:    class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x10fb subvendor=0x103c subdevice=0x17d0
    vendor     = 'Intel Corporation'
    device     = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
    class      = network
    subclass   = ethernet
ix1@pci0:4:0:1:    class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x10fb subvendor=0x103c subdevice=0x17d0
    vendor     = 'Intel Corporation'
    device     = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
    class      = network
    subclass   = ethernet

thanks
 
Code:
ix0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=a538b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,HWSTATS>
    ether 5c:b9:01:8b:67:14
    inet 192.168.1.230 netmask 0xffffff00 broadcast 192.168.1.255
    inet 192.168.1.166 netmask 0xffffffff broadcast 192.168.1.166
    inet 192.168.1.182 netmask 0xffffff00 broadcast 192.168.1.255
    inet 192.168.1.173 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 fe80::5eb9:1ff:fe8b:6714%ix0 prefixlen 64 scopeid 0x1
    inet6 2a0c:5a82:e502:d200:5eb9:1ff:fe8b:6714 prefixlen 64 autoconf
    media: Ethernet autoselect (Unknown <rxpause,txpause>)
    status: active
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
    drivername: ix0
    plugged: SFP/SFP+/SFP28 Unknown (Copper pigtail)
    vendor: FIT PN: CUFCD1A-DAG05-EF SN: CF1610TW50X4BC-A DATE: 2016-03-04
Yup. Here
 
So this is a passive DAC?
Those are always hit-or-miss. I've given up on struggling around with those things 10+ years ago. Use AOCs if you must or just go for a pair of real transceivers (which are at the same price point as an AOC).
 
In that case you'd probably have to be content with it getting at least a working link.
If you want it to properly report the link type/speed and also reliably work at line speed, a proper switch and at least some halfway trustworthy transceivers/AOC would be necessary...
TBH, I also buy a lot of stuff from aliexpress, but given that transceivers have become really cheap and used ones absolutely dirt-cheap, I never bothered buying them from aliexpress with completely unknown origin/quality. Same goes for switches - enterpise(-y) gear can be found really cheap and *just works* - the few bucks saved with noname gear isn't worth the trouble of dealing with flaky and often weirdly implemented firmware...
 
Back
Top