Problem with samba and a netmask of 255.255.255.128

Doll, Margaret Ann margaret_doll at brown.edu
Wed Jun 1 12:01:41 UTC 2011


I have run the familiar tests for smb on the server and the clients.
All the tests on the server side work.  Connect from clients on the same
subnet or other subnets fail.

All these tests work:
testparm
smbclient -L yourserver -N
ps -ef | grep nmbd
service smb status
service nmb status

*netstat -nlp | grep smb*
tcp        0      0 :::139                      :::*
LISTEN      2904/smbd
tcp        0      0 :::445                      :::*
LISTEN      2904/smbd
 *netstat -nlp | grep nmb*
udp        0      0 128.148.136.127:137      0.0.0.0:*
2921/nmbd
udp        0      0 128.148.136.51:137        0.0.0.0:*
2921/nmbd
udp        0      0 0.0.0.0:137                 0.0.0.0:*
2921/nmbd
udp        0      0 128.148.136.127:138      0.0.0.0:*
2921/nmbd
udp        0      0 128.148.136.51:138        0.0.0.0:*
2921/nmbd
udp        0      0 0.0.0.0:138                 0.0.0.0:*
2921/nmbd
*
**nmblookup -B aclient '*'
**nmblookup -d 2 "*"
* nmblookup -d 2 "*"
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
added interface eth0 ip=128.148.136.51 bcast=128.148.136.127
netmask=255.255.255.128
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0*
*querying * on 128.148.136.127
querying * on 127.255.255.255
Got a positive name query response from 127.0.0.1 ( 128.148.136.51 )
128.148.136.51 *<00>*

nmblookup -B m3science __SAMBA__
*querying __SAMBA__ on 128.148.136.51
128.148.136.51 __SAMBA__<00>*

nmblookup -M m3science
*querying m3science on 128.148.136.127
querying m3science on 127.255.255.255
128.148.136.51 m3science<1d>*

>From a Mac
*Connecting to smb://m3science.geo.brown.edu...

There is an error connecting to the server.  Check
the server name and try again.

The mac can ping m3science.geo.brown.edu.
*

**
** cat /etc/redhat-release
*Red Hat Enterprise Linux Server release 6.1 (Santiago)*

ifconfig*
eth0      Link encap:Ethernet  HWaddr 00:19:B9:FE:A9:C0
          inet addr:128.148.136.51  Bcast:128.148.136.127
Mask:255.255.255.128
          inet6 addr: fe80::219:b9ff:fefe:a9c0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:249142823 errors:0 dropped:0 overruns:0 frame:0
          TX packets:317977045 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:118600620840 (110.4 GiB)  TX bytes:335797640927 (312.7
GiB)
          Interrupt:16
*
more /etc/samba/smb*
       workgroup = m3
        server string = m3
        netbios name = m3

        interfaces = 128.148.136.51 127.0.0.1
        hosts allow = 128.148.136. 128.148.119. 128.148.116. 128.148.124.
127.
        remote announce = 128.148.68.255/m3science 128.148.124.255/m3science
128.148.119.255/m3science 128.148.116.255/m3science
128.148.171.255/m3science 128.148.136/m3science

        log file = /var/log/samba/log.%m
        max log size = 50

        security = user
        passdb backend = tdbsam
        encrypt passwords = yes

#       invalid users =  bin daemon sys adm tty disk lp mem kmem wheel mail
news uucp man games gopher

        domain master = yes
        domain logons = yes

        local master = yes
        os level = 255
        preferred master = yes

        wins support = yes
        wins proxy = no
        dns proxy = no



More information about the redhat-list mailing list