Date: Wed, 20 Sep 2000 19:05:52 -0700 From: Nick Sayer <nsayer@quack.kfu.com> To: Ethan Pierce <ethan@segnet.com> Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: vmware and bridged networking Message-ID: <39C96D00.88FE94E1@quack.kfu.com> References: <39C96855.DC8D5658@segnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------9A5C1B957B466AD4C6A48425 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ethan Pierce wrote: > > Ive just jumped into the dialog of this whole bit that Nick is working > on. Has anyone put together any documentation? Does bridged networking > in vmware need to include the netgraph modules? Please advise. > Desperatly seeking the manual :) Thanks, Here's a vmware.sh script I've gotten to work. It requires the very latest version of ng_ether.c (in RELENG_4, probably in -current, but I don't know). --------------9A5C1B957B466AD4C6A48425 Content-Type: application/x-sh; name="vmware.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vmware.sh" #!/bin/sh # # Start or stop vmware # # $FreeBSD: ports/emulators/vmware2/files/vmware.sh,v 1.6 2000/07/31 21:56:37 knu Exp $ vmware_dir=/usr/local/lib/vmware networking=1 host_ip=192.168.254.1 netmask=255.255.255.0 interface=fxp0 [ -x $vmware_dir/bin/vmware ] || exit if [ `sysctl -n hw.ncpu` -eq 1 ]; then suffix=up else suffix=smp fi exec >/dev/null case $1 in start) kldload ${vmware_dir}/lib/modules/vmmon_${suffix}.ko if [ $networking -eq 1 ]; then # sysctl net.link.ether.bridge_refresh && bridge="_bridge" kldload if_tap.ko echo -n >/compat/linux/dev/vmnet1 ifconfig vmnet1 $host_ip netmask $netmask kldload ng_ether.ko kldload ng_bridge.ko ngctl mkpeer vmnet1: bridge lower link0 ngctl name vmnet1:lower vmnet_bridge ngctl connect vmnet_bridge: ${interface}: link1 lower ngctl connect vmnet_bridge: ${interface}: link2 upper ngctl msg ${interface}: setautosrc 0 ngctl msg ${interface}: setpromisc 1 ngctl msg vmnet1: setautosrc 0 ngctl msg vmnet1: setpromisc 1 # if [ _$bridge != _ ]; then # sysctl -w net.link.ether.bridge_refresh=1 # sysctl -w net.link.ether.bridge=1 # fi fi echo -n " VMware${bridge}" >&2 ;; stop) kldunload vmmon_${suffix} if [ $networking -eq 1 ]; then ifconfig vmnet1 down ifconfig vmnet1 delete $host_ip ngctl shutdown vmnet_bridge: ngctl msg ${interface}: setautosrc 1 ngctl msg ${interface}: setpromisc 0 # sysctl net.link.ether.bridge_refresh && bridge="_bridge" # [ _$bridge != _ ] && sysctl -w net.link.ether.bridge_refresh=1 fi ;; *) echo "usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac --------------9A5C1B957B466AD4C6A48425-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39C96D00.88FE94E1>