El dom, 26-09-2004 a las 16:58, Angel Claudio Alvarez escribió: > El dom, 26-09-2004 a las 09:32, mysker escribió: > > Muchas gracias, pero aún sigo teniendo problemas. > > el fichero /etc/network/interfaces ha quedado así: > > > > # This file describes the network interfaces available on your system > > # and how to activate them. For more information, see interfaces(5). > > > > # The loopback network interface > > auto lo > > iface lo inet loopback > > > > # The primary network interface > > auto eth0 > > iface eth0 inet dhcp > > > > auto eth1 > > iface eth1 inet static > > adress 192.168.0.1 > ^^^^^^^^ > es address > > > netmask 255.255.255.0 > > > > > > tras hacer esto vuelvo a hacer un ifconfig y me sigue poniendo esto: > > prueba a reiniciar la red para que la tarjeta "lea" de nuevo el fichero de configuración y cargue los parámetros que has puesto en ese fichero de configuración: #/etc/init.d/networking restart y luego ... el ifconfig para comprobar que todo ha ido correctamente :-) > > Debian:/etc/network# ifconfig > > eth0 Link encap:Ethernet HWaddr 00:0E:2E:02:B1:8D > > inet addr:62.43.176.104 Bcast:255.255.255.255 Mask:255.255.248.0 > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > RX packets:368011 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:1303 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:1000 > > RX bytes:22260432 (21.2 MiB) TX bytes:96564 (94.3 KiB) > > Interrupt:10 Base address:0xa000 > > > > lo Link encap:Local Loopback > > inet addr:127.0.0.1 Mask:255.0.0.0 > > UP LOOPBACK RUNNING MTU:16436 Metric:1 > > RX packets:210 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:210 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:57384 (56.0 KiB) TX bytes:57384 (56.0 KiB) > > > > > > osea que sigue sin reconocerme la tarjeta de red. :'( > > ¿Alguna otra sugerencia? o ... ¿he hecho algo mal? > > > > > > David Hass wrote: > > > > >Yo tengo una configuración muy parecida. Este es mi /etc/network/interfaces > > > > > >auto lo eth0 eth1 > > > > > >iface lo inet loopback > > > > > >iface eth0 inet dhcp > > > hostname hyperion > > > > > >iface eth1 inet static > > > address 192.168.0.1 > > > netmask 255.255.255.0 > > > broadcast 192.168.255.255 > > > > > > > > >En el otro ordenador, tienes que configurar la red con la IP > > >192.168.0.2, mascar 255.255.255.0 y puerta de enlace 192.168.0.1 (y > > >tus DNS) > > > > > > > > >Ahora solo falta usar iptables para hacer NAT y dar salida al otro ordenador: > > > > > > > > >Creas un script que se arranque al inicio con algo parecido a esto (es > > >muy poco seguro pero sirve par empezar): > > > > > >#!/bin/sh > > ># > > >#basadas parcialmente en www.pello.info/filez/IPTABLES_en_21_segundos.html > > >/sbin/iptables -P INPUT ACCEPT # INPUT se acepta por defecto MAL HECHO > > >/sbin/iptables -F INPUT > > >/sbin/iptables -P OUTPUT ACCEPT # OUTPUT se acepta por defecto, weno.. > > >/sbin/iptables -F OUTPUT > > >/sbin/iptables -P FORWARD ACCEPT # FORWARD se acepta por defecto buf > > >/sbin/iptables -F FORWARD > > >/sbin/iptables -t nat -F > > >## He aqui el forward para la LAN, una regla mágica > > >/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > ># Ese peazo de bit que hay que habilitar > > >echo 1 > /proc/sys/net/ipv4/ip_forward > > >#levantando el animo > > >ifup eth1 > > >ifup eth0 > > > > > > > > >Con esto debería bastar para dar salida a Internet al otro ordenador > > > > > > > > > > > >
Attachment:
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente