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

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




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