Jump to content
XPEnology Community

lzxx

Rookie
  • Posts

    1
  • Joined

  • Last visited

Everything posted by lzxx

  1. 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...