containernetworking / plugins

Some reference and example networking plugins, maintained by the CNI team.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

host-device: wrong interface naming

wizath opened this issue · comments

commented
   "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 ?