[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] TUN network
From: |
Joe Menola |
Subject: |
Re: [Qemu-devel] TUN network |
Date: |
Wed, 28 Jul 2004 20:58:51 -0500 |
User-agent: |
KMail/1.6.2 |
On Thu July 29 2004 10:10 am, Darrin Ritter wrote:
> HI
>
> I have tried all diferent types of configs arround the IP adresses with
> the host at 192.168.1.10 and the win98 guest at 198.168.1.10 or
> 198.168.1.11 set staticly I cant seem to ping the host at 192.168.1.254
> or the freesco router at 192.168.0.1
>
> any ideas?
>
Let's try things manually?
Check if iptables is setup as in
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
(I used webmin to check firewall settings not sure how else to do it)
If host tun0 is 192.168.1.10, Win98 should be configured staticly to
192.168.1.<anything but 10>
Set win98 gateway and dns server to 192.168.1.10.
Shutdown Windows, in terminal as root do
/etc/rc.d/init.d/iptables stop
echo "1" >&/proc/sys/net/ipv4/ip_forward
/etc/rc.d/init.d/iptables start
verify that the contents of /proc/sys/net/ipv4/ip_forward is "1"
if content is "0" then ip_forward is not being set, and tun will fail.
start qemu with -n <path to ifup script> (make sure -user-net is not included
in start command)
If this works then the problem lies in your ifip script(s). If not, I'm lost.
-jm