[Samba] Using the right network interface

Simeonidis, Steve SteveSimeonidis at ap.spherion.com
Wed Dec 11 01:51:00 GMT 2002

I've tried the bind interfaces only = yes but still the same

netstat gives the same results.

What I'm really trying to do and why I need this is because
I want to run 2 instances of SAMBA, a different one on each interface.

The second instance doesn't even start properly.


Steve Simeonidis
Network Engineer, Spherion Education
Spherion Group Ltd

"Making the Workplace Work Better"

1st Floor, 493 St. Kilda Rd,
Melbourne VIC 3004, 
+61 3 9243 2382
stevesimeonidis at ap.spherion.com

-----Original Message-----
From: Eric Boehm [mailto:boehm at nortelnetworks.com]
Sent: Tuesday, December 10, 2002 11:47 PM
To: Simeonidis, Steve
Cc: Joel Hammer; samba at lists.samba.org
Subject: Re: [Samba] Using the right network interface

On Tue, Dec 10, 2002 at 07:25:07AM -0500, Joel Hammer wrote:
>>>>> "Joel" == Joel Hammer <Joel at HammersHome.com> writes:

    Joel> Just having a senior moment here, but, I recall vaguely that
    Joel> samba will listening on all NIC's but ignores the ones you
    Joel> tell it to ignore with.

Yes, samba will listen on all interfaces.

The problem is that Steve hasn't specified all the parameters
necessary to restrict Samba to one interface.

Try something like the following:

interfaces           =
bind interfaces only = yes

You will want to include the loopback interfaces

Check the sections in "man smb.conf" regarding these two
directives. You need to include the loopback interface in the
interfaces list or smbpasswd and swat will not work.

    Steve> Hi everyone,

    Steve> samba 2.2.5 The server I'm using has 2 interfaces so using
    Steve> the interface parameter I'm telling samba to use eth0 but
    Steve> for some reason when I do netstat it is listening on eth1

    Steve> interface = eth0 (the IP is

    Steve> netstat -an udp 0 0* udp 0 0
    Steve>* udp 0 0*

    Steve> is the IP of eth1!??!

    Steve> I've also tried interface =

    Steve> Any ideas??

Eric M. Boehm                  /"\  ASCII Ribbon Campaign
boehm at nortelnetworks.com       \ /  No HTML or RTF in mail
                                X   No proprietary word-processing
Respect Open Standards         / \  files in mail

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable

purpose in the ordinary course of Spherion’s business, including forwarding this email 
internally or disclosing it to a third party. All personal information collected by Spherion 
will be handled in accordance with Spherion’s Privacy Policy. If you have received 
this email in error, please notify the sender and delete it.

-------------- next part --------------
HTML attachment scrubbed and removed

More information about the samba mailing list