AW: [Samba] samba configuration multiple ethernet card

Lapin(c) lapin at linagora.com
Mon Mar 1 20:47:16 GMT 2004


i've done it in the past for virtual names. it's more or less the 
following :

/etc/samba.smb.conf
[global]
	...
	global parameters
	...
	include = /etc/samba/smb.conf.%I

[for_all]
	path = ...

/etc/samba/smb.conf.192.168.0.1
[admin]
	path= ...

/etc/samba/smb.conf.192.168.0.2
[other]
	path = ...

the problem now will be to force connection to one specific interface...


Stefan Bergner wrote:
> Ok, and then? 
> 
> in file smb.conf.192.168.0.1
> 
> [global]
> ...
> bind interfase only = yes
> interfaces          = eth0
> ...
> 
> [FOR_ALL]
> ...
> 
> in file smb.conf.192.168.0.2
> 
> [global]
> ...
> bind interfase only = yes
> interfaces          = eth1
> ...
> 
> [ADMINS]
> ...
> 
> Does this configuration works?
> 
> Is this a good solution? i really don't know, so what's
> the global thinking about this.
> 
> 
> 
> --
> Information Systems Engineering GmbH
> Bründeläckerstrasse 6
> 91207 Lauf an der Pegnitz
> 
> Tel:   +49-9123-9772-20
> Mobil: +49-172-8254222
> Fax:   +49-9123-9772-22
> Email: stefan.bergner at ise-informatik.de
> WWW:   http://www.ise-informatik.de
> 
> 
> 
> 
> 
>>-----Ursprüngliche Nachricht-----
>>Von: Lapin(c) [mailto:lapin at linagora.com] 
>>Gesendet: Montag, 1. März 2004 21:14
>>An: Stefan Bergner
>>Cc: samba at lists.samba.org
>>Betreff: Re: [Samba] samba configuration multiple ethernet card
>>
>>
>>it should be possible using
>>include = /etc/samba/smb.conf.%I
>>
>>and defining smb.conf.192.168.0.1 files as a specific 
>>configuration file
>>
>>
>>Stefan Bergner wrote:
>>
>>>Hi!
>>>
>>>I want to size a samba-server.
>>>
>>>the samba server will become 4 ethernet cards.
>>>The samba-server serves his shares to only ONE subnet.
>>>
>>>subnet : 192.168.0.x
>>>
>>>so, i would configure Linux like that:
>>>
>>>eth0 -> 192.168.0.1
>>>eth1 -> 192.168.0.2
>>>eth2 -> 192.168.0.3
>>>eth3 -> 192.168.0.4
>>>
>>>Is it possible to configure samba, to use for some
>>>shares the first card, for other shares the second,
>>>and so on ... ????
>>>
>>>Like this
>>>
>>>[FOR_ALL] - Share -> The Network-Traffic is running over 
>>
>>eth0 [ADMINS] 
>>
>>>- Share  -> The Network-Traffic is running over eth1 ...
>>>
>>>Is there a possibity? Maybe with Virtual Servers?
>>>
>>>Greeting and Thx
>>>
>>>Stefan
>>
>>


More information about the samba mailing list