Hello,
 
This link should help you out:
 
http://user-mode-linux.sourceforge.net/minis.html#nat
 
Jay

 
On 17/11/2007, Jon Rafkind <rafkind@cs.utah.edu> wrote:
I set up tuntap so that my uml instance has an ip, 192.168.0.1, and can
talk to the host, 192.168.0.254, which works fine but when I try to talk
to the rest of the world from uml any command will just hang.

# wget www.google.com
--08:41:58--  http://www.google.com/
          => `index.html'
Resolving www.google.com...
# wget 72.14.253.147
--08:44:58--   http://72.14.253.147/
          => `index.html'
Connecting to 72.14.253.147:80...

When I do 'ifconfig eth5 ... up' I see some lines in dmesg:
* modprobe tun
* ifconfig tap1 192.168.0.254 netmask 255.255.255.255 up
* bash -c echo 1 > /proc/sys/net/ipv4/ip_forward
* route add -host 192.168.0.1 dev tap1
* bash -c echo 1 > /proc/sys/net/ipv4/conf/tap1/proxy_arp

I ran them but I don't have a tap1 device, so for now I replaced it with
eth5. Do I need iptables or something on the host to allow uml to talk
to the rest of the world? I'm using the same /etc/resolv.conf in uml as
the host.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user



--
Please feel free to contact me via instant messaging:

MSN: admin@jayshah.com
Yahoo!: shahjay2003
ICQ: 495690391