qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Is there any approach to setup guest only network


From: 郭沐錫
Subject: Re: [Qemu-devel] Is there any approach to setup guest only network
Date: Wed, 17 Nov 2010 02:40:39 +0800

Dear all

Sorry I can't understand what you mean.

I know I still have many things to learn.

Please can you explain more clearly.

Thanks a lot

Best Regards, Sn

2010/11/17 Mulyadi Santosa <address@hidden>
Hi....

2010/11/16 郭沐錫 <address@hidden>:
> Dear all
> I have set two directory for QEMU.
> One of my qemu-ifup is as follow(the other ip address is different)
> #!/bin/sh
> sudo modprobe tun
> sudo /sbin/ifconfig $1 up 192.168.2.52 netmask 255.255.255.0 broadcast
> 192.168.2.255
>
> # IP masquerade
> sudo echo "1" > /proc/sys/net/ipv4/ip_forward
> sudo /sbin/iptables -N nat
> sudo /sbin/iptables -t nat -F
> sudo /sbin/iptables -t nat -A POSTROUTING -s 192.168.2.62 -j MASQUERADE
> sudo /sbin/iptables -t nat -A POSTROUTING -d 192.168.2.62 -o $1


to me, the scripts look good...regarding the missing eth, are you sure
it's not there even if you issue "ifconfig -a" command?

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com


reply via email to

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