Stefan Bergner
2004-Mar-01 20:27 UTC
AW: [Samba] samba configuration multiple ethernet card
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@ise-informatik.de WWW: http://www.ise-informatik.de> -----Urspr?ngliche Nachricht----- > Von: Lapin(c) [mailto:lapin@linagora.com] > Gesendet: Montag, 1. M?rz 2004 21:14 > An: Stefan Bergner > Cc: samba@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 > >
Stefan G. Weichinger
2004-Mar-01 20:39 UTC
AW: [Samba] samba configuration multiple ethernet card
Hello, Stefan, Montag, 01. M?rz 2004, 21:25 you wrote: SB> Ok, and then? SB> in file smb.conf.192.168.0.1 SB> [global] SB> ... SB> bind interfase only = yes SB> interfaces = eth0 SB> ... SB> [FOR_ALL] SB> ... SB> in file smb.conf.192.168.0.2 SB> [global] SB> ... SB> bind interfase only = yes SB> interfaces = eth1 SB> ... SB> [ADMINS] SB> ... SB> Does this configuration works? Not as you want it to. Be aware that the parameter "bind interfaces" is a global one, which means that it sets the interface for ALL shares you define. Including other files does NOT change that. If you want to use 4 NICs and their bandwidth, look for the topic "bonding NICs". Then bind your smb-traffic to the created bond-interface (via "bind interfaces") and enjoy the performance. -- best regards, Stefan G. Weichinger mailto:monitor@oops.co.at
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@ise-informatik.de > WWW: http://www.ise-informatik.de > > > > > >>-----Urspr?ngliche Nachricht----- >>Von: Lapin(c) [mailto:lapin@linagora.com] >>Gesendet: Montag, 1. M?rz 2004 21:14 >>An: Stefan Bergner >>Cc: samba@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 >> >>
Hi there, Perhaps this will help. You are able to start different smbd with different smb.conf like described in: http://de.samba.org/samba/docs/man/bugreport.html#id2979912 It could work if you star two different smbd instances one loading with a smbd.conf for bind interfaces only = eth0 and one for the other with different shares? Just as an idea. Regards Hendrik -----Urspr?ngliche Nachricht----- Von: samba-bounces+b00mer=gmx.net@lists.samba.org [mailto:samba-bounces+b00mer=gmx.net@lists.samba.org] Im Auftrag von Stefan G. Weichinger Gesendet: Montag, 1. M?rz 2004 22:10 An: samba@lists.samba.org Betreff: Re: AW: [Samba] samba configuration multiple ethernet card Hello, Lapin(c), Montag, 01. M?rz 2004, 22:00 you wrote: Lc> to have some shares accessible only from one interface and not from Lc> all of them ? No. Read about "interfaces" and "bind interfaces only" again. There is no "SOME shares"-logic in there. -- best regards, Stefan G. Weichinger mailto:monitor@oops.co.at -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba