virtualsquare / vde-2

GNU General Public License v2.0
217 stars 39 forks source link

vde_switch doesn't have -tap option (mac os x) #29

Open TheFausap opened 3 years ago

TheFausap commented 3 years ago

Hello,

I installed vde package (2.3.2) using brew under Mac OS X Big Sur 11.5.2 I used before vde under Linux, but I tried the same approach with Mac OS without success. The main issue is related to the '-t' option that seems is missing.


sudo vde_switch -t tap0

vde_switch: unrecognized option `-t'
Usage: vde_switch [OPTIONS]
Runs a VDE switch.
(global opts)
  -h, --help                 Display this help and exit
  -v, --version              Display informations on version and exit
  -n  --numports             Number of ports (default 32)
  -x, --hub                  Make the switch act as a hub
  -F, --fstp                 Activate the fast spanning tree protocol
      --macaddr MAC          Set the Switch MAC address
      --priority N           Set the priority for FST (MAC extension)
      --hashsize N           Hash table size
(opts from datasock module)
  -s, --sock SOCK            control directory pathname
  -s, --vdesock SOCK         Same as --sock SOCK
  -s, --unix SOCK            Same as --sock SOCK
  -m, --mode MODE            Permissions for the control socket (octal)
      --dirmode MODE         Permissions for the sockets directory (octal)
  -g, --group GROUP          Group owner for comm sockets
(opts from consmgmt module)
  -d, --daemon               Daemonize vde_switch once run
  -p, --pidfile PIDFILE      Write pid of daemon to PIDFILE
  -f, --rcfile               Configuration file (overrides /etc/vde2/vde_switch.rc and ~/.vderc)
  -M, --mgmt SOCK            path of the management UNIX socket
      --mgmtmode MODE        management UNIX socket access mode (octal)
      --mgmtgroup GROUP      management UNIX socket group name

Report bugs to info@v2.cs.unibo.it

If I run also a man vde_switch, I have

vde_switch [ -hub ] [ -sock commdirpath ] [ -mod octal-mode ] [ -group NAME ] [ -tap interface ] [ -daemon ]

but even if I try with '-tap', I have the same error.

Please, can you help me?

thanks Fausto

mremars commented 2 years ago

Hello,

same issue with vde package from Macports vde2 @2.3.2_0+experimental+pcap+tuntap (active)

Best regards

danielinux commented 2 years ago

Not a MacOS user, but it could be that the brew package has been compiled without tap support.