[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linaro-validation
Subject:    [Linaro-validation] Fwd: Networking on the fast model
From:       paul.larson () linaro ! org (Paul Larson)
Date:       2012-03-29 19:22:36
Message-ID: CAD69n1Cmh_83oMJYTT=3MRc5HX3RFwKFdH1ok0UOhQB5xdVcBg () mail ! gmail ! com
[Download RAW message or body]

Here's the other way to do it...

---------- Forwarded message ----------
From: Vishal Bhoj <vishal.bhoj at linaro.org>
Date: Tue, Mar 27, 2012 at 11:52 AM
Subject: Fwd: Networking on the fast model
To: Paul Larson <paul.larson at linaro.org>, Zygmunt Krynicki <
zygmunt.krynicki at linaro.org>




---------- Forwarded message ----------
From: Dave Martin <dave.martin at linaro.org>
Date: 22 March 2012 16:56
Subject: Networking on the fast model
To: Vishal Bhoj <vishal.bhoj at linaro.org>


git clone git://git.linaro.org/people/dmart/tunsetup.git
cd tunsetup
make
sudo ./tunsetup -c -t tap -o `id -u` tap%d >/tmp/tunsetup.conf
# ^ this creates a fake ethernet device which can be accessed by you

. /tmp/tunsetup.conf
-C motherboard.hostbridge.interfaceName=$TUN_IF

Random link-local addresses are generated automatically.
You can configure boot-time networking on the model by putting:

       ip=$TUN_REMOTEIP::$TUN_LOCALIP:$TUN_NETMASK

...on the kernel command line


If you want to allow the model to talk to the Internet, you also need to
enable NAT:

sudo /bin/sh -c 'echo 1 >/proc/sys/net/ipv4/ip_forward'
sudo iptables -t nat -A POSTROUTING -s $TUN_REMOTEIP -j MASQUERADE

...and copy/paste the contents of /etc/resolv.conf into the model
filesystem's /etc/resolv.conf


The IP and DNS setup stuff could be handled by having a local DHCP
server, but I was too lazy to set that up...


Let me know how you get on!

Cheers
---Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linaro.org/pipermail/linaro-validation/attachments/20120329/6bc1f983/attachment.html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic