On Tuesday 25 April 2006 02:42, xpto09 wrote:
> On 4/24/06, Stefano Melchior <[EMAIL PROTECTED]> 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
The below two aren't appropriate for this case
> > 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?
Fedora configures the interfaces through /etc/sysconfig/network* (in 
particular ifcfg-*), however you'd better try for now doing it by hand via 
ifconfig eth0 10.0.0.10 netmask 255.255.255.0

and (if you want, for host access):
route add default gw 10.0.0.15
(which isn't in the setup supplied by Stefano) - it sets the host as default 
gateway. I took the host IP assigned to tap0.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to