[Samba] IP Binding

Paul Harlow PHarlow at skld.com
Wed Feb 27 10:07:10 GMT 2002


10.0.0.1/24 is the server's eth0 address. 10.0.0.2/24 is the server's eth1
address.
I've inherited this server and this is the way it was originally set up with
the .1/24 address in that 'interfaces' string. I simply added the .2/24 to
that thinking that I could get it to use .2 to serve up the Samba shares as
well but it doesn't respond to a second address in that field.
ie- last night I changed the smb.conf from this:
interfaces = 10.0.0.1/24 127.0.0.1
To this:
interfaces = 10.0.0.1/24 10.0.0.2/24 127.0.0.1
And it would only respond to the .1 address.
When I reversed the order:
interfaces = 10.0.0.2/24 10.0.0.1/24 127.0.0.1
It would only respond to requests made to the .2 address.
Ultimately I would like it to respond to both addresses.
Does that help?

Paul

-----Original Message-----
From: Steven Mackenzie [mailto:sjm at activenavigation.com]
Sent: Wednesday, February 27, 2002 10:48 AM
To: Paul Harlow; samba at lists.samba.org
Subject: Re: [Samba] IP Binding


I'm not sure I understand your question or example - is your samba server
reading the shares off 10.0.0.1, or serving them to it?

Also your interfaces parameter seems odd to me.

I think that interfaces is supposed to refer to a whole network, or can
refer to a single ip number.

Your example 10.0.0.1/24 doesn't seem to make sense - try 10.0.0.0/24
(ie the whole of 10.0.0.0 network with a 24 bit netmask (255.255.255.0))

If you just want to allow individual IPs to use your server, then don't
specify a mask size (the /24).

See the smb.conf man page for an explanation of what bind interfaces only
does too ...

----- Original Message -----
From: "Paul Harlow" <PHarlow at skld.com>
To: <samba at lists.samba.org>
Sent: Wednesday, February 27, 2002 5:12 PM
Subject: [Samba] IP Binding


> Hi all,
>
> New to Samba here so please bear with dumb questions.
>
> I have a server that's currently running SMB shares off of device 10.0.0.1
> on a private network. It has a second device, 10.0.0.2 that I would like
to
> add to the device bindings for Samba. I've tried this in the smb.conf file
> but it doesn't seem to work. Here's what I tried:
>
> workgroup = SOMECOMPANY
>         netbios name = SERVERNAME
>         server string = Servername's Samba Server
>         interfaces = 10.0.0.1/24 10.0.0.2 127.0.0.1
>         bind interfaces only = Yes
>
> That's only part of the config and the names and IP addresses have been
> changed. Anyway, this server still only responds to the .1 address and not
> the .2 address at all. I would like to pull traffic off of the .1 address
> because it's saturated and the .2 isn't used at all.
> If anyone has any ideas that would be great! Thanks!
>
> Paul
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list