On Sun, Apr 23, 2006 at 10:49:44PM -0300, xpto09 wrote: hi, > > So I tried run with tun/tap. > > (kernel and root are from Jeff' site) > > Why can I ping the host from uml? > > > # modprobe -v tun > insmod /lib/modules/2.6.14-kanotix-6/kernel/drivers/net/tun.ko > > # tunctl -u root > Set 'tap0' persistent and owned by uid 0 > my configuration is:
Host side: ========== # tap0 iface tap0 inet static address 10.0.0.15 network 10.0.0.0 netmask 255.255.255.0 pre-up tunctl -u stex pre-up bash -c 'echo 1 > /proc/sys/net/ipv4/ip_forward' pre-up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE post-down tunctl -d stex Uml side: ========= auto eth0 iface eth0 inet static address 10.0.0.10 network 10.0.0.0 netmask 255.255.255.0 up route add -net 0.0.0.0 dev eth0 up route add -net 0.0.0.0 gw 212.34.199.38 dns-nameservers 212.34.194.168 212.34.194.211 Consider that the last couple of line refer to the fact that I need to go outside my host box, so for your purpose you don't need them. I can do whatever I would like with this conf. Thank you SteX -- Stefano Melchior, GPG key = D52DF829 - <[EMAIL PROTECTED]> http://etinarcadiaego.dyndns.org -- http://www.stex.name Skype ID "stefanomelchior"
signature.asc
Description: Digital signature