I have setup srv-io on mce(4) with a VF mce2:
This interface is added to a bridge.
Then I'm launching a vm. The VM get correctly it's IP using DHCP but I can't ping external IPs or the gateway or connect to another site in the CM. Any idea what could be the issue?
On the vm I have :
Code:
PF {
device: "mlx5_core0";
num_vfs: 8;
}
DEFAULT {
passthrough: true;
}
VF-0 {
Code:
mce2: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=7ead00b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,HWRXTSTMP,NOMAP,TXTLS4,TXTLS6,VXLAN_HWCSUM,VXLAN_HWTSO>
ether aa:32:77:4a:93:eb
inet6 fe80::a832:77ff:fe4a:93eb%mce2 prefixlen 64 scopeid 0x6
media: Ethernet 25GBase-SR <full-duplex,rxpause,txpause>
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether ce:21:ca:4a:87:c7
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 8 priority 128 path cost 2000000
member: mce2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 55
groups: bridge vm-switch viid-4c918@
nd6 options=1<PERFORMNUD>
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: vmnet/freebsd-cloud/0/public
options=80000<LINKSTATE>
ether 58:9c:fc:00:41:5d
groups: tap vm-port
media: Ethernet autoselect
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Opened by PID 3772
On the vm I have :
Code:
root@freebsd:~ # ifconfig -a
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
ether 58:9c:fc:0f:99:39
inet6 fe80::5a9c:fcff:fe0f:9939%vtnet0 prefixlen 64 scopeid 0x1
inet 10.102.1.254 netmask 0xffffff00 broadcast 10.102.1.255
media: Ethernet autoselect (10Gbase-T <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
Code:
root@freebsd:~ # netstat -rn4
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 10.102.1.1 UGS vtnet0
10.102.1.0/24 link#1 U vtnet0
10.102.1.254 link#1 UHS lo0
127.0.0.1 link#2 UH lo0