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

List:       user-mode-linux-user
Subject:    Re: [uml-user] getting uml talk to outside network
From:       "Jay Shah" <jayshah31 () gmail ! com>
Date:       2007-11-17 12:46:56
Message-ID: d56bcc2d0711170446m2f7b5325j30f0873bd3d2e230 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div>Hello,</div>
<div>&nbsp;</div>
<div>This link should help you out:</div>
<div>&nbsp;</div>
<div><a href="http://user-mode-linux.sourceforge.net/minis.html#nat">http://user-mode-linux.sourceforge.net/minis.html#nat</a></div>
 <div>&nbsp;</div>
<div>Jay<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 17/11/2007, <b class="gmail_sendername">Jon \
Rafkind</b> &lt;<a href="mailto:rafkind@cs.utah.edu">rafkind@cs.utah.edu</a>&gt; \
wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I set up tuntap so that my uml instance \
has an ip, <a href="http://192.168.0.1">192.168.0.1</a>, and can<br> talk to the \
host, <a href="http://192.168.0.254">192.168.0.254</a>, which works fine but when I \
try to talk<br>to the rest of the world from uml any command will just hang.<br><br># \
wget <a href="http://www.google.com">www.google.com \
</a><br>--08:41:58--&nbsp;&nbsp;<a \
href="http://www.google.com/">http://www.google.com/</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt; \
`index.html&#39;<br>Resolving www.google.com...<br># wget <a \
href="http://72.14.253.147">72.14.253.147</a><br>--08:44:58--&nbsp;&nbsp; <a \
href="http://72.14.253.147/">http://72.14.253.147/</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt; \
`index.html&#39;<br>Connecting to <a \
href="http://72.14.253.147:80">72.14.253.147:80</a>...<br><br>When I do &#39;ifconfig \
eth5 ... up&#39; I see some lines in dmesg: <br>* modprobe tun<br>* ifconfig tap1 <a \
href="http://192.168.0.254">192.168.0.254</a> netmask <a \
href="http://255.255.255.255">255.255.255.255</a> up<br>* bash -c echo 1 &gt; \
/proc/sys/net/ipv4/ip_forward<br>* route add -host  <a \
href="http://192.168.0.1">192.168.0.1</a> dev tap1<br>* bash -c echo 1 &gt; \
/proc/sys/net/ipv4/conf/tap1/proxy_arp<br><br>I ran them but I don&#39;t have a tap1 \
device, so for now I replaced it with<br>eth5. Do I need iptables or something on the \
host to allow uml to talk <br>to the rest of the world? I&#39;m using the same \
/etc/resolv.conf in uml as<br>the \
host.<br><br>-------------------------------------------------------------------------<br>This \
SF.net email is sponsored by: Microsoft <br>Defy all challenges. Microsoft(R) Visual \
Studio 2005.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http \
://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________________________________________
 <br>User-mode-linux-user mailing list<br><a \
href="mailto:User-mode-linux-user@lists.sourceforge.net">User-mode-linux-user@lists.sourceforge.net</a><br><a \
href="https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user"> \
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user</a><br></blockquote></div><br><br \
clear="all"><br>-- <br>Please feel free to contact me via instant \
messaging:<br><br>MSN: <a href="mailto:admin@jayshah.com"> \
admin@jayshah.com</a><br>Yahoo!: shahjay2003<br>ICQ: 495690391 



-------------------------------------------------------------------------
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


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

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