Skip to content

Can't work on Centos 6 #6

@Like0x

Description

@Like0x

netsetgo works fine on Ubuntu 20.04, but when I switch to Centos6 and run netsetgo, I get an "ERROR - operation not supported" message.

uname -a

Linux testvul 2.6.32-220.4.1.el6.centos.plus.x86_64 #1 SMP Fri Jan 27 04:56:11 GMT 2012 x86_64 x86_64 x86_64 x86_64 GNU/Linux (GLIBC 2.12)

I've tried tracing some code and found that maybe the problem is not with the netsetgo library, but the underlying is netlink, https://github.com/vishvananda/netlink.

Error in h.BridgeCreator.Create -> Error in netlink.LinkAdd -> Error in req.Execute

I traced it to the h.BridgeCreator.Create function and went into it knowing that it ran to netlink.LinkAdd and returned an error.

if err := netlink.LinkAdd(link); err != nil {

So I'm guessing there may be a problem with the vishvananda/netlink library.

If you are interested you can take a look at it.
github.com/vishvananda/netlink@v1.1.0/nl/nl_linux.go:447
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions