samba and dual homed hosts

Steve Langasek vorlon at netexpress.net
Tue Sep 12 16:06:40 GMT 2000


On Tue, 12 Sep 2000 tschweikle at FIDUCIA.de wrote:

> >> Is there a way starting nmb twice? Binding each instance
> >> to one subnet, not mixing both subnets in one instance
> >> as it is now?

> > Yes, you can force nmbd to bind to only one interface using
> > the commands 'bind interfaces only = yes' and
> > 'interfaces = <list of interfaces>' in your smb.conf.  It's
> > easiest to set up two smb.conf files, one for each of the
> > interfaces you want nmbd to bind to.  Then run:

> > smbd -D
> > nmbd -D
> > nmbd -D -s /path/to/other/smb.conf

> > And each subnet should see the right addresses.

> Wouldn't this bind smbd to only one subnet too? I wanted to
> start only nmbd twice, not smbd too (maybe creating locking
> problems having two smbd running).

Ah, you're right of course.  So you would actually need one smb.conf for smbd,
and two different ones for nmbd.  The same principle applies.

Steve Langasek
postmodern programmer





More information about the samba-ntdom mailing list