On Fri, 2008-12-05 at 12:36 -0500, Servilio Afre Puentes wrote:
> Michel,
> 
> Primero, si tu pregunta/problema es diferente, no envíes el mensaje
> repondiendo a un hilo ya existente, crea uno nuevo. Hacer eso es bien
> visto.
> 
> 2008/12/5 Michel Perez <[EMAIL PROTECTED]>:
> > Disculpen la intromision pero mi problema es diferente tengo tres
> > tarjetas de red, 1 al router y el resto a mis dos redes pero no logro
> > que funcionen; cuando funciona una la otra no dice ni hace nada.
> 
> Deja ver si entiendo bien: ¿se desactiva una de las dos que conectan a
> tus redes? ¿o la del enrutador también puede no activarse?

No, para conectarme al enruteador uso la que esta Onboard (Intel), las
otras dos son tarjetas adicionales y la intel siempre me funciona.

> 
> >  Cuando hago:
> >  $ lspci | grep Ethernet
> >   01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> > RTL-8139/8139C/8139C+ (rev 10)
> >   01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> > RTL-8139/8139C/8139C+ (rev 10)
> >   01:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE
> > (LOM) Ethernet Controller (rev 81)
> >
> >  O sea que me reconoce bien las dos tarjetas de red.
> [...]
> > Tengo IP Tables con NAT y me funciona bien pero por la tarjeta que le
> > toco estar activa la otra, nada.
> 
> Bueno, aquí te las lista la herramienta lspci, esto no quiere decir
> que lo reconozca el núcleo y/o que el SO las vaya a configurar
> apropiadamente. Envía la salida de dmesg justo después de haber
> iniciado la máquina, también la de ifconfig, no sé si la configuración
> de iptables pueda crear una situación como la que tienes, pero si
> quieres, y por si, enviala también.
> 

Esta es la salida:
$ dmesg | grep eth
[ 14.598954] eth0: RealTek RTL8139 at 0xd800, 00:40:f4:70:6a:12, IRQ 20
[ 14.598957] eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
[ 14.599634] eth1: RealTek RTL8139 at 0xd400, 00:40:f4:33:f2:96, IRQ 21
[ 14.599636] eth1:  Identified 8139 chip type 'RTL-8139C'
[ 14.627441] e100: eth2: e100_probe: addr 0xfe9fe000, irq 22, MAC addr
00:11:11:04:25:55
[ 15.471155] Driver 'sd' needs updating - please use bus_type methods
[ 15.471442]  sda:<4>Driver 'sr' needs updating - please use bus_type
methods
[ 30.820819] udev: renamed network interface eth0 to eth2
[ 30.867326] udev: renamed network interface eth2_rename to eth0
[ 30.884463] eth1: link down
[ 30.958618] e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
[ 32.668043] ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 42.807717] eth0: no IPv6 routers present
[ 45.833067] eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
[145.148704] eth2: link up, 100Mbps, full-duplex, lpa 0x41E1
[155.746585] eth2: no IPv6 routers present
[422.255056] eth2: link down
[424.661737] eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
[424.662846] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[434.865949] eth1: no IPv6 routers present

Y esta es la otra:
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:11:04:25:55  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:11ff:fe04:2555/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:134 errors:0 dropped:0 overruns:0 frame:0
          TX packets:358 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27136 (26.5 KB)  TX bytes:33965 (33.1 KB)

eth1      Link encap:Ethernet  HWaddr 00:40:f4:33:f2:96  
          inet addr:2.15.1.20  Bcast:2.15.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:f4ff:fe33:f296/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2980 (2.9 KB)  TX bytes:6092 (5.9 KB)
          Interrupt:21 Base address:0xd400 

eth2      Link encap:Ethernet  HWaddr 00:40:f4:70:6a:12  
          inet addr:2.15.1.10  Bcast:2.15.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:f4ff:fe70:6a12/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2374 (2.3 KB)  TX bytes:8561 (8.3 KB)
          Interrupt:20 Base address:0xd800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1470 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1470 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:82304 (80.3 KB)  TX bytes:82304 (80.3 KB)


y el ip addr me devuelve:

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
qlen 1000
    link/ether 00:40:f4:70:6a:12 brd ff:ff:ff:ff:ff:ff
    inet 2.15.1.10/24 brd 2.15.1.255 scope global eth2
    inet6 fe80::240:f4ff:fe70:6a12/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
qlen 1000
    link/ether 00:40:f4:33:f2:96 brd ff:ff:ff:ff:ff:ff
    inet 2.15.1.20/24 brd 2.15.1.255 scope global eth1
    inet6 fe80::240:f4ff:fe33:f296/64 scope link 
       valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
qlen 1000
    link/ether 00:11:11:04:25:55 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::211:11ff:fe04:2555/64 scope link 
       valid_lft forever preferred_lft forever

Ahora mismo despues de reiniciar me trabaja la tarjeta eth1 pero la eth2
nada no me deja ni siquiera hacer ping a la red del otro extremo.

para configurar mi NAT hago esto:

~$ cat infomed-nat.sh
#!/usr/bin/env sh
# 
# activate NAT in my personal Infomed connection
#
# eth0 connected to the router
# eth1 connected to the local network
# eth2 connected to the local network

iptables --flush
iptables --table nat --flush
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface eth0 -j
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
iptables --append FORWARD --in-interface eth2 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

# activate the aditional swap
#swapon /dev/sdb2
#swapon /dev/sdc2

# initialize the subversion server as a daemon
svnserve --daemon --root /media/disk-1/svn-repostry


Que puede ser esto???

Muchas gracias de todos modos.


-- 
Michel Perez                                  )\._.,--....,'``.    
Ulrico Software Group                        /,   _.. \   _\  ;`._ ,.
Nihil est tam arduo et difficile human      `._.-(,_..'--(,_..'`-.;.'
mens vincat.                   Séneca.   ============================= 


---------------------------------------
    Red Telematica de Salud - Cuba
          CNICM - Infomed
_______________________________________________
Cancelar suscripción
https://listas.softwarelibre.cu/mailman/listinfo/linux-l
Buscar en el archivo
http://listas.softwarelibre.cu/buscar/linux-l

Responder a