Hi....

2010/11/16 郭沐錫 <maxgreg13...@gmail.com>:
> 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