Estimados:
Mi red corporativa me tiene cansado.
Paso a explicarme:
Tengo un equipo con Debian "jessie" desde hace dos años, que ha corrido
sin inconvenientes en la red corporativa, con las configuraciones que
más abajo detallo.
Hace un mes cambié de lugar físico, pero mantengo computadora.
Ya he cambiado el cable que me une hasta el "switch", funciona
perfectamente.
Si conecto mi máquina con "jessie", es IMPOSIBLE obtener dirección IP.
Si conecto una máquina con WinXP/7 al cable, obtiene dirección IP sin
inconvenientes.
Si de mi máquina con"jessie", QUE NO TIENE IP, inicio un VirtualBox con
WinXP, obtiene IP sin inconvenientes.
Es imposible iniciar la red en forma manual con "ifup".
Con "ifconfig", A VECES, NO SIEMPRE, sí se inicia.
Reinstalé todos los paquetes relativos a dhcp-client.
He "tocado" el archivo /etc/dhcp/dhclient.conf, adicionándole la línea
send vendor-class-identifier "MSFT 5.0";
que en algún foro lo ví como una manera de reportarse a los equipos como
una terminal "Microsoft", y ha solucionado algún problema similar.
Fracasé con todo éxito.
¿Cuál es el problema?
Que tengo dos redes en la máquina, y luego del inicio del servicio de
"networking", /etc/network/interfaces mediante, debo utilizar una serie
de parámetros de ruteo para evitar colisiones.
Ruteo que SIEMPRE funcionó sin inconvenientes, hasta que me cambié de
escritorio (físico, el de madera, se entiende).
Como no obtiene dirección IP para eth0, no se rutea como debe, y debo
hacero "a mano" luego de iniciado el sistema, si es que he logrado
obtener dirección IP.
¿Mi miedo 1?
System-d / systemctl
¿Mi miedo 2?
Que la "ferretería" (switch, routers, etc.), tengan "algo"
Windows-dependiente.
Escucho opiniones.
Desde ya, muchas gracias.
JAP
#########################################################################
### Configuración de redes
# /etc/network/interfaces
# 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
# Intranet
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
dns-nameserver 10.115.1.201
# Internet
auto eth1
allow-hotplug eth1
iface eth1 inet dhcp
dns-nameserver 190.103.220.2
dns-nameserver 8.8.8.8
# Enrutamiento
post-up ip route change default via 192.168.2.1 dev eth1
post-up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.116.1.254 dev eth0
# Enrutamiento
post-up route add -host 10.96.1.205 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.0.231 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.12.201 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.0.202 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.0.216 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.0.211 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.0.215 gw 10.116.1.254 dev eth0
post-up route add -host 10.1.0.224 gw 10.116.1.254 dev eth0
post-up route add -host 10.3.10.118 gw 10.116.1.254 dev eth0
#########################################################################
### Reporte estado de redes
# ifconfig
eth0 Link encap:Ethernet HWaddr d0:50:99:21:90:8f
inet6 addr: fe80::d250:99ff:fe21:908f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:387 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32603 (31.8 KiB) TX bytes:3036 (2.9 KiB)
eth1 Link encap:Ethernet HWaddr a0:f3:c1:01:da:92
inet addr:192.168.2.52 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::a2f3:c1ff:fe01:da92/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9124 errors:0 dropped:0 overruns:0 frame:0
TX packets:7180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2566359 (2.4 MiB) TX bytes:848589 (828.7 KiB)
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:65536 Metric:1
RX packets:857 errors:0 dropped:0 overruns:0 frame:0
TX packets:857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90841 (88.7 KiB) TX bytes:90841 (88.7 KiB)
#########################################################################
### Ruteo luego de un arranque de sistema o /etc/init.d/networking start
### Se ve que por no levantar eth0, no rutea como debe
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
#########################################################################
### Intento de obtener dirección DHCP
# ifdown eth0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/d0:50:99:21:90:8f
Sending on LPF/eth0/d0:50:99:21:90:8f
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.115.1.201 port 67
# ifup eth0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/d0:50:99:21:90:8f
Sending on LPF/eth0/d0:50:99:21:90:8f
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
#########################################################################
### Iniciar interfaz en forma manual con "ifconfig"
# ifconfig eth0 up
# ifconfig
eth0 Link encap:Ethernet HWaddr d0:50:99:21:90:8f
inet addr:10.116.1.187 Bcast:10.116.1.255 Mask:255.255.255.0
inet6 addr: fe80::d250:99ff:fe21:908f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16941 errors:0 dropped:0 overruns:0 frame:0
TX packets:379 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1738401 (1.6 MiB) TX bytes:101825 (99.4 KiB)
#########################################################################
### Máquina virtual WinXP dentro de "jessie" que obtiene IP por puente a
eth0
C:\>ipconfig -all
Configuración IP de Windows
Nombre del host . . . . . . . . . : WinXP-Oracle
Sufijo DNS principal . . . . . . :
Tipo de nodo. . . . . . . . . . . : híbrido
Enrutamiento habilitado. . . . . .: No
Proxy WINS habilitado. . . . . : No
Lista de búsqueda de sufijo DNS: xxxx.zzzzz
Adaptador Ethernet Conexión de área local :
Sufijo de conexión específica DNS : xxxx.zzzzz
Descripción. . . . . . . . . . . : Adaptador Ethernet PCI AMD
PCNET Fam
ily
Dirección física. . . . . . . . . : 08-00-27-44-CA-59
DHCP habilitado. . . . . . . . . : No
Autoconfiguración habilitada. . . : Sí
Dirección IP. . . . . . . . . . . : 10.116.1.180
Máscara de subred . . . . . . . . : 255.255.255.0
Puerta de enlace predeterminada : 10.116.1.254
Servidor DHCP . . . . . . . . . . : 10.115.1.201
Servidores DNS . . . . . . . . . .: 10.115.1.201
10.1.12.201
Servidor WINS principal . . . . . : 10.115.1.201
Servidor WINS secundario . . . . : 10.1.0.203
Concesión obtenida . . . . . . . : lunes, 14 de marzo de 2016
11:14:43
Concesión expira . . . . . . . . .: martes, 22 de marzo de 2016
11:14:43