containernetworking / plugins

Some reference and example networking plugins, maintained by the CNI team.
Apache License 2.0
2.23k stars 788 forks source link

host-device: wrong interface naming #923

Open wizath opened 1 year ago

wizath commented 1 year ago
   "cniVersion": "0.4.0",
   "name": "test",
   "plugins": [
      {
         "type": "host-device",
     "device": "vxcan1"
      },

I'm trying to move vxcan1 interface to alpine:3.18 container, but upon entering the container shell, the device is named eth0 Below is dmesg log indicating renaming of the interface:

[ 5669.641031] eth0: renamed from vxcan1

It works fine, but the naming is wrong. Any ideas how to fix it ?