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

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



 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
address 10.0.0.15
network 10.0.0.0
netmask 255.255.255.0

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




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.

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