I can't get any further here, so far everything looks good, but the step with assigning the IP address does not work.
Maybe it's because of network-manager, should I switch to netplan?
ConnectX-5 driver in use is version
MLNX_OFED_LINUX-23.07-0.5.1.2-ubuntu23.04-x86_64
root@kubu01:~# ip link set enp5s0f2v0 vf 0 mac 00:22:33:44:55:66
Cannot find device "enp5s0f2v0"
After installing WinOF2 in Win11 22H2, the VF shows error code 10, I tried version MLNX_WinOF2-3_10_52010 and MLNX_WinOF2-23_7_50000.
edit: I followed this guide
enterprise-support.nvidia.com
ip a shows the random MAC address, do I only have to set them if I want to have certain MAC addresses?
dmesg
Maybe it's because of network-manager, should I switch to netplan?
ConnectX-5 driver in use is version
MLNX_OFED_LINUX-23.07-0.5.1.2-ubuntu23.04-x86_64
root@kubu01:~# ip link set enp5s0f2v0 vf 0 mac 00:22:33:44:55:66
Cannot find device "enp5s0f2v0"
After installing WinOF2 in Win11 22H2, the VF shows error code 10, I tried version MLNX_WinOF2-3_10_52010 and MLNX_WinOF2-23_7_50000.
edit: I followed this guide
ESPCommunity
Code:
root@kubu01:~# echo 4 > /sys/class/net/enp5s0f0np0/device/sriov_numvfs
root@kubu01:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 58:11:22:d3:8e:21 brd ff:ff:ff:ff:ff:ff
altname enp10s0
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br3 state UP mode DEFAULT group default qlen 1000
link/ether 58:11:22:d3:8e:20 brd ff:ff:ff:ff:ff:ff
altname enp11s0
4: enp5s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 1c:34:da:71:b8:3a brd ff:ff:ff:ff:ff:ff
vf 0 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off, query_rss off
vf 1 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off, query_rss off
vf 2 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off, query_rss off
vf 3 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state auto, trust off, query_rss off
5: enp5s0f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 1c:34:da:71:b8:3b brd ff:ff:ff:ff:ff:ff
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:91:bb:4a brd ff:ff:ff:ff:ff:ff
7: br3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 1a:a3:4d:c6:1a:75 brd ff:ff:ff:ff:ff:ff
8: enp5s0f2v0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether a6:1f:d4:0d:2e:77 brd ff:ff:ff:ff:ff:ff permaddr ca:2e:a1:3e:fd:1d
9: enp5s0f3v1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 7a:e2:15:27:e1:03 brd ff:ff:ff:ff:ff:ff permaddr 5e:6a:88:16:e6:be
10: enp5s0f4v2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 86:fb:e6:c4:45:6f brd ff:ff:ff:ff:ff:ff permaddr be:81:e3:32:6c:41
11: enp5s0f5v3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 22:be:bb:30:13:87 brd ff:ff:ff:ff:ff:ff permaddr aa:9c:e5:95:0f:cb
root@kubu01:~#
root@kubu01:~# lspci -D | grep Mellanox
0000:05:00.0 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex]
0000:05:00.1 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex]
0000:05:00.2 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex Virtual Function]
0000:05:00.3 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex Virtual Function]
0000:05:00.4 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex Virtual Function]
0000:05:00.5 Ethernet controller: Mellanox Technologies MT28800 Family [ConnectX-5 Ex Virtual Function]
root@kubu01:~#
root@kubu01:~#
root@kubu01:~#
root@kubu01:~#
root@kubu01:~# echo 0000:05:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind
root@kubu01:~# ip link set enp5s0f2v0 vf 0 mac 00:22:33:44:55:66
Cannot find device "enp5s0f2v0"
ip a shows the random MAC address, do I only have to set them if I want to have certain MAC addresses?
Code:
9: enp5s0f3v1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 7a:e2:15:27:e1:03 brd ff:ff:ff:ff:ff:ff permaddr 5e:6a:88:16:e6:be
10: enp5s0f4v2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 86:fb:e6:c4:45:6f brd ff:ff:ff:ff:ff:ff permaddr be:81:e3:32:6c:41
11: enp5s0f5v3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 22:be:bb:30:13:87 brd ff:ff:ff:ff:ff:ff permaddr aa:9c:e5:95:0f:cb
12: enp5s0f2v0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether a6:1f:d4:0d:2e:77 brd ff:ff:ff:ff:ff:ff permaddr 72:bc:0e:e9:de:40
inet6 fe80::c57f:7a8f:fa2c:6ee4/64 scope link noprefixroute
valid_lft forever preferred_lft forever
dmesg
Code:
[ 213.939668] mlx5_core 0000:05:00.0: E-Switch: Enable: mode(LEGACY), nvfs(4), necvfs(0), active vports(5)
[ 214.045845] pci 0000:05:00.2: [15b3:101a] type 00 class 0x020000
[ 214.045906] pci 0000:05:00.2: enabling Extended Tags
[ 214.046663] pci 0000:05:00.2: Adding to iommu group 37
[ 214.046806] mlx5_core 0000:05:00.2: enabling device (0000 -> 0002)
[ 214.046869] mlx5_core 0000:05:00.2: firmware version: 16.35.2000
[ 214.193334] mlx5_core 0000:05:00.2: Rate limit: 127 rates are supported, range: 0Mbps to 97656Mbps
[ 214.206808] mlx5_core 0000:05:00.2: Assigned random MAC address ca:2e:a1:3e:fd:1d
[ 214.358497] mlx5_core 0000:05:00.2: MLX5E: StrdRq(1) RqSz(8) StrdSz(2048) RxCqeCmprss(0 basic)
[ 214.360252] mlx5_core 0000:05:00.2 enp5s0f2v0: renamed from eth0
[ 214.413264] pci 0000:05:00.3: [15b3:101a] type 00 class 0x020000
[ 214.413326] pci 0000:05:00.3: enabling Extended Tags
[ 214.414088] pci 0000:05:00.3: Adding to iommu group 38
[ 214.414211] mlx5_core 0000:05:00.3: enabling device (0000 -> 0002)
[ 214.414272] mlx5_core 0000:05:00.3: firmware version: 16.35.2000
[ 214.561109] mlx5_core 0000:05:00.2 enp5s0f2v0: Link up
[ 214.563182] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0f2v0: link becomes ready
[ 214.573143] mlx5_core 0000:05:00.3: Rate limit: 127 rates are supported, range: 0Mbps to 97656Mbps
[ 214.601312] mlx5_core 0000:05:00.3: Assigned random MAC address 5e:6a:88:16:e6:be
[ 214.753151] mlx5_core 0000:05:00.3: MLX5E: StrdRq(1) RqSz(8) StrdSz(2048) RxCqeCmprss(0 basic)
[ 214.754694] mlx5_core 0000:05:00.3 enp5s0f3v1: renamed from eth0
[ 214.808717] pci 0000:05:00.4: [15b3:101a] type 00 class 0x020000
[ 214.808779] pci 0000:05:00.4: enabling Extended Tags
[ 214.809536] pci 0000:05:00.4: Adding to iommu group 39
[ 214.809663] mlx5_core 0000:05:00.4: enabling device (0000 -> 0002)
[ 214.809721] mlx5_core 0000:05:00.4: firmware version: 16.35.2000
[ 214.957738] mlx5_core 0000:05:00.3 enp5s0f3v1: Link up
[ 214.969887] mlx5_core 0000:05:00.4: Rate limit: 127 rates are supported, range: 0Mbps to 97656Mbps
[ 215.070126] mlx5_core 0000:05:00.4: Assigned random MAC address be:81:e3:32:6c:41
[ 215.221655] mlx5_core 0000:05:00.4: MLX5E: StrdRq(1) RqSz(8) StrdSz(2048) RxCqeCmprss(0 basic)
[ 215.223078] mlx5_core 0000:05:00.4 enp5s0f4v2: renamed from eth0
[ 215.277798] pci 0000:05:00.5: [15b3:101a] type 00 class 0x020000
[ 215.277862] pci 0000:05:00.5: enabling Extended Tags
[ 215.278623] pci 0000:05:00.5: Adding to iommu group 40
[ 215.278739] mlx5_core 0000:05:00.5: enabling device (0000 -> 0002)
[ 215.278798] mlx5_core 0000:05:00.5: firmware version: 16.35.2000
[ 215.415312] mlx5_core 0000:05:00.4 enp5s0f4v2: Link up
[ 215.451869] mlx5_core 0000:05:00.5: Rate limit: 127 rates are supported, range: 0Mbps to 97656Mbps
[ 215.542135] mlx5_core 0000:05:00.5: Assigned random MAC address aa:9c:e5:95:0f:cb
[ 215.576065] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0f3v1: link becomes ready
[ 215.578626] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0f4v2: link becomes ready
[ 215.696464] mlx5_core 0000:05:00.5: MLX5E: StrdRq(1) RqSz(8) StrdSz(2048) RxCqeCmprss(0 basic)
[ 215.697499] mlx5_core 0000:05:00.5 enp5s0f5v3: renamed from eth0
[ 215.859625] mlx5_core 0000:05:00.5 enp5s0f5v3: Link up
[ 216.594386] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0f5v3: link becomes ready
Last edited: