Subject: Re: Questions about networking
To: Juan RP <juan@xtraeme.nopcode.org>
From: Quentin Garnier <cube@cubidou.net>
List: port-xen
Date: 03/16/2005 00:21:01
--vaHlF1o0eSLrKmNa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Mar 15, 2005 at 11:38:28PM +0100, Juan RP wrote:
> On Tue, 15 Mar 2005 23:32:13 +0100
> Quentin Garnier <cube@cubidou.net> wrote:
>=20
> > sysctl -w net.inet.ip.forwarding=3D1 should be plenty enough. After th=
at,
> > it really depends on the topology of your network.
>=20
> Ok, so the dom0 box has to be a gateway too, but if my xvifX.X iface
> is configured as:
>=20
> 10.0.0.254 netmask 255.0.0.0
>=20
> Do I have to use these values in domU?
No, but you have to choose an address in the same network. It works
just the same as tap(4). Just imagine the domU is a different computer
linked to dom0 with a cross-over Ethernet cable.
> > FWIW, this afternoon when I could take a try at booting a domU, I used a
> > modified vif-bridge script to do bridging by doing this:
> >=20
> > vif =3D [ 'mac=3Dlalala, bridge=3Dbridge:bridge0:fxp0' ]
>=20
> Does this need a patch? or can I use that right now?
As I said, I modified it. I'll post the diff tomorrow when I'm back at
work.
> > The meaning of the bridge parameter is the following: first it starts
> > with bridge to distinguish between plain ifconfig case and bridge case,
> > then it bridges the vif interface with fxp0 on bridge0, creating it if
> > necessary. I'll send it tomorrow if you want.
> >=20
> > BTW, xentools20 package needs some work (and should include such a
> > script). Also, it really needs to default to 127.0.0.1 for the relevant
> > daemonized parts, I've patched mine for that. I'll have a closer look
> > at this during the next few days.
>=20
> Yes, I've created a few modifications too (plus updating it to 2.0.5),
> I'll try to share them after the pkgsrc freeze.
>=20
> BTW, this package should honour PKG_SYSCONFDIR for the files
> (currently it doesn't).
Clearly.
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--vaHlF1o0eSLrKmNa
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQjdt3dgoQloHrPnoAQLnBggAw1srDk/6zbWrVBp3e1yOdNkuZ0TIIK/n
z6puenbTDY3Va9jxWJ/3TKAwObNZH2uICnSsVXyGz/ZyjdqmRm9L/xQTrwdFH77M
woi/pdd1K/IXp0J1khYe2zvn3Rf1kjjVq5xSqifvbCh1fWe1lusLmPwslwgAWCit
oksaMo4VLRlNGkyL/42PecAM4jP3xOFT0ovJf10oiOzq7aGio7QB6MFHUrj4dHi4
L0qHs6wsZo2TYvTiAHzYnR868J1MpHF2JaILilydyZFfVrDQSwwWXb9XPDAR+ORk
zVG+MNw91zf2duqaqXfSsVOHCQKBX7Yn1kd9DcVsOrrd2ymanTUVHQ==
=ihqq
-----END PGP SIGNATURE-----
--vaHlF1o0eSLrKmNa--