[Samba] nmbd is not running

Gaiseric Vandal gaiseric.vandal at gmail.com
Wed Jul 31 07:56:27 MDT 2013


It looks like you have are using a block of private class B's as a 
contiguous CIDR range including 172.16.x.x and 172.17.x.x

I played around with the IP's using various on line subnet calculators

http://jodies.de/ipcalc?host=172.16.30.4&mask1=15&mask2=

Address:   172.16.30.4
Netmask:   255.254.0.0 = 15
Network:   172.16.0.0/15
Broadcast: 172.17.255.255
HostMin:   172.16.0.1
HostMax:   172.17.255.254


It looks to me like the broadcast address is wrong.


Or are you trying to treat 172.16.x.x and 172.17.x.x as separate class B 
subnets?


On 07/31/13 08:54, Kevin Sha wrote:
>
> root at srv:~# ifconfig -a
> eth0 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.17.30.4 Bcast:172.31.255.255 Mask:255.254.0.0
> inet6 addr: fe80::bc27:29ff:fed3:c733/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:48965895 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1460501 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1888712573 (1.7 GiB) TX bytes:785972618 (749.5 MiB)
>
> eth0:1 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.3 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:2 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.5 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:3 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.6 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:4 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.17 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:5 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.8 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:6 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.30 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:7 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.4 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:8 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.6.10 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:9 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.6.11 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:10 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.18 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:11 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.20 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:12 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.21 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:13 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.29 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:14 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.6.13 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:15 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.2.0 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0:16 Link encap:Ethernet HWaddr be:27:29:d3:c7:33
> inet addr:172.16.6.14 Bcast:172.31.255.255 Mask:255.254.0.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> 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:5532 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5532 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:369954 (361.2 KiB) TX bytes:369954 (361.2 KiB)
>
>
>
> On Wed, Jul 31, 2013 at 6:18 PM, Gaiseric Vandal 
> <gaiseric.vandal at gmail.com <mailto:gaiseric.vandal at gmail.com>> wrote:
>
>     Can you show the "ifconfig -a" output on your server (or whatever
>     the appropriate  command for your OS .)
>
>     The "bind failed on ... 255" suggests the IP of the server is set
>     wrong.
>
>
>
>     On 07/31/13 05:17, Kevin Sha wrote:
>
>         Hi
>
>         I have samba domain controller in my network. and recently I
>         have changed
>         the netmask of the network. Then nmbd is not working
>
>
>         could you please help me to solve this issue
>
>
>         ----------------------------------------------------------------
>
>         nmbd -i
>         nmbd version 3.5.6 started.
>         Copyright Andrew Tridgell and the Samba Team 1992-2010
>         Unknown parameter encountered: "wide symlinks"
>         Ignoring unknown parameter "wide symlinks"
>         Unknown parameter encountered: "wide symlinks"
>         Ignoring unknown parameter "wide symlinks"
>         standard input is not a socket, assuming -D option
>         bind failed on port 137 socket_addr = 172.17.255.255.
>         Error = Cannot assign requested address
>         nmbd_subnetdb:make_subnet()
>         Failed to open nmb bcast socket on interface 172.17.255.255
>         for port 137.
>         Error was Cannot assign requested address
>         ERROR: Failed when creating subnet lists. Exiting.
>
>         -----------------
>         /etc/init.d/samba status
>         nmbd is not running ... failed!
>         smbd is running.
>
>
>
>         My samba configuration file
>         ---------------------------------------
>
>         [global]
>         workgroup = KEVIN
>         netbios name = KEVINDC
>         server string = KEVIN Domain controller
>         obey pam restrictions = Yes
>         pam password change = Yes
>         passwd program = /usr/bin/passwd %u
>         passwd chat = *Enter\snew\s*\spassword:* %n\n
>         *Retype\snew\s*\spassword:*
>         %n\n *password\supdated\ssuccessfully* .
>         unix password sync = Yes
>         syslog = 0
>         log file = /var/log/samba/log.%m
>         max log size = 1000
>         name resolve order = lmhosts host wins bcast
>         unix extensions = No
>         add user script = /usr/sbin/adduser --quiet
>         --disabled-password --gecos ""
>         %u
>         add group script = /usr/sbin/addgroup --force-badname %g
>         add machine script = /usr/sbin/useradd -g machines -c "%u
>         machine account"
>         -d /var/lib/samba -s /bin/false %u
>         logon path =
>         logon home =
>         domain logons = Yes
>         os level = 33
>         preferred master = Auto
>         domain master = Yes
>         dns proxy = No
>         panic action = /usr/share/samba/panic-action %d
>
>         [homes]
>         comment = Home Directories
>         valid users = %S
>         create mask = 0700
>         directory mask = 0700
>         browseable = No
>
>         [netlogon]
>         comment = Network Logon Service
>         path = /home/samba/netlogon
>         guest ok = Yes
>         share modes = No
>
>         [printers]
>         comment = All Printers
>         path = /var/spool/samba
>         create mask = 0700
>         printable = Yes
>         browseable = No
>
>         [print$]
>         comment = Printer Drivers
>         path = /var/lib/samba/printers
>
>
>
>
>         Thank you
>         kevin
>
>
>     -- 
>     To unsubscribe from this list go to the following URL and read the
>     instructions: https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list