Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema con samba no me resuelve los nombres de host
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
piky
n00b
n00b


Joined: 03 Sep 2004
Posts: 37

PostPosted: Wed Feb 15, 2006 6:24 pm    Post subject: Problema con samba no me resuelve los nombres de host Reply with quote

Pues bueno. os explico mi historia:

Tengo en casa 4 maquinas en total 2 servers i 2 pc's usuario, hace poco cambié los rangos de las IP's de los equipos, porque he introducido un Servidor DHCP también.

Las IP's antes estaban en este rango tipico : 192.168.1.XX

Y ahora hago trabajar al server DHCP en este rango 192.168.0.XX

Bien pues, funcionando todo perfectamente y con los nombres de host relacionados con las IP's en el archivo /etc/hosts de cada maquina.

Desde cada maquina si hago un smbtree me lista perfectamente todos los pc's de la red y sus carpetas compartidas ya que también cambie los rangos de "allow host" en los archivos /etc/samba/smb.conf de cada maquina.

Luego en una de las maquinas hay un problema.

Cuando listo un smbtree me sigue buscando una de las maquinas en la IP antigua de rango 192.168.1.6 cuando deberia listarla en 192.128.0.6, decir que esta maquina que tiene el problema tiene el fichero de host bien relacionado el nombre con la IP y luego en el archivo smb.conf tambien acepta los rangos de ip's correctos osease los 192.168.0. y 127.

Un ejemplo el problema para que veais, ya que nose a lo que puede ser debido ya...

Code:


ATHLON64 pik # smbtree
Password:
CASA
        \\PIKSERVER                     PiKServer 3.0.10
timeout connecting to 192.168.1.6:445
timeout connecting to 192.168.1.6:139
Error connecting to 192.168.1.6 (Operation already in progress)
cli_full_connection: failed to connect to PIKSERVER<20> (192.168.1.6)
        \\ATHLON64                      ATHLON64 3.0.14a
                \\ATHLON64\ADMIN$               IPC Service (ATHLON64 3.0.14a)
                \\ATHLON64\IPC$                 IPC Service (ATHLON64 3.0.14a)
                \\ATHLON64\ARREL                Arrel del sistema
                \\ATHLON64\print$               Printer Drivers
        \\ANDROMEDA                     AnDRoMeDa 3.0.10
                \\ANDROMEDA\ADMIN$              IPC Service (AnDRoMeDa 3.0.10)
                \\ANDROMEDA\IPC$                IPC Service (AnDRoMeDa 3.0.10)
                \\ANDROMEDA\ARREL               Arrel del sistema
                \\ANDROMEDA\BACKUPS             Backups del Sistema
ATHLON64 pik #                                 



El smb.conf del ATHLON64 es:

Code:


ATHLON64 pik # cat /etc/samba/smb.conf

[global]
        log file = /var/log/samba/log.%m
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        interfaces = lo eth0
        encrypt passwords = yes
        username map = /etc/samba/smbusers
        #security = SHARE
        security = user
        hosts allow = 192.168.0. 127.
        netbios name = athlon64
        server string = ATHLON64 %v
        workgroup = CASA
        os level = 20
        printcap name = cups
        dns proxy = No
        max log size = 50



El /etc/hosts del ATHLON64 es:

Code:


ATHLON64 pik # cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1       localhost
192.168.0.6     pikserver
192.168.0.4     andromeda
192.168.0.7     duron

# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts



Su ip tambien es la correcta:

Code:


ATHLON64 pik # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:09:93:5D:C7
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:9ff:fe93:5dc7/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1424484 errors:0 dropped:0 overruns:0 frame:0
          TX packets:827042 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2019475705 (1925.9 Mb)  TX bytes:62165189 (59.2 Mb)
          Interrupt:23 Base address:0xc000

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:244 errors:0 dropped:0 overruns:0 frame:0
          TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:37540 (36.6 Kb)  TX bytes:37540 (36.6 Kb)

ATHLON64 pik #                                 



Como podeis ver las demas maquinas activas resuelven bien la nueva IP y el nuevo rango, en cambio el PIKSERVER, sigue buscandolo en la IP antigua...

No obstante la ip del pikserver es 192.168.0.6 y su /etc/hosts

Code:


pikserver ~ # ifconfig
ath0      Link encap:Ethernet  HWaddr 00:11:95:91:EC:DD
          inet addr:192.168.0.6  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:95ff:fe91:ecdd/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62178711 errors:100322 dropped:0 overruns:0 frame:100322
          TX packets:103625619 errors:185795 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:2496788163 (2381.1 Mb)  TX bytes:3784825382 (3609.4 Mb)
          Interrupt:10 Memory:c8b80000-c8b90000

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:5142 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:293024 (286.1 Kb)  TX bytes:293024 (286.1 Kb)

pikserver ~ # 



Code:


pikserver ~ # cat /etc/samba/smb.conf

[global]
        log file = /var/log/samba/log.%m



        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192


        interfaces = lo eth0 ath0 tun1
        encrypt passwords = Yes
        username map = /etc/samba/smbusers
        security = SHARE
        hosts allow = 192.168.0. 192.168.2. 127.
        netbios name = pikserver
        server string = PiKServer %v
        workgroup = CASA
        os level = 20
        dns proxy = No
        max log size = 50



Y como podeis ver la ejecucion de smbtree en esta maquina es buena


Code:


pikserver ~ # smbtree
Password:
CASA
        \\PIKSERVER                     PiKServer 3.0.10
                \\PIKSERVER\ADMIN$              IPC Service (PiKServer 3.0.10)
                \\PIKSERVER\IPC$                IPC Service (PiKServer 3.0.10)
                \\PIKSERVER\ARREL               Arrel del sistema
                \\PIKSERVER\DESCARREGAS         Descarregas Mldonkey
                \\PIKSERVER\FTP                 Directori del servidor FTP
        \\ATHLON64                      ATHLON64 3.0.14a
                \\ATHLON64\ADMIN$               IPC Service (ATHLON64 3.0.14a)
                \\ATHLON64\IPC$                 IPC Service (ATHLON64 3.0.14a)
                \\ATHLON64\ARREL                Arrel del sistema
                \\ATHLON64\print$               Printer Drivers
        \\ANDROMEDA                     AnDRoMeDa 3.0.10
                \\ANDROMEDA\ADMIN$              IPC Service (AnDRoMeDa 3.0.10)
                \\ANDROMEDA\IPC$                IPC Service (AnDRoMeDa 3.0.10)
                \\ANDROMEDA\ARREL               Arrel del sistema
                \\ANDROMEDA\BACKUPS             Backups del Sistema
pikserver ~ #                 



Code:


pikserver ~ # cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1       localhost
192.168.0.3     athlon64
192.168.0.4     andromeda
192.168.0.7     duron

#host sota VPN

192.168.2.2     duronvpn

# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

pikserver ~ #



La verdad es que me estoy volviendo loco ya de buscar, porque nose que me habre dejado para que esta maquina sigue buscando la otra en la 192.168.1.6, si en principio todo esta linqueado a la nueva ip, tanto nombres de host como "allowed ip's" del samba...

A ver si alguien me puede explicar o tener una lijera idea de que puede estar pasando ;)

Muchas gracias de antemano

Salu2s y perdonad por la tochana pero debia explicarlo bien y daros información suficiente como para que podais deducir cosas ;)

PiKy- :) :)
_________________
rogerrafanell@jabber.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum