From owner-freebsd-emulation Mon Dec 20 10:19:27 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gvr.gvr.org (gvr.gvr.org [194.151.74.97]) by hub.freebsd.org (Postfix) with ESMTP id 83B3614EAE for ; Mon, 20 Dec 1999 10:19:21 -0800 (PST) (envelope-from guido@gvr.org) Received: by gvr.gvr.org (Postfix, from userid 657) id 5DF66A853; Mon, 20 Dec 1999 19:19:19 +0100 (CET) Date: Mon, 20 Dec 1999 19:19:19 +0100 From: Guido van Rooij To: freebsd-emulation@freebsd.org Subject: FAQ: how to set up networking transparently Message-ID: <19991220191919.A92871@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What I do is the following: Suppose the FreeBSD box has interface if0 on your ethernet. Suppose further it has ip address x.1 where x is the network number. Suppose further that you want your guest os to be known as ip x.2. You then do the following: 1) Setup the vmnet interface in the guest OS with ip x.2 and ip alias 192.168.254.1 (in any case an ip number on an unused network in your environment) 2) Set up the FreeBSD box with vmnet interface 192.168.254.2 and ping the guest. 3) do an arp -na and write down the mac address (say M) that matches 192.168.254.1 4) On the FreeBSD box do: arp -s 192.168.254.1 M pub arp -s x.2 M pub route add x.2 192.168.254.1 sysctl -w net.inet.ip.forwarding=1 sysctl -w net.link.ether.inet.proxyall=1 This should do it. Remember that ethernet broadcasts will not be passed through the FreeBSD box. If you need that, don't set the proxyall and fowarding sysctls, but use dummynet on the FreeBSD box. With Windows NT you will want to hard configure your WINS server. -Guido To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message