Re: Configuracion de red no funciona
El lun, 17-03-2003 a las 16:22, Pablo Wolter escribió:
> Hola:
>
> Este es un problema muy extrano, resulta que tengo que llevar mi laptop con Debian Sid 2.4.18 constantemente a terreno y meterlo en una LAN donde hay puras maquinas Compaq con TRU64, SCO etc. Y cada vez que trato de configurar la red, primero cambia la IP, la netmask, y el default router, pero siempre al hacer ping a cualquier equipo de esta red no responde y mucho menos los telnet. La unica solucion (VERGUENZA PARA MI) es bootear con windows, donde modifico los parametros arriba senalados y sin problemas entro a los equipos a trabajar, lo que con mis colegas ha sido un desprestigio sobre linux ya que en dos ocaciones que intente con linux nada, y siempre resulta con guindou$.
>
> Ayuda plis, a ver si me pueden dar una pista porque hasta booteo la maquina con estos cambios puestos en /etc/network/interfaces y nada.
>
> Gracias.
>
> Pablo.
A ver.
Entiendo que quieres modificar los parámetros en la configuración de la
red del portátil al llevarlo de un sitio a otro. Pues si he entendido
bien y es eso lo que quieres, creo que la solución a tu problema tiene
un nombre: netenv
Yo lo uso y va genial. Al arrancar el portátil decido con qué entorno de
red voy a trabajar y ya está. He aquí mis ejemplos de configuración en 3
entornos distintos (se han ocultado datos en aras a la
confidencialidad). De hecho, no hace falta arrancar para elegir el
entorno. Puedes modificarlo en "plan caliente" ejecutando la orden
netenv y eligiendo el perfil que desees.
Entorno de red habitual:
netenv_id=hermes_en_la_UJI
export IPADDR=xxx.yyy.zzz.rrr
export NETWORK=xxx.yyy.zzz.rrr
export NETMASK=xxx.yyy.zzz.rrr
export BROADCAST=xxx.yyy.zzz.rrr
export GATEWAY=xxx.yyy.zzz.rrr
export DOMAIN=xxx.uji.es
export DNS_1=xxx.yyy.zzz.rrr
export DNS_2=xxx.yyy.zzz.rrr
export PROFILE=default
Otro en un Instituto Tecnológico usando IPs privadas:
netenv_id=hermes_en_el_ITI
export IPADDR=192.168.1.172
export NETWORK=192.168.1.0
export NETMASK=255.255.255.0
export BROADCAST=192.168.1.255
export GATEWAY=192.168.1.251
export DOMAIN=xxx.upv.es
export DNS_1=192.168.1.252
export PROFILE=default
Y otro para conectarlo a la red de las aulas:
netenv_id=hermes_en_aula_104
export IPADDR=150.128.xxx.yyy
export NETWORK=150.128.xxx.yyy
export NETMASK=255.255.248.0
export BROADCAST=150.128.xxx.yyy
export GATEWAY=150.128.xxx.yyy
export DNS_1=150.128.xxx.yyy
export PROFILE=default
Finalmente, en la documentación del paquete vienen ejemplos para adaptar
el uso de netenv en tu máquina. En mi caso, modifiqué el fichero
/etc/pcmcia/network.opts. Te adjunto sus nuevos contenidos.
Espero que esto sirva para solucionar tu problema.
Saludos,
--
================================================================================
JUAN CARLOS AMENGUAL Nothing but the knife to live for
UNIVERSIDAD JAUME I One life all I need
DEPARTAMENTO DE INFORMÁTICA Give me one good reason
CAMPUS DE RIU SEC, EDIFICIO TI Give me more s.....
CASTELLON, 12071. SPAIN. Amphetamine logic!!!
Phone: +34 964 728361 Andrew Eldritch (The Sisters of Mercy)
Fax: +34 964 728435 - "Amphetamine Logic", First and Last and
e-mail: jcamen@inf.uji.es Always, 1985, WEA Rec. -
================================================================================
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO. In short, the network address is the IP
# address masked by the netmask.
#
# Caveat:
#
# This is basically the file network.opts as it comes with the
# Debian-Package pcmcia-cs 3.0.0-3. I have made one change to make it
# work with the package netenv. All changes can be done by netenv. See
# also comments below. If you want to use it, copy it to /etc/pcmcia.
#
# bav@rw.sni.de 98/04/05
case "$ADDRESS" in
*,*,*,*)
INFO="Sample private network setup"
# Transceiver selection, for some cards -- see 'man ifport'
IF_PORT=""
# Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
BOOTP="n"
# Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
DHCP="n"
# If you need to explicitly specify a hostname for DHCP requests
DHCP_HOSTNAME=""
# Host's IP address, netmask, network address, broadcast address
IPADDR=""
NETMASK="255.255.255.0"
NETWORK="10.0.1.0"
BROADCAST="10.0.1.255"
# Gateway address for static routing
GATEWAY="10.0.1.1"
# Things to add to /etc/resolv.conf for this interface
DOMAIN=""
SEARCH=""
# The nameserver IP addresses specified here complement the
# nameservers already defined in /etc/resolv.conf. These nameservers
# will be added to /etc/resolv.conf automatically when the PCMCIA
# network connection is established and removed from this file when
# the connection is broken.
DNS_1=""
DNS_2=""
DNS_3=""
# NFS mounts, should be listed in /etc/fstab
MOUNTS=""
# If you need to override the interface's MTU...
MTU=""
# For IPX interfaces, the frame type and network number
IPX_FRAME=""
IPX_NETNUM=""
# Extra stuff to do after setting up the interface
start_fn () {
umount -at nfs
return;
}
# start_fn () { return; }
# Extra stuff to do before shutting down the interface
stop_fn () { return; }
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac
# If BOTH dhcpcd and dhclient are installed, the network script will
# use dhcpcd. It can be forced to use dhclient instead.
# Use /sbin/dhclient instead of /sbin/dhcpcd? [y/n]
# DHCLIENT="n"
# Use /sbin/pump for BOOTP/DHCP? [y/n]
# PUMP="n"
# For those, who want to use the netenv-Package, the file containing
# the network-setup has to be sourced. No problem, if there is no file
# /etc/netenv/netenv.
if [ -r /etc/netenv/netenv ]; then . /etc/netenv/netenv; fi
# This tries to use Debian's network setup in /etc/network/interfaces
# if no settings are given higher up in this file. You can delete it
# if that isn't desired.
# is_true $PUMP || is_true $BOOTP || is_true $DHCP || \
# if [ ! "$IPADDR" -a -f /etc/network/interfaces ] ; then
# INFO="Debian network setup"
# start_fn () {
# log /sbin/ifup $1
# }
# stop_fn () {
# log /sbin/ifdown $1
# }
# fi
Reply to: