Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RTNETLINK answers: Operation not supported [closed]

Tags:

In fact, I want to use pipework to add an ipoib interface into docker container. Pipework use ip command to do this. But when running the command...

ip link add link ib0 name ib0.2613 type ipoib

I get

RTNETLINK answers: Operation not supported

I searched google and find this

It list all the kernel configuration that iproute2 need. I try this ,but it dosn't work for me. My OS is "3.19.0-25-generic #26~14.04.1-Ubuntu".

Any help would be appreciate!

like image 465
DABIANZHIXING Avatar asked Jun 01 '16 14:06

DABIANZHIXING


2 Answers

I got a similar error, you should try this:

# apt-get install wireguard-dkms wireguard-tools linux-headers-$(uname -r)

It worked for me, kernel headers missing :shrug:

like image 67
François Avatar answered Oct 02 '22 13:10

François


Maybe you're missing linux-headers. That was my case when I tried to install wireguard and got similar error after typing sudo ip link add dev wg0 type wireguard.

I resolved this by installing the linux-headers corresponding to my kernel version. In my case, I had kernel version 4.9.0-8-amd and so I installed the package linux-headers-4.9.0-8-amd:

sudo apt install linux-headers-4.9.0-8-amd

There is little informations about this on the internet and I had to find this on the wiki of ArchLinux.

like image 20
Booteille Avatar answered Oct 02 '22 13:10

Booteille