From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GF65e-0005HU-J0 for garchives@archives.gentoo.org; Mon, 21 Aug 2006 09:29:03 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7L9QR72027102; Mon, 21 Aug 2006 09:26:27 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7L9OO0u003423 for ; Mon, 21 Aug 2006 09:24:24 GMT Received: by nf-out-0910.google.com with SMTP id m19so2153237nfc for ; Mon, 21 Aug 2006 02:24:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=q6u+d2qAzBv3zt1jlZHgHmvVQAKPDte2Mgn3sn0zfGPz9OEzlGAL2Jew34Jlf7ysbvT9q7dpK8W+alUuisJOTDFRukScE7rAP96FpZ1MtuoJ0EZhw2uiQM2QlHP2iEQ+nFPnXnKb5hYEPlvds8OOEkDYduiy/oaBvULIlOsBL9U= Received: by 10.49.8.4 with SMTP id l4mr7483902nfi; Mon, 21 Aug 2006 02:24:24 -0700 (PDT) Received: by 10.78.173.3 with HTTP; Mon, 21 Aug 2006 02:24:24 -0700 (PDT) Message-ID: <5cd9791d0608210224l222e4318h70df9d6afbe54fa2@mail.gmail.com> Date: Mon, 21 Aug 2006 17:24:24 +0800 From: "fei huang" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] the user mode linux can't access network.. In-Reply-To: <200608211033.55909.shrdlu@unlimitedmail.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15447_10191726.1156152264246" References: <5cd9791d0608202338u56e4f4d5n776c7a802e9c2aa@mail.gmail.com> <200608211033.55909.shrdlu@unlimitedmail.org> X-Archives-Salt: 5120ae59-8d2a-448c-863f-50b2eeeef5f4 X-Archives-Hash: dc08fef08b1075ea7f2b40a86b7b662f ------=_Part_15447_10191726.1156152264246 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/21/06, Etaoin Shrdlu wrote: > > On Monday 21 August 2006 08:38, fei huang wrote: > > > did I miss something? or the guide is just incomplete? > > I see you are directly connecting the real host to the virtual host using > tuntap (eg, you don't use uml_switch). I would like the most direct and easy way to access the network, seems the uml_switch needs just a lot more steps to set up the network... not sure though. You probably need to enable forwarding (and possibly masquerading) on the > real box: > > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > echo 1 > /proc/sys/net/ipv4/ip_forward > > The guide DOES mention this, in the section "using an existing network". yep, that's why I get so frustrated, I did exactly the same as what the guide instructs.. any other posibilities that may cause the problem? HTH > -- > gentoo-user@gentoo.org mailing list > > thank you so much.. daniel ------=_Part_15447_10191726.1156152264246 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 8/21/06, Etaoin Shrdlu <shrdlu@unlimitedmail.org> wrote:
On Monday 21 August 2006 08:38, fei huang wrote:

> did I miss something? or the guide is just incomplete?

I see you are directly connecting the real host to the virtual host using
tuntap (eg, you don't use uml_switch).

I would like the most direct and easy way to access the network, seems the uml_switch needs just a lot more steps to set up the network... not sure though.

You probably need to enable forwarding (and possibly masquerading) on the
real box:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

The guide DOES mention this, in the section "using an existing network".

yep, that's why I get so frustrated, I did exactly the same as what the guide instructs..
any other posibilities that may cause the problem?

HTH
--
gentoo-user@gentoo.org mailing list

thank you so much..
daniel
------=_Part_15447_10191726.1156152264246-- -- gentoo-user@gentoo.org mailing list