On 4/24/06, Stefano Melchior <stefano.melchior@openlabs.it> wrote:

my configuration is:

Host side:
# tap0
iface tap0 inet static
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

 I got to put in /etc/network/interfaces the command that you have,

$ cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback

iface eth0 inet dhcp

#Added to test uml:
auto tap0
iface tap0 inet static

On my host:
~$ route -n
Tabela de Roteamento IP do Kernel
Destino         Roteador        MáscaraGen.    Opções Métrica Ref   Uso Iface    U     0      0        0 eth0    U     0      0        0 vmnet8    U     0      0        0 tap0    U     0      0        0 vmnet1              UG    0      0        0 eth0

Uml side:
auto eth0
iface eth0 inet static
up route add -net dev eth0
up route add -net gw

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.

However, the Fedora do not has the /etc/network/interfaces.
I create this file, nothing happened.
How do  I put the commands below?