[CentOS-es] Probelma con 2 tarjeta de red en CentOS6.3

Francesc Guitart francesc.guitart en enise.fr
Mie Mar 20 09:01:25 UTC 2013


Hola,

Le 20/03/2013 09:24, Antonio Manogué Saiz a écrit :
>
> Buenos días.
>
> Tengo un problema que nunca me había pasado y con el que llevo un tiempo bloqueado.
>
> En un sistema (virtualizado con VMWare) CentOS6.3 tengo 1 tarjeta de red funcionando correctamente. Ahora necesito añadirle una segunda tarjeta de red. La tarjeta se instala correctamente según los registros que quedan en messages . La puedo configurar sin problemas desde system-config-network-tui . Cuando la activo con ifup ethX no me da ningún problema ni veo entradas en los logs que indiquen error, pero a los pocos segundos (2-3 seg) se pierde la conexión con la otra IP. Si hago un ifdown ethX y reinicio network vuelve a funcionar todo correctamente. De hw no parece ya que he probado con tarjetas diferentes y el comportamiento es el mismo. Las vmtools están actualizadas.
>
> Este es un tail del messages cuando he activado-desactivado-reiniciado y los ficheros de configuración de las tarjetas. La que está operativa es la eth1 y la que no me deja configurar es la eth3
>
> [root en lorentz log]# tail -n 40 messages
> Mar 20 07:55:11 lorentz ntpd[1765]: Listening on interface #15 eth3, 10.1.10.68#123 Enabled
> Mar 20 07:55:28 lorentz ntpd[1765]: Deleting interface #14 eth3, fe80::250:56ff:fe8a:45de#123, interface stats: received=0, sent=0, dropped=0, active_time=17 secs
> Mar 20 07:55:28 lorentz ntpd[1765]: Deleting interface #15 eth3, 10.1.10.68#123, interface stats: received=0, sent=0, dropped=0, active_time=17 secs
> Mar 20 07:58:48 lorentz ntpd[1765]: synchronized to 10.1.2.54, stratum 3
> Mar 20 08:00:22 lorentz ntpd[1765]: time reset -34.361615 s
> Mar 20 08:09:26 lorentz system-config-network[4381]: chmod 0644 //etc/sysconfig/networking/devices/ifcfg-eth1
> Mar 20 08:09:26 lorentz system-config-network[4381]: chmod 0644 //etc/sysconfig/networking/devices/ifcfg-eth3
> Mar 20 08:09:46 lorentz ntpd[1765]: synchronized to 10.1.2.54, stratum 3
> Mar 20 09:16:39 lorentz system-config-network[4594]: chmod 0644 //etc/sysconfig/networking/devices/ifcfg-eth1
> Mar 20 09:16:39 lorentz system-config-network[4594]: chmod 0644 //etc/sysconfig/networking/devices/ifcfg-eth3
> Mar 20 09:17:07 lorentz kernel: lo: Disabled Privacy Extensions
> Mar 20 09:17:07 lorentz kernel: e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
> Mar 20 09:17:07 lorentz kernel: ADDRCONF(NETDEV_UP): eth1: link is not ready
> Mar 20 09:17:07 lorentz kernel: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
> Mar 20 09:17:08 lorentz kernel: eth3: intr type 3, mode 0, 2 vectors allocated
> Mar 20 09:17:08 lorentz kernel: eth3: NIC Link is Up 10000 Mbps
> Mar 20 09:17:09 lorentz NET[4971]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf
> Mar 20 09:17:12 lorentz ntpd[1765]: Listening on interface #16 eth3, fe80::250:56ff:fe8a:45de#123 Enabled
> Mar 20 09:17:12 lorentz ntpd[1765]: Listening on interface #17 eth3, 10.1.10.68#123 Enabled
> Mar 20 09:17:47 lorentz NET[5040]: /etc/sysconfig/network-scripts/ifdown-post : updated /etc/resolv.conf
> Mar 20 09:17:49 lorentz ntpd[1765]: Deleting interface #16 eth3, fe80::250:56ff:fe8a:45de#123, interface stats: received=0, sent=0, dropped=0, active_time=37 secs
> Mar 20 09:17:49 lorentz ntpd[1765]: Deleting interface #17 eth3, 10.1.10.68#123, interface stats: received=0, sent=0, dropped=0, active_time=37 secs
> Mar 20 09:18:12 lorentz kernel: lo: Disabled Privacy Extensions
> Mar 20 09:18:12 lorentz kernel: e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
> Mar 20 09:18:12 lorentz kernel: ADDRCONF(NETDEV_UP): eth1: link is not ready
> Mar 20 09:18:12 lorentz kernel: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
> Mar 20 09:18:14 lorentz kernel: eth3: intr type 3, mode 0, 2 vectors allocated
> Mar 20 09:18:14 lorentz kernel: eth3: NIC Link is Up 10000 Mbps
> Mar 20 09:18:15 lorentz NET[5416]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf
> Mar 20 09:18:17 lorentz ntpd[1765]: Listening on interface #18 eth3, fe80::250:56ff:fe8a:45de#123 Enabled
> Mar 20 09:18:17 lorentz ntpd[1765]: Listening on interface #19 eth3, 10.1.10.68#123 Enabled
> Mar 20 09:18:20 lorentz NET[5484]: /etc/sysconfig/network-scripts/ifdown-post : updated /etc/resolv.conf
> Mar 20 09:18:22 lorentz ntpd[1765]: Deleting interface #18 eth3, fe80::250:56ff:fe8a:45de#123, interface stats: received=0, sent=0, dropped=0, active_time=5 secs
> Mar 20 09:18:22 lorentz ntpd[1765]: Deleting interface #19 eth3, 10.1.10.68#123, interface stats: received=0, sent=0, dropped=0, active_time=5 secs
> Mar 20 09:18:44 lorentz kernel: lo: Disabled Privacy Extensions
> Mar 20 09:18:44 lorentz kernel: e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
> Mar 20 09:18:45 lorentz ntpd[1765]: Deleting interface #12 eth1, fe80::250:56ff:fe8a:d03c#123, interface stats: received=0, sent=0, dropped=0, active_time=5096 secs
> Mar 20 09:18:45 lorentz ntpd[1765]: Deleting interface #13 eth1, 10.20.2.24#123, interface stats: received=57, sent=57, dropped=0, active_time=5096 secs
> Mar 20 09:18:47 lorentz ntpd[1765]: Listening on interface #20 eth1, fe80::250:56ff:fe8a:d03c#123 Enabled
> Mar 20 09:18:47 lorentz ntpd[1765]: Listening on interface #21 eth1, 10.20.2.24#123 Enabled
>
> D EVICE= eth1
> HWADDR=00:50:56:8a:d0:3c
> NM_CONTROLLED=no
> ONBOOT=yes
> IPADDR=10.20.2.24
> BOOTPROTO=none
> NETMASK=255.255.0.0
> DNS2=10.1.2.54
> TYPE=Ethernet
> GATEWAY=10.20.1.12
> DNS1=10.20.1.12
> IPV6INIT=no
> USERCTL=no
> ~
>
> DNS1=10.1.1.1
> DEVICE=eth3
> BOOTPROTO=none
> TYPE=Ethernet
> HWADDR=00:50:56:8a:45:de
> NM_CONTROLLED=no
> ONBOOT=no
> IPV6INIT=no
> USERCTL=no
> IPADDR=10.1.10.68
> NETMASK=255.255.0.0
> GATEWAY=10.1.1.1
> ~

No sera un problema de enrutamiento? Puedes mandar la salida de netstat 
-rn antes y después de configurar eth3?

Y iptables? no creo ya que en principio no añadir otra ethernet no 
debería desconectar la primera, pero... Manda la salida de iptables -L 
-n antes y después de configurar eth3.

Y ya de paso, manda también la salida de ifconfig -a antes y después de 
configurar eth3.

>
> Gracias por adelantado.
>

De nada.

-- 
Francesc Guitart






Más información sobre la lista de distribución CentOS-es