I have x710-DA4.
First port is used as WAN.
Next 3 ports I put through SR_IOV-> working fine. When I passthrough more than one VF port to OpenWRT (or any another VM) (02:ef:c7:54:e7:d1/e1/f1) client can't connect to OpenWRT VM. Can't ping it.
Same problem @florian https://mattventura.net/2022/05/11/openwrt-on-sr-iov-good-idea/comment-page-1/#comment-678587
LDAP is off
All VMs with VF card can see each over.
OpenWRT with one VF card and one PF card is working properly. More than one VF card making a problem.
config sr-iov:
First port is used as WAN.
Next 3 ports I put through SR_IOV-> working fine. When I passthrough more than one VF port to OpenWRT (or any another VM) (02:ef:c7:54:e7:d1/e1/f1) client can't connect to OpenWRT VM. Can't ping it.
Same problem @florian https://mattventura.net/2022/05/11/openwrt-on-sr-iov-good-idea/comment-page-1/#comment-678587
LDAP is off
All VMs with VF card can see each over.
OpenWRT with one VF card and one PF card is working properly. More than one VF card making a problem.
config sr-iov:
Code:
Unit]
Description=Script to enable SR-IOV on boot
[Service]
Type=oneshot
# Starting SR-IOV
ExecStart=/usr/bin/bash -c '/usr/bin/echo 5 > /sys/bus/pci/devices/0000:85:00.3/sriov_numvfs'
ExecStart=/usr/bin/bash -c '/usr/bin/echo 5 > /sys/bus/pci/devices/0000:85:00.2/sriov_numvfs'
ExecStart=/usr/bin/bash -c '/usr/bin/echo 5 > /sys/bus/pci/devices/0000:85:00.1/sriov_numvfs'
# Setting static MAC for VFs
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f3np3 vf 0 mac 02:ef:c7:54:e7:f1 trust on spoofchk off vlan 100'
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f3np3 vf 1 mac 02:ef:c7:54:e7:f2 vlan 100 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f3np3 vf 2 mac 02:ef:c7:54:e7:f3 vlan 100 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f3np3 vf 3 mac 02:ef:c7:54:e7:f4 vlan 100 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f3np3 vf 4 mac 02:ef:c7:54:e7:f5 vlan 100 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f2np2 vf 0 mac 02:ef:c7:54:e7:e1 trust on spoofchk off vlan 110'
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f2np2 vf 1 mac 02:ef:c7:54:e7:e2 vlan 110 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f2np2 vf 2 mac 02:ef:c7:54:e7:e3 vlan 110 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f2np2 vf 3 mac 02:ef:c7:54:e7:e4 vlan 110 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f2np2 vf 4 mac 02:ef:c7:54:e7:e5 vlan 110 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f1np1 vf 0 mac 02:ef:c7:54:e7:d1 trust on spoofchk off vlan 120'
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f1np1 vf 1 mac 02:ef:c7:54:e7:d2 trust on spoofchk off vlan 120'
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f1np1 vf 2 mac 02:ef:c7:54:e7:d3 vlan 120 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f1np1 vf 3 mac 02:ef:c7:54:e7:d4 vlan 120 spoofchk off '
ExecStart=/usr/bin/bash -c '/usr/bin/ip link set enp133s0f1np1 vf 4 mac 02:ef:c7:54:e7:d5 vlan 120 spoofchk off '
#ExecStart=/usr/bin/bash -c '/usr/bin/ip link set <name of your NIC2> vf M mac <mac addr of vf M of NIC2>'
#ExecStart=/usr/sbin/powertop --auto-tune
ExecStart=/usr/bin/bash -c '/usr/bin/systemctl restart networking'
#ExecStart=/usr/bin/bash -c '/usr/bin/sleep 1'
ExecStart=/usr/bin/bash -c '/sbin/ifreload -a'
Last edited: