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: Mulyadi Santosa
Subject: Re: [Qemu-devel] Is there any approach to setup guest only network
Date: Tue, 16 Nov 2010 23:11:14 +0700

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]