Jump to content
XPEnology Community

lzxx

Rookie
  • Posts

    1
  • Joined

  • Last visited

Posts posted by lzxx

  1. On 9/6/2021 at 9:40 AM, Orphée said:

    I added the vmxnet3.ko in /usr/lib/modules

    added in line 285 insmod /lib/modules/vmxnet3.ko

     

    But it does not seems to add it...

    Not loaded

    No network access

    if I do after with telnet :

    insmod /usr/lib/modules/vmxnet3.ko :

     

    # insmod vmxnet3.ko  
    [  379.994870] VMware vmxnet3 virtual NIC driver - version 1.1.30.0-k-NAPI
    [  379.996016] vmxnet3 0000:03:00.0: # of Tx queues : 2, # of Rx queues : 2
    [  379.997886] vmxnet3 0000:03:00.0: irq 74 for MSI/MSI-X
    [  379.998765] vmxnet3 0000:03:00.0: irq 75 for MSI/MSI-X
    [  379.999805] vmxnet3 0000:03:00.0: irq 76 for MSI/MSI-X
    [  380.001417] vmxnet3 0000:03:00.0 eth0: NIC Link is Up 10000 Mbps

     

    but can't activate dhcp

     

    # dhclient eth0
    [  439.463738] type=1400 audit(1630939202.680:8): apparmor="DENIED" operation="mknod" parent=13865 profile="/usr/sbin/dhclient" name="/var/db/dhclient.leases" pid=13866 comm="dhclient" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
    [  439.467297] type=1400 audit(1630939202.684:9): apparmor="DENIED" operation="exec" parent=13866 profile="/usr/sbin/dhclient" name="/etc/dhclient/dhclient-script" pid=13867 comm="dhclient" requested_mask="x" denied_mask="x" fsuid=0 ouid=0

    I wrote the following script (adapted from others) and put it in /usr/local/etc/rc.d folder, and then the vmxnet3 works well. You could modify the path variables and have a try. If you want to use dhcp instead of manual ip, just use synonet --dhcp ethX.

     

    #!/bin/sh
    MODULES_DIR="/usr/lib/modules" MODULES_START="vmxnet3.ko" MODULES_STOP="vmxnet3.ko"

    start_modules()
    {
        echo "--- Load modules ---"

        for i in $MODULES_START;
            do
            echo "Loading $i"
                    insmod $MODULES_DIR/$i
        done
            ifconfig eth1 up
            synonet --manual eth1 192.168.211.2 255.255.255.0
    }

    stop_modules()
    {
        echo "--- Unload modules ---"
            for i in $MODULES_STOP;
            do
            echo "Unloading $i"
                    rmmod $MODULES_DIR/$i
        done
    }

    case "$1" in

        start) start_modules ;;

        stop) stop_modules ;;

        *) echo "usage: $0 { start | stop }" >&2 exit 1 ;;

    esac

×
×
  • Create New...