From owner-freebsd-emulation Wed Sep 20 19: 5:55 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 6CC3137B422 for ; Wed, 20 Sep 2000 19:05:52 -0700 (PDT) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.11.0/8.9.3) with ESMTP id e8L25qe52588; Wed, 20 Sep 2000 19:05:52 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.11.0//ident-1.0) id e8L25qn16712; Wed, 20 Sep 2000 19:05:52 -0700 (PDT) Message-ID: <39C96D00.88FE94E1@quack.kfu.com> Date: Wed, 20 Sep 2000 19:05:52 -0700 From: Nick Sayer X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: Ethan Pierce Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: vmware and bridged networking References: <39C96855.DC8D5658@segnet.com> Content-Type: multipart/mixed; boundary="------------9A5C1B957B466AD4C6A48425" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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