Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 1999 19:19:19 +0100
From:      Guido van Rooij <guido@gvr.org>
To:        freebsd-emulation@freebsd.org
Subject:   FAQ: how to set up networking transparently
Message-ID:  <19991220191919.A92871@gvr.gvr.org>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991220191919.A92871>