qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] usermode-networking problem


From: Adrian Smarzewski
Subject: Re: [Qemu-devel] usermode-networking problem
Date: Mon, 24 May 2004 22:10:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040511

Carlos Valiente wrote:
Yes: On your host you have to:

1. Enable IP forwarding:

# echo 1 > /proc/sys/net/ipv4/ip_forward

2. Enable masquerading

# iptables -t nat -A POSTROUTING        \
        -s 10.0.0.0/8                   \
        -d ! 10.0.0.0/8 -j MASQUERADE

doesn't work for me :(

address@hidden root # cat /proc/sys/net/ipv4/ip_forward
1

address@hidden root # ifconfig
<...>
eth1      Link encap:Ethernet  HWaddr 00:02:44:3C:06:53
          inet addr:112.2.2.17  Bcast:112.2.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10535515 (10.0 Mb)  TX bytes:1478199 (1.4 Mb)
          Interrupt:11 Base address:0xee00
<...>

address@hidden root # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
112.2.2.0       0.0.0.0         255.255.255.0   U     0      0        0 eth1
<...>
0.0.0.0         112.2.2.11      0.0.0.0         UG    0      0        0 eth1

dhcp on 10.0.2.2 and dns on 10.0.2.3 are working.

--
Pozdrowienia
Adrian Smarzewski




reply via email to

[Prev in Thread] Current Thread [Next in Thread]